Repository navigation
chore!: remove deprecations before 1.0 - #3519
Conversation
- 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.
…rrent names in aiSearch()
🦋 Changeset detectedLatest commit: 5e50644 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
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 |
🚀 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 deploymentPreview Deployments by commit
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | 865e860 | Sep 27 2026, 08:38 PM |
Scope checkThis PR changes 1,434 lines across 54 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. |
There was a problem hiding this comment.
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/CommentFormbarrel removal: Removed fromemdash/uiandpackages/core/src/components/index.ts, kept atemdash/ui/comments. Verified no remaining imports use the barrel path for these components.experimental.registryremoval:assertNoRemovedRegistryOptionthrows a helpful migration error rather than silently dropping config;experimental: {}is still tolerated. Registry diagnostics now consistently nameregistry.*, and the admin banner no longer referencesexperimental.registry.*.- CLI command removal:
emdash devandemdash auth secretare gone; help tests verifyUnknown commandexit. Docs for the removed commands andpackage.jsonemdash.urlwere removed, whileEMDASH_AUTH_SECRETfallback docs correctly remain because the env var is still read for IP-salt continuity. - Cloudflare cache removal:
cloudflareCache(), the./cacheand./cache/configentry 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.warnis emitted fromdefinePlugin,adaptSandboxEntry,loadBundleFromR2, and the configured sandboxed-entry loader, using raw capabilities before normalization. Dedup usesglobalThis[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.
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/auth-atproto
@emdash-cms/blocks
@emdash-cms/cloudflare
@emdash-cms/contentful-to-portable-text
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/plugin-cli
@emdash-cms/plugin-test
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/registry-loader
@emdash-cms/registry-moderation
@emdash-cms/registry-verification
@emdash-cms/sandbox-workerd
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-field-kit
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
Overlapping PRsThis 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.
… changeset @astrojs/cloudflare enables Workers Cache in the generated deployment config when cacheCloudflare() is the provider.
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
[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.
| "@emdash-cms/cloudflare": patch | |
| "@emdash-cms/cloudflare": minor |
| @@ -0,0 +1,14 @@ | |||
| --- | |||
| "emdash": patch | |||
There was a problem hiding this comment.
[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.
| "emdash": patch | |
| "emdash": minor |
| @@ -0,0 +1,8 @@ | |||
| --- | |||
| "emdash": patch | |||
There was a problem hiding this comment.
[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.
| "emdash": patch | |
| "emdash": minor |
| @@ -0,0 +1,25 @@ | |||
| --- | |||
| "emdash": patch | |||
There was a problem hiding this comment.
[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.
| "emdash": patch | |
| --- | |
| "emdash": minor | |
| "@emdash-cms/admin": minor | |
| --- |
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, sincemajorisn't accepted pre-1.0) that tells users exactly what to change.Removed
Comments/CommentFormfromemdash/ui. Import them fromemdash/ui/comments. Nothing in docs, templates, demos, skills or e2e fixtures still used the barrel.experimental.registryand theexperimentaloption onEmDashConfig. After the registry option was removed, the namespace had no settings left.emdash()does no unknown-key validation, soexperimental: {}is still ignored at runtime.experimental.registrythrows at startup with a migration message. Silently ignoring it would drop the operator's aggregator URL andminimumReleaseAgeholdback, and fall back to the default registry with no release-age policy.registryonly, and thefieldPrefixplumbing is gone. Admin registry diagnostics now always nameregistry.*.com.emdashcms.experimental.*) are untouched.emdash devandemdash auth secretCLI commands. They now exit 1 withUnknown command. TheEMDASH_AUTH_SECRETIP-salt fallback is unchanged. The docs for both commands and for the now-unusedpackage.jsonemdash.urlkey are removed.cloudflareCache()and the@emdash-cms/cloudflare/cacheand/cache/configentry points. The replacement is Workers native cache pluscacheCloudflare()from@astrojs/cloudflare/cache.kvCache()and./cache/kvare unchanged.@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, …).aiSearch().This PR instead:
aiSearch(), the README and the Cloudflare demo to the current names.console.warnat plugin load. It is called fromdefinePlugin,adaptSandboxEntry,loadBundleFromR2and configured sandboxed entries, and is deduped onglobalThis. It adds no queries and doesn't run per request.Also reviewed, kept through 1.x with no action: the
marketplaceoption and flag,PasskeyLogin.showEmailInput, theimport/ssrf.tsshim, 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 --urlguidance, and both are applied.Type of change
Checklist
pnpm typecheckpasses, as doespnpm typecheck:demos.pnpm lintpasses:lint:quickis clean andlint:jsonreports 0 diagnostics.pnpm testpasses (or targeted tests for my change). The suites that ran:pnpm formathas been run. Touched files were formatted andpnpm format:checkpasses.experimental.registrystartup errorexperimental: {}still being tolerateddefinePlugin,adaptSandboxEntryand stored bundlesregistry.*experimental.registry.*banner cases. Nomessages.pochanges are included.experimental.registry.*cases, and theregistry.*rendering is unchanged.AI-generated code disclosure
Screenshots / test output
Not applicable.