Change8

@cloudflare/vite-plugin@1.43.0

📦 cloudflare-workersView on GitHub →
6 features🔧 11 symbols

Summary

This release introduces declarative Durable Object exports via `wrangler.json` to manage DO lifecycle (creation, deletion, renaming, transfer). It also enhances deployment feedback and ensures local development and testing environments respect the new declarative configuration.

Migration Steps

  1. When defining Durable Object lifecycle in `wrangler.json`, consider replacing the legacy `migrations` array with the new declarative `exports` map.
  2. If running multi-version deploys (`wrangler versions deploy A@50% B@50%`) where versions disagree on declarative `exports`, deploy the version changing `exports` at 100% first before running the percentage-split deploy.

✨ New Features

  • Added support for declarative Durable Object exports via an `exports` map in `wrangler.json` as an alternative to the legacy `migrations` array.
  • Deployment response now surfaces server reconciliation results, including created namespaces, applied tombstones, scenario-specific info, and a `removable_entries` hint.
  • Blocking errors during deployment now return structured per-class detail with scenario tags, suggested remediation, and referencing-script context.
  • Local development (`wrangler dev`, `vite dev`, `unstable_startWorker`) now reads Durable Object SQLite storage settings from the new `exports` field.
  • `@cloudflare/vitest-pool-workers` now reads Durable Object configuration from `exports` for correct local SQLite storage and unbound DO class access via `ctx.exports.X`.
  • `wrangler types` is now aware of `exports`, adding live entries (including `expecting-transfer`) to `Cloudflare.GlobalProps.durableNamespaces` to type `ctx.exports.X` for unbound DOs.

Affected Symbols