Repository navigation
feat(registry): align publisher with the live v2 catalog - #5
Merged
Merged
Conversation
agalwood
marked this pull request as ready for review
October 9, 2026 04:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
undlocales 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-publishingapproval. 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, andpnpm aggregate.actionlintpasses for all three workflows; pinned action commits verified against their official tags.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.