Skip to content

feat(schema): add versioned block type definitions - #3314

Merged
ascorbic merged 2 commits into
mainfrom
codex/blocks-registry
Sep 23, 2026
Merged

ascorbic merged 2 commits into
mainfrom
codex/blocks-registry

Conversation

@ascorbic

@ascorbic ascorbic commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Adds database-owned, versioned block type definitions. It introduces the block type and retained-version tables, deterministic fingerprints, compatible and breaking update classification, inactive breaking versions, explicit activation, seed-safe exact version handling, and SQLite/D1 coverage.

This is B0 of stack #3321. The complete feature changeset is intentionally carried by the final stack PR, #3320.

Responds to #337

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: GPT-5.6 Sol (Codex)

Screenshots / test output

Not applicable. Covered by block registry unit, SQLite/PostgreSQL-compatible integration, migration retry, and workerd/D1 tests.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d88d0f1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added review/needs-review No maintainer or bot review yet area/core size/XL labels Sep 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Scope check

This PR changes 1,804 lines across 15 files. Large PRs are harder to review and more likely to be closed without review.

If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs.

See CONTRIBUTING.md for contribution guidelines.

@ascorbic
ascorbic added this pull request to stack #3321 September 23, 2026 10:48
@ascorbic ascorbic changed the title codex/blocks registry feat(schema): add versioned block type definitions Sep 23, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@3314

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@3314

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@3314

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@3314

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@3314

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@3314

emdash

npm i https://pkg.pr.new/emdash@3314

create-emdash

npm i https://pkg.pr.new/create-emdash@3314

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@3314

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@3314

@emdash-cms/plugin-test

npm i https://pkg.pr.new/@emdash-cms/plugin-test@3314

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@3314

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@3314

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@3314

@emdash-cms/registry-loader

npm i https://pkg.pr.new/@emdash-cms/registry-loader@3314

@emdash-cms/registry-moderation

npm i https://pkg.pr.new/@emdash-cms/registry-moderation@3314

@emdash-cms/registry-verification

npm i https://pkg.pr.new/@emdash-cms/registry-verification@3314

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@3314

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@3314

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@3314

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@3314

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@3314

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@3314

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@3314

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@3314

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@3314

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@3314

commit: d88d0f1

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-blocks-registry.try.emdashcms.com, https://codex-blocks-registry-emdash-playground.emdash-cms.workers.dev (commit d88d0f1)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://21c348df.try.emdashcms.com, https://21c348df-emdash-playground.emdash-cms.workers.dev d88d0f1 2026-09-23T15:35:49.999Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://24d911a9.try.emdashcms.com, https://24d911a9-emdash-playground.emdash-cms.workers.dev ad661de 2026-09-23T12:27:43.547Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://cd7a2141.try.emdashcms.com, https://cd7a2141-emdash-playground.emdash-cms.workers.dev 0baf8fa 2026-09-23T10:52:02.087Z Visit the dashboard ↗

@github-actions

Copy link
Copy Markdown
Contributor

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs d88d0f1 Sep 23 2026, 03:37 PM

@ascorbic
ascorbic force-pushed the codex/blocks-registry branch from ad661de to d88d0f1 Compare September 23, 2026 15:29
@ascorbic
ascorbic merged commit e7fff95 into main Sep 23, 2026
48 checks passed
@ascorbic
ascorbic deleted the codex/blocks-registry branch September 23, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant