DOM ENGINEV0.21.3FIZLET

0.3.0 RELEASE NOTES

Fizlet 0.3.0

By Chris Cooley ↗ · · CHANGELOG.md ↗

  • fizlet/slot: mount a scene into an Astro page engine slot (figure.ae-slot[data-slot-target="<page>#<slot>"]). Lazy start near the viewport, reduced motion keeps the placeholder and fallback (and removes a running scene), role="img" + aria-label kept until the scene says it is accessible, a contained stage (contain: strict), and destroy() gives the slot back exactly (a Ledger). 1515 bytes min + gzip, Ledger included; budget 2048.
  • Publish-ready on npm: exports gains ./slot; files ships dist, CHANGELOG, LICENSE, README; publishConfig sets public access and provenance; prepack builds.
  • Types: relative imports in the shipped .d.ts now carry .js, so TypeScript consumers on moduleResolution: node16 / nodenext resolve them (they failed before).
  • npm run test:pack (CI): pack, install the tarball in an empty project, import and typecheck every subpath.
  • .github/workflows/release.yml: publishes a v* tag to npm with provenance, after the checks, using the NPM_TOKEN secret. CI's version tag on main calls it.

Every release