Skip to content

v0.4.0

Choose a tag to compare

@fvarrui fvarrui released this 11 Oct 15:21
· 174 commits to main since this release

New

SCORM activities (docs):

  • scorm(activityId): a SCORM as the person sees it: attempts allowed and made, grading method, the grade reported and each attempt's, and its SCOs with the person's status (not-attempted, incomplete, completed, passed, failed…) and score. Never starts an attempt. Also moodle scorm <id>.
  • openScorm(activityId, { scoId?, newAttempt? }): opens Moodle's player on the working tab, continuing the last attempt or starting a new one, and resolves once the SCO has loaded; returns the attempt, the SCO, the SCORM version and the URL.
  • createActivity({ type: "scorm", files: [package] }) creates a SCORM from its package.
  • ScormError, code scorm.

The driver never reports a SCORM's results for the person: they come only from doing it in the player.

Internal

  • npm publish runs typecheck, lint, the docs' examples and the tests in Docker first.