Pin h5p-author 0.10.0, and serve its skill only as zips

Merged
AL
4d ago
+53-98

Closes #51.

h5p-author 0.10.0 (missing-elements/h5p-offline-player#203) changes the skill, not how a package is built. With it, the site stops serving the skill's text files one by one: the zips carry them (the owner's call).

The 0.10.0 skill has each build route as a file of its own under references/build/. A chat that built nothing writes a page that makes the build page's link. Only the content type is asked, and the author and licence rule now sits in every type file's generated text.

What changes

  • The pin: package.json and the lockfile move @missing-elements/h5p-author from 0.9.8 to 0.10.0. The lockfile change is the five lines of that entry, with the integrity npm gives for 0.10.0. Its dependencies are the same as 0.9.8's.
  • The zips: /h5p/skill/h5p-author.zip and /h5p/skill/h5p-author-chatgpt.zip hold 0.10.0's skill, the five route files included, and the plugin's plugin.json says 0.10.0. These are what the guide's first step hands out.
  • /h5p/skill/ serves the zips and its page, nothing else: SKILL.md, LICENSE, references/ and index.json, which listed them, are gone. eleventy.config.js no longer copies the files, src/_data/skill.js no longer lists them, and src/h5p/skill/index.json.11ty.js is deleted.
  • The page at /h5p/skill/: it lists the two zips and the npx skills add command, then the build tool and every bundle, each at its full address, as before. It stays because the skill's route 3 takes the bundles' addresses from it, and so do installed copies of 0.9.x. Its "for a person" note points to the guide's install step and the build page.
  • What this breaks: a copy of the skill at 0.9.7 or older, in a chat that has only its text, was told to read SKILL.md and the type files at /h5p/skill/, and so were prompts copied before 2026-11-13. They now find nothing there. Installed copies build as before: they take only the bundles' addresses from the page.
  • Comments and README: the README's table, its paragraph on /h5p/skill/ and its pins table; vite.config.ts' header and skillZips(); the sitemap's comment.
  • The build page's type files: /h5p/build/types/ carries 0.10.0's 32 type files, whose generated text names the licence codes.
  • The pages and the archive: the guide and the skill's page name h5p-author 0.10.0. /h5p/bundles/index.json says author 0.10.0, with the same bundles from pack 1.1.0. h5p-author-build.tar.gz holds 0.10.0's tool.

Tested

  • Checks: pnpm install --frozen-lockfile, pnpm build (which type-checks) and pnpm typecheck pass. The build's own check that the tool's --version names the pinned author and pack versions passed.
  • Served files: a build from an empty _site/ writes three files under /h5p/skill/: index.html and the two zips. Each zip's 40 skill files (SKILL.md, LICENSE and the 38 under references/, the five route files among them) equal the published 0.10.0 tarball's, and the 32 type files under /h5p/build/types/ equal its too. No page or JSON file in the built site names 0.9.8.
  • Links: all 59 addresses under /h5p/skill/ and /h5p/bundles/ that the built pages name resolve to a file, and nothing in the site or the built pages names skill/SKILL.md, skill/references or skill/index.json.
  • The archive: unpacked, h5p-author.mjs --version prints 0.10.0 and pack 1.1.0, and it built a True/False with --libraries parts that the verifier passes. A build from npm's 0.10.0 gave the same revision.
  • Pages: not run in a browser. The skill's page keeps the classes it had, and only its text and lists changed.

Summary by cubic

Pins @missing-elements/h5p-author from 0.9.8 to 0.10.0, closing #51, and serves the skill only as zips. 0.10.0 changes the skill, not how a package is built: each build route is now a file under references/build/, and the author and licence rule live in each type file's generated text.

What changes

  • The lockfile moves the package with the same dependencies; the build tool, the zips and the build page's type files now come from 0.10.0.
  • The skill's text files are no longer served one by one at /h5p/skill/: the page lists the two zips and the bundles' addresses instead, and the passthrough copy of SKILL.md, LICENSE and references/, plus index.json, were removed.
  • package.json, the lockfile, README.md and the skill's page name 0.10.0; no page or file names 0.9.8.