Skip to content

release: prepare 0.9.1 - #233

Merged
lnorton89 merged 6 commits into
mainfrom
claude/epic-galileo-sndxei
Dec 2, 2026
Merged

lnorton89 merged 6 commits into
mainfrom
claude/epic-galileo-sndxei

Conversation

@lnorton89

@lnorton89 lnorton89 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Prepares metaplate 0.9.1. The user-facing notes are in .github/releases/v0.9.1.md.

  • Version 0.9.1 in package.json, package-lock.json, and src/core/version.ts.
  • The CHANGELOG's entries move under [0.9.1] - 2026-12-02, and the upgrading guide covers 0.9.1: the first --incremental build after upgrading renders every image once, and Satori 0.64.3 cards should be compared.
  • The deployment evidence manifest and its pins move to 0.9.1.
  • The Socket baseline moves to the published 0.9.0, together with the README badge.

What 0.9.1 contains

Pre-release review

An independent review of everything since v0.9.0 found no release blocker. This PR fixes what it found:

  • Repeated renders in one process. A second runCli render in the same process dropped the files the render module read at its top level, and later builds then reused the stale card for good. Reads made outside any card are now kept for the life of the process (latest digest per file), and a new render starts with them.
  • Reuse check. A card is no longer reused when this run's top-level reads differ from the ones its manifest entry recorded.
  • Takumi. takumi-js joins the hashed renderer peers, so a Takumi upgrade renders Takumi plates again. This bug predates 0.9.0.
  • Error messages. An unreadable inputs entry now names the error code and where relative paths resolve, and a URL written as a string is refused rather than read as a relative path.
  • Docs and notes. They no longer claim the manifest never names local directories. The manifest is published unless --manifest points outside --out, and that is now documented. The guides name Satori 0.64.3 as audited; WOFF2, <style> rules, the standalone exports, and the lineClamp rules were each re-checked on it. The CHANGELOG gaps are filled.

My review of those fixes found a further bug, also fixed here: a later render recorded the first digest of a file that was read again, rather than the bytes it drew.

The review also flagged that metaplate preview did not refresh when an image file changed. That is now added here as a feature. My review of it found four issues, all fixed:

  • watches are one per directory, not one per rendered card;
  • files from earlier generations are not carried into the watch;
  • a card still rendering from a replaced generation keeps its files out of the new watch;
  • a test bounds the watch count.

Socket baseline (published metaplate@0.9.0, captured 2026-12-02)

  • The package scores 79 overall. Its own alerts are unpopularPackage (medium) and urlStrings (low). No critical alert.
  • string.prototype.codepointat@0.2.1 (high) carries over: Satori 0.64.3 still reaches it.
  • obfuscatedFile (high) now names caniuse-lite@1.0.30001829.
    • A tarball diff against the reviewed 1.0.30001828 shows only the version and ten packed data files changed, and every decoder is byte-identical.
    • It was published through npm trusted publishing with SLSA provenance.
    • The development-only lockfile entry moves to 1.0.30001829.

Test plan

  • npm run check: 60 files, 1,556 tests, build with no declaration-bundle warnings
  • npm run check:package (packed 0.9.1, Satori 0.64.3 selected)
  • check:dependencies, check:deployment, check:workflows, Socket disposition verifier, npm audit --audit-level=high (0 vulnerabilities)
  • npm run release:evidence: 6 checks passed, bundle bound to a44db03
  • CI, including check:package and the release evidence bundle in "Check and package"

Generated by Claude Code

Bump package.json, package-lock.json, src/core/version.ts, and the CHANGELOG
to 0.9.1, move the deployment evidence manifest and its pins to 0.9.1, note
the one full --incremental build and the Satori 0.64.3 comparison in the
upgrading guide, and add the 0.9.1 release notes.

The Socket baseline still certifies 0.8.4; moving it to the published 0.9.0
follows once its Socket export is imported.
…e badge with it

Import the Socket CLI deep score of the published metaplate@0.9.0
(socket package score npm metaplate@0.9.0 --json, captured 2026-12-02, raw
export sha256 e00e3bd39286efea756f9a552031229d02c26f1711701e5aeebc301658319c35)
and move the importer, disposition verifier, their tests, and the README
Socket badge from 0.8.4 to 0.9.0.

The package scores 79 overall; its own alerts are unpopularPackage (medium)
and urlStrings (low). No critical alert. Two high alerts keep their
time-bounded dispositions (expiry 2027-04-30):

- string.prototype.codepointat@0.2.1 carries over; Satori 0.64.3 still pins
  @shuding/opentype.js 1.4.0-beta.0, which reaches it.
- obfuscatedFile now names caniuse-lite@1.0.30001829. Against the reviewed
  1.0.30001828 tarball, only the version and ten packed data files changed,
  each a module.exports object literal; every file under dist/, including the
  decoders, is byte-identical, and no changed file uses require, eval,
  Function, import(), the network, the filesystem, child_process, or process.
  It was published by GitHub Actions through npm trusted publishing with SLSA
  v1 provenance, and the tarball matches the registry's sha512 integrity. The
  lockfile moves the development-only caniuse-lite to 1.0.30001829 so the
  disposition covers the resolved version.
…ncremental

- A second render in one process (runCli called twice) imports the cached
  render module, so its top-level reads are not made again; they were dropped
  from the manifest, and later builds reused the stale card for good. Reads
  made outside any card are now kept for the life of the process, latest
  digest per file, and a new tracker starts with them; this render's own reads
  replace carried ones, so a default-export function that re-reads a file
  records the bytes it drew.
- A card is no longer reused when this run's top-level reads differ from the
  ones its entry recorded, such as a logo chosen by an environment variable.
- takumi-js joins the hashed renderer peers, so upgrading Takumi renders
  metaplate/takumi plates again instead of reusing every card.
- An unreadable inputs entry names the error code and where relative paths
  resolve, and a URL written as a string is refused rather than read as a
  relative path.
- Manifest input paths come from manifestInputPath, tested against path.win32
  for other drives and UNC paths as well as path.posix.
Complete the release notes' Socket baseline and the review fixes, and stop
claiming the manifest never names local directories: it is published with
the site unless --manifest points outside --out, and files on another drive
or a UNC path keep absolute paths. render-cli.md and the recipes' privacy
note say so, and describe renders repeated in one process. The CHANGELOG
records the takumi-js hashing, the in-process fixes, the RenderInputsOption
export, and the development-only cross-spawn and minimatch audit fixes. The
rendering, edge, and fonts guides name Satori 0.64.3 as the audited release;
WOFF2 parsing, <style> rules, the standalone and layout.wasm exports, and the
lineClamp rules were each re-checked on it.
…nges

metaplate preview watched only the render module and its local imports, so
editing a logo, an artwork file, or a product photo left the gallery stale
until a code file was saved.

Each preview generation now gets a RenderInputTracker, created before the
module loads, and each card renders inside tracker.collect. The files a card
reads through readImageAsset and fileImageLoader, and those the plate's inputs
option names (watched even before they exist), join the watch as the card
renders, the same files metaplate render --incremental records. A change
reloads the module afresh, so a fileImageLoader it creates reads the new
bytes. An inputs that returns something other than file paths fails the card
with the message metaplate render gives, through a shared declaredInputFiles.

A directory keeps one watch however many cards read files in it. The preview
does not carry earlier generations' top-level reads, since it re-imports the
module each time, and a replaced generation's tracker keeps listening until
its renders settle, so a card still rendering does not hand its files to the
new generation.
Move its CHANGELOG entry under 0.9.1 and describe it in the release notes,
where it was listed as a follow-up.
@lnorton89
lnorton89 merged commit 03f0ef3 into main Dec 2, 2026
12 checks passed
@lnorton89
lnorton89 deleted the claude/epic-galileo-sndxei branch December 2, 2026 01:36
lnorton89 added a commit that referenced this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--incremental reuses cards when an image file they draw changes (fileImageLoader included)

2 participants