Migrating from LessonKit 1.x to 2.0¶
LessonKit 2.0 will remove deprecated APIs that still work in 1.7.x with development warnings. Plan upgrades before pinning @lessonkit/*@2.
Runtime v1 sunset¶
runtimeVersion: "v1" on LessonkitConfig is deprecated as of framework 1.4.0 and will be removed in LessonKit 2.0.
What changes in v2 (default since 1.0)¶
Headless
createLessonkitRuntime()coordinates lifecycle (setActiveLesson,completeLesson,completeCourse) and plugin registration.LessonkitProvideruses the v2 runtime internally unless you opt into v1.
Removal checklist¶
Deprecated (1.x) |
Use instead |
Notes |
|---|---|---|
|
Omit or |
v2 headless runtime is default since 1.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use in React |
|
|
Alias removed in 2.0 |
|
|
|
|
|
|
|
|
Telemetry namespaces¶
Quiz / KnowledgeCheck continue to emit quiz_* events in 2.0. Modern assessment blocks emit assessment_*. Both map to xAPI and the LMS bridge in 1.5+; no migration required unless you parse raw event names in custom sinks.
Production observability¶
2.0 may require additional hooks when LMS bridge mode is "auto". Wire observability.onLxpackBridgeError and onXapiMappingError before upgrading production courses.
See CHANGELOG when 2.0 ships.