Step 1: Run the Official Upgrade CLI
Always start in a clean Git branch and run:
Bash
npx upgrade-emdash@latestThis command updates emdash, @emdash-cms/cloudflare, and sibling core packages in lockstep and writes a repo-specific .emdash/UPGRADE.md file describing every code change needed for your site.
Step 2: Check 0.x → 1.0 Breaking Changes (If Upgrading from 0.x)
- Replace
cloudflareCache()with Astro's nativecacheCloudflare(). - Remove deprecated
Comments/CommentFormimports fromemdash/ui. - Remove
experimental.registryfromastro.config.mjs—the official ATProto registry is now built in. - Migrate legacy npm-bundled plugins to sandboxed installs via Admin → Plugins → Registry.
Step 3: Check 1.5+ Strict Option Validation
Run npm run typecheck && npm run build. EmDash 1.5+ fails fast on unrecognized or mis-typed options passed to emdash().
Step 4: Verify 1.6 Automatic Migrations
Boot locally with npm run dev and confirm migration 098_user_last_login applies cleanly before deploying to production D1.