Skip to content

chore!: remove deprecations before 1.0 - #3519

Merged
ascorbic merged 9 commits into
mainfrom
chore/remove-1.0-deprecations
Sep 27, 2026
Merged

ascorbic merged 9 commits into
mainfrom
chore/remove-1.0-deprecations

Conversation

@ascorbic

Copy link
Copy Markdown
Member

What does this PR do?

Removes the deprecated APIs that would otherwise be frozen into the 1.0 contract. It also adds a warning for the one deprecation that stays through 1.x. All of these are breaking changes, and each has a changeset (bumped minor, since major isn't accepted pre-1.0) that tells users exactly what to change.

Removed

  • Comments / CommentForm from emdash/ui. Import them from emdash/ui/comments. Nothing in docs, templates, demos, skills or e2e fixtures still used the barrel.
  • experimental.registry and the experimental option on EmDashConfig. After the registry option was removed, the namespace had no settings left.
    • emdash() does no unknown-key validation, so experimental: {} is still ignored at runtime.
    • A config that still sets experimental.registry throws at startup with a migration message. Silently ignoring it would drop the operator's aggregator URL and minimumReleaseAge holdback, and fall back to the default registry with no release-age policy.
    • The resolver collapses to top-level registry only, and the fieldPrefix plumbing is gone. Admin registry diagnostics now always name registry.*.
    • The atproto lexicon NSIDs (com.emdashcms.experimental.*) are untouched.
  • The emdash dev and emdash auth secret CLI commands. They now exit 1 with Unknown command. The EMDASH_AUTH_SECRET IP-salt fallback is unchanged. The docs for both commands and for the now-unused package.json emdash.url key are removed.
  • cloudflareCache() and the @emdash-cms/cloudflare/cache and /cache/config entry points. The replacement is Workers native cache plus cacheCloudflare() from @astrojs/cloudflare/cache. kvCache() and ./cache/kv are unchanged.
  • The stale EXPERIMENTAL "pin while RFC 0001 is in flight" note in @emdash-cms/plugin-types. It's a comment-only change, so it has no changeset.

Kept through 1.x: legacy plugin capability names (read:content, network:fetch, page:inject, …).

  • An npm scan of 181 packages found about 23 live third-party plugins still declaring old names, plus our own aiSearch().
  • Stored R2 manifests are re-parsed on every load and never rewritten. Dropping the aliases would silently stop those installed plugins from loading.

This PR instead:

  • Switches aiSearch(), the README and the Cloudflare demo to the current names.
  • Adds a once-per-plugin console.warn at plugin load. It is called from definePlugin, adaptSandboxEntry, loadBundleFromR2 and configured sandboxed entries, and is deduped on globalThis. It adds no queries and doesn't run per request.

Also reviewed, kept through 1.x with no action: the marketplace option and flag, PasskeyLogin.showEmailInput, the import/ssrf.ts shim, and plugin-cli's deprecated flags.

Two adversarial-review passes ran before this was pushed. The only findings were wording fixes, in the removed-option error and the emdash types --url guidance, and both are applied.

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling). This is 1.0 deprecation removal: breaking API removals agreed by the maintainer, plus a non-breaking deprecation warning.

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes, as does pnpm typecheck:demos.
  • pnpm lint passes: lint:quick is clean and lint:json reports 0 diagnostics.
  • pnpm test passes (or targeted tests for my change). The suites that ran:
    • core unit: 8861
    • core CLI integration: 106
    • cloudflare: 498
    • admin: 2751
    • workerd: 206
  • pnpm format has been run. Touched files were formatted and pnpm format:check passes.
  • I have added/updated tests for my changes (if applicable). New or updated tests cover:
    • the experimental.registry startup error
    • experimental: {} still being tolerated
    • the removed CLI commands failing
    • the deprecated-capability warning in definePlugin, adaptSandboxEntry and stored bundles
    • registry diagnostics naming registry.*
  • User-visible strings in the admin UI are wrapped for translation (if applicable). The admin change only removes experimental.registry.* banner cases. No messages.po changes are included.
  • I have added and reviewed the user-facing changeset (if this PR changes a published package). There are five, one per change.
  • New features link to an approved Discussion. Not applicable: the only addition is a deprecation warning, and the removals were agreed by the maintainer.
  • I have included screenshots below if this PR changes the UI. Not applicable: the admin banner only loses the experimental.registry.* cases, and the registry.* rendering is unchanged.

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Claude Opus 5.5 (Claude Code)

Screenshots / test output

Not applicable.

- Remove the deprecated `Comments` / `CommentForm` re-exports from
  `emdash/ui`; `emdash/ui/comments` remains the import path.
- Remove the `experimental.registry` integration option and the now-empty
  `experimental` namespace. A config that still sets
  `experimental.registry` fails at startup with a migration message
  rather than silently dropping its aggregator and release-age policy.
  Registry config diagnostics always use the `registry.*` field prefix.
- Drop the stale EXPERIMENTAL note from @emdash-cms/plugin-types.
@changeset-bot

changeset-bot Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5e50644

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@emdash-cms/cloudflare Patch
emdash Patch
@emdash-cms/admin Patch
@emdash-cms/plugin-test Patch
@emdash-cms/sandbox-workerd Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
create-emdash Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
@emdash-cms/auth-atproto Patch
@emdash-cms/plugin-embeds Patch

Not sure what this means? Click here to learn what changesets are.

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

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://chore-remove-1-0-deprecations.try.emdashcms.com, https://chore-remove-1-0-deprecations-emdash-playground.emdash-cms.workers.dev (commit 5e50644)

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://2110a9bf.try.emdashcms.com, https://2110a9bf-emdash-playground.emdash-cms.workers.dev 5e50644 2026-09-27T21:54:11.324Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c59774bd.try.emdashcms.com, https://c59774bd-emdash-playground.emdash-cms.workers.dev 865e860 2026-09-27T20:39:00.373Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://e22cda71.try.emdashcms.com, https://e22cda71-emdash-playground.emdash-cms.workers.dev cfe097e 2026-09-27T15:12:48.920Z Visit the dashboard ↗

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 27, 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 865e860 Sep 27 2026, 08:38 PM

@github-actions

Copy link
Copy Markdown
Contributor

Scope check

This PR changes 1,434 lines across 54 files. Large PRs are harder to review and more likely to be closed without review.
This PR spans 5 different areas (area/core, area/admin, area/docs, area/auth, area/cloudflare). Consider breaking it into smaller, focused PRs.

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.

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a focused, well-scoped pre-1.0 cleanup that removes deprecated surfaces with clear migration paths and tests. I reviewed the full diff and key surrounding files, and I did not find any logic bugs, regressions, convention violations, or false documentation claims.

What changed and why it fits:

  • Comments / CommentForm barrel removal: Removed from emdash/ui and packages/core/src/components/index.ts, kept at emdash/ui/comments. Verified no remaining imports use the barrel path for these components.
  • experimental.registry removal: assertNoRemovedRegistryOption throws a helpful migration error rather than silently dropping config; experimental: {} is still tolerated. Registry diagnostics now consistently name registry.*, and the admin banner no longer references experimental.registry.*.
  • CLI command removal: emdash dev and emdash auth secret are gone; help tests verify Unknown command exit. Docs for the removed commands and package.json emdash.url were removed, while EMDASH_AUTH_SECRET fallback docs correctly remain because the env var is still read for IP-salt continuity.
  • Cloudflare cache removal: cloudflareCache(), the ./cache and ./cache/config entry points, and the runtime/config source files are removed. No in-repo references remain outside changelog/changeset.
  • Deprecation warning for legacy capability names: A once-per-plugin console.warn is emitted from definePlugin, adaptSandboxEntry, loadBundleFromR2, and the configured sandboxed-entry loader, using raw capabilities before normalization. Dedup uses globalThis[Symbol.for(...)], which is appropriate for startup-time warnings in Node/Worker isolates. aiSearch() and docs/examples now use current names.

Changesets: all five are present, user-facing, and include concrete migration guidance; package/bump choices match the breaking vs. additive nature of each change.

No issues to report.

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

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

@emdash-cms/auth

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

@emdash-cms/auth-atproto

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

@emdash-cms/blocks

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

@emdash-cms/cloudflare

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

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

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

emdash

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

create-emdash

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

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

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

@emdash-cms/plugin-cli

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

@emdash-cms/plugin-test

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

@emdash-cms/plugin-types

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

@emdash-cms/registry-client

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

@emdash-cms/registry-lexicons

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

@emdash-cms/registry-loader

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

@emdash-cms/registry-moderation

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

@emdash-cms/registry-verification

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

@emdash-cms/sandbox-workerd

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

@emdash-cms/x402

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

@emdash-cms/plugin-ai-moderation

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

@emdash-cms/plugin-atproto

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

@emdash-cms/plugin-audit-log

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

@emdash-cms/plugin-color

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

@emdash-cms/plugin-embeds

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

@emdash-cms/plugin-field-kit

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

@emdash-cms/plugin-forms

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

@emdash-cms/plugin-webhook-notifier

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

commit: 5e50644

@github-actions github-actions Bot added review/approved Approved; no new commits since needs-rebase overlap and removed review/needs-review No maintainer or bot review yet labels Sep 27, 2026
@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.

# Conflicts:
#	packages/core/src/astro/integration/index.ts
#	packages/core/src/astro/integration/runtime.ts
Main is in 1.0 release-candidate pre mode from a 1.0.0 baseline, so a
minor bump here would version the release as 1.1.0. Breaking changes
bound for 1.0 use patch.
@github-actions github-actions Bot added review/needs-rereview New commits since the last review and removed review/approved Approved; no new commits since needs-rebase labels Sep 27, 2026
@emdashbot emdashbot Bot mentioned this pull request Sep 27, 2026
7 of 19 tasks
… changeset

@astrojs/cloudflare enables Workers Cache in the generated deployment
config when cacheCloudflare() is the provider.
@ascorbic ascorbic added the bot:review Trigger an emdashbot code review on this PR label Sep 27, 2026

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review of the pre-1.0 deprecation cleanup. The code changes are otherwise sound: the four deprecated surfaces are removed cleanly, references across docs/demos/templates are gone or updated, the legacy-capability warning emits once per plugin from every relevant load path, and the new/updated tests verify observable behavior rather than implementation trivia.

One significant issue surfaced in the release metadata: the PR description says the breaking-removal changesets were bumped minor (because major isn't accepted pre-1.0), but the actual changeset files are all patch. Merging as-is would ship breaking removals as a patch release, which contradicts both the author's stated intent and the usual pre-1.0 semver signal for breaking changes. The four removal changesets should be minor; the additive warning changeset can stay patch.

No logic bugs, regressions, security issues, or AGENTS.md convention violations were found in the implementation or documentation.

@@ -0,0 +1,21 @@
---
"@emdash-cms/cloudflare": patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[needs fixing] This changeset removes a public cache provider and its package entry points — a breaking change — but the frontmatter says patch. The PR description explicitly states these removal changesets were bumped minor (since major is not accepted pre-1.0). A patch release will not communicate the breaking nature of this removal to consumers.

Suggested change
"@emdash-cms/cloudflare": patch
"@emdash-cms/cloudflare": minor

@@ -0,0 +1,14 @@
---
"emdash": patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[needs fixing] This changeset removes Comments and CommentForm from the emdash/ui barrel, which breaks sites still importing from that path. It should be a minor bump, matching the author's stated intent in the PR description.

Suggested change
"emdash": patch
"emdash": minor

@@ -0,0 +1,8 @@
---
"emdash": patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[needs fixing] This changeset removes emdash dev and emdash auth secret, a breaking change for any script still calling them. It should be a minor bump so the release signals the removal.

Suggested change
"emdash": patch
"emdash": minor

@@ -0,0 +1,25 @@
---
"emdash": patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[needs fixing] This changeset removes the experimental.registry integration option and makes configs that still set it throw at startup. That is a breaking change for both emdash and @emdash-cms/admin. Both package entries should be minor.

Suggested change
"emdash": patch
---
"emdash": minor
"@emdash-cms/admin": minor
---

@emdashbot emdashbot Bot removed the bot:review Trigger an emdashbot code review on this PR label Sep 27, 2026
@github-actions github-actions Bot added review/approved Approved; no new commits since and removed review/needs-rereview New commits since the last review labels Sep 27, 2026
@ascorbic
ascorbic merged commit 0b4be2c into main Sep 27, 2026
53 checks passed
@ascorbic
ascorbic deleted the chore/remove-1.0-deprecations branch September 27, 2026 22:44
@emdashbot emdashbot Bot mentioned this pull request Sep 27, 2026
@emdashbot emdashbot Bot mentioned this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant