github cloudflare/workers-sdk @cloudflare/vite-plugin@2.0.0-beta.v.3

latest releases: create-cloudflare@2.74.2, @cloudflare/cli-shared-helpers@0.2.7, @cloudflare/workers-auth@0.14.1...
pre-release4 hours ago

Patch Changes

  • #15846 a88cac4 Thanks @oddharsh! - Fail with an error instead of hanging when local dev requests can't work under Bun

    Bun's fetch() ignores the undici dispatcher that Miniflare routes requests through (oven-sh/bun#39247). Under Bun, createTestHarness()'s server.fetch() and server.getWorker()'s fetch(), email() and scheduled() now throw a UserError, requests to the dev server URL get a 503 naming the cause, and starting remote bindings throws a UserError. Each of these used to hang with no error. server.getWorker().getEnv() and getExport() keep working under Bun.

  • #16318 ff1f971 Thanks @jamesopstad! - Prevent legacy Wrangler configuration files from being silently ignored

    The Vite plugin now stops with an actionable error when wrangler.json, wrangler.jsonc, or wrangler.toml is present without cloudflare.config.ts. Run npx cf migrate --bundler vite to migrate the project before building.

  • Updated dependencies [3464abc]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.