Skip to content

feat(registry): align publisher with the live v2 catalog - #5

Merged
agalwood merged 1 commit into
mainfrom
feat/registry_v2_publish_20261009
Oct 9, 2026
Merged

agalwood merged 1 commit into
mainfrom
feat/registry_v2_publish_20261009

Conversation

@agalwood

@agalwood agalwood commented Oct 9, 2026

Copy link
Copy Markdown
Member

The public registry and both consumers already use registry v2, while this repository's main branch still generates v1. Publishing an ordinary entry update from main would replace the live v2 catalog with an incompatible document.

This change aligns the schema, listing data, locale resolver, and shared conformance corpus with the existing consumers. It separates strict publisher validation from tolerant consumer parsing, fixes rejection of und locales across current ICU versions, and enforces the 4 MiB UTF-8 artifact limit. The three generated plugin entries are identical to the current public entries; plugin versions, package identities, and permissions are unchanged.

Publishing now builds and validates an immutable registry artifact before the plugin-publishing approval. After approval, it verifies that exact artifact by id, SHA-256, size, and schema, rejects a superseded main commit, backs up the previous R2 object, and conditionally replaces the live key using the observed ETag. Direct R2 and public readbacks are verified. Asset upload is retained. Website deployment remains manual and requires no website repository or deployment token in this workflow.

Validation:

  • pnpm check, pnpm test (106 passing), pnpm validate, and pnpm aggregate.
  • actionlint passes for all three workflows; pinned action commits verified against their official tags.
  • App: 55 registry tests; shared corpus passes in Electron 44.5.0 main and renderer (21 wire cases and 8 resolver cases each, ICU 78.2 / CLDR 48).
  • Website: 66 registry and release-artifact tests; shared fixtures/corpus are byte-identical across all three repositories.
  • Local execution of the publish shell with mocked GitHub/R2 commands: successful publication and backup verification; no live-key write after artifact tampering, main supersession, or ETag conflict.
  • Current public registry compared against the candidate: same v2 plugin entries.

The production write path has not been exercised. Merging starts the candidate build; publishing still requires environment approval. This PR does not release scraper-hook 1.1.0 or change its registry version.

@agalwood
agalwood marked this pull request as ready for review October 9, 2026 04:18
@agalwood
agalwood merged commit bfc7b00 into main Oct 9, 2026
1 check passed
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.

1 participant