Pin h5p-author 0.12.0, and say "no server of ours"

Merged
AL
6h ago
+46-28

Closes #70.

h5p-author 0.12.0 (missing-elements/h5p-offline-player#230, #218) checks a source's own fields against one schema, so an author written as a bare name is told the object to write. It also checks videos and recordings by their bytes. It brings zod, which the build page and the archive's tool bundle.

What changes

  • The pin: package.json and the lockfile move @missing-elements/h5p-author from 0.11.0 to 0.12.0. The lockfile also gains zod 4.6.7 and moves @missing-elements/h5p-normalize from 1.3.0 to 1.4.0, as 0.12.0 asks.

  • Licence lists: Vite's build.license writes every bundled package with its licence text, in two files:

    • /h5p/assets/build-page-LICENSES.txt, for the build page's scripts: 22 packages, among them zod, zip.js and CodeMirror;
    • /h5p/bundles/h5p-author-LICENSES.txt, for h5p-author.mjs: 6 packages. It also goes into h5p-author-build.tar.gz, beside the tool.

    Until now, no notice traveled with zip.js (BSD-3-Clause) or CodeMirror (MIT) either. The build page's footer and the guide's "Free and open source" section link the two lists.

  • "No server of ours" replaces "no MCP server" in five places:

    • the build page's meta description and its feature heading;
    • the guide's privacy paragraph;
    • the ChatGPT plugin's description and shortDescription (now 62 characters).

    h5p-offline-player now publishes a local MCP server, so the old phrase is no longer true. The promise behind it still holds.

  • Size: zod adds 9 kB gzipped to build-page.js (142 kB → 151 kB).

Tested

  • Checks: pnpm install --frozen-lockfile, pnpm build and pnpm typecheck pass. The lockfile change is only the author, normalize and zod entries; pnpm dropped no libc: lines this time.
  • Zips:
    • The 40 skill files in each zip equal the published 0.12.0 tarball's.
    • The ChatGPT zip's plugin.json says 0.12.0, with the new wording.
    • bundles/index.json says author 0.12.0, pack 1.1.0.
    • No page or JSON file names 0.11.0, and "MCP" is gone from the source and the built site.
  • The archive: unpacked, it holds h5p-author.mjs, h5p-author-LICENSES.txt, libraries.txt and parts/.
    • The tool prints 0.12.0 and pack 1.1.0.
    • It builds a True/False from parts that h5p-verify passes, ready in 0.18 s.
    • It answers "authors": ["Unknown"] with authors[0]: expected an author: write { "name": "Unknown", "role": "Author" }.
  • The build page, served by vite preview, in Chromium:
    • A #source= link with the True/False built and played in 0.6 s: "Built “Water boils at 100 °C”: H5P.TrueFalse, 8 libraries, 882 kB. It plays below."
    • The same source with the bare-name author listed that problem and built nothing.
    • No console errors.
    • Both licence lists are served as text/plain.

Summary by cubic

Pins @missing-elements/h5p-author to 0.12.0, which now validates an author's own fields (a bare-name author is told the object to write) and checks videos and recordings by their bytes. It pulls in zod and moves @missing-elements/h5p-normalize to 1.4.0.

  • Replaces "no MCP server" with "no server of ours" in the build page, the guide, and the ChatGPT plugin's description, since h5p-offline-player now publishes a local MCP server; the privacy promise still holds.
  • Adds build-page-LICENSES.txt and h5p-author-LICENSES.txt, listing every bundled package with its licence text (zod, zip.js, CodeMirror), since MIT and BSD-3-Clause require notices to travel with copies. The two lists are linked from the build page's footer and the guide, and the tool's list travels inside the build archive.
  • zod adds 9 kB gzipped to build-page.js (142 kB → 151 kB).