Repository navigation
v1.5.1
@missing-elements/h5p-offline-player 1.5.1 fixes two bugs found by playing 88 real packages through 1.5.0, and @missing-elements/h5p-embed 1.6.2 writes sites and SCORM packages with it. The library pack stays at 1.1.0 and the runtime at 1.0.1.
An empty file in a package is served
The player answered every empty file in a package with a 500. The browser's cache gives an empty response back with no body at all, and the Service Worker took that for a file it could not read. A library that loads an empty script therefore failed to load it, and its package did not play at all. An empty file is now served as an empty 200, whatever range was asked for.
Every earlier release has this bug. Of the 88 packages, two carry empty files: three empty images in one, an empty language file in the other.
A missing library is named once
When a package lacks libraries, the error named each one as many times as its h5p.json lists it. An old platform export lists a library once for every library that needs it: an h5p.org Course Presentation declares 98 dependencies, 51 of them different, and the error named Drop and Tether three times each. The message and missingLibraries.folders in the error event's detail now name each library once.
@missing-elements/h5p-embed 1.6.2
It writes sites and SCORM packages with player 1.5.1. Nothing else changes.
Not released
Verify 1.4.1 takes player 1.5.1 through its range on a fresh install. h5p-author 0.4.0 uses only the player's library rules, which have not changed. The VS Code extension 0.4.0 still answers an empty file with a 500; its next release carries the fix.
Upgrading
- A site that plays packages: change the player's URL to
@missing-elements/h5p-offline-player@1.5.1and copy itsdist/h5p-sw.jsagain, since the fix is in the Service Worker. The runtime's URL stays at 1.0.1. - The embed command:
npx @missing-elements/h5p-embed@latestwrites sites and SCORM packages with 1.5.1. One written before carries the fix once it is written again and deployed.
Full Changelog: v1.5.0...v1.5.1