Skip to content
EMDASH 1.6 TUTORIAL

Upgrade EmDash 0.x / 1.x to EmDash 1.6 Safely

Complete migration checklist from EmDash 0.5–1.5 to 1.6.0 using npx upgrade-emdash@latest, covering 1.0 breaking changes, 1.5 strict types, and D1 auto-migrations.

EmDash 1.6+Beginner2 min read·

Step 1: Run the Official Upgrade CLI

Always start in a clean Git branch and run:

Bash
npx upgrade-emdash@latest

This 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 native cacheCloudflare().
  • Remove deprecated Comments / CommentForm imports from emdash/ui.
  • Remove experimental.registry from astro.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.