github cloudflare/workers-sdk @cloudflare/vitest-plugin@1.9.1

2 hours ago

Patch Changes

  • #17070 657179d Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-23

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16879 5970e6a Thanks @edmundhung! - Throw from readD1Migrations() when the migrations directory doesn't exist

    Passing options with a missing migrationsDir used to return no migrations, so a typo silently applied nothing. It now throws "No migrations present at …", as Wrangler does. Passing a directory path that doesn't exist throws the same error. A migrations directory that can't be read now also throws when you pass options, and both forms name the directory in the error.

  • #17108 65f6f33 Thanks @Hebilicious! - Resolve the runner's vitest/worker import from the plugin, not from the project root

    The runner is a virtual module, /index.mjs, so Vite resolved its vitest/worker import from the project root. When the root could not resolve vitest, as in a pnpm workspace whose root package does not depend on it, no test file ran and Workers threw No such module "vitest/worker". When a parent directory had another vitest version, the runner loaded that version and Vitest failed to find the runner. The plugin now resolves vitest/worker from its own package, so the runner uses the same Vitest as the pool.

  • Updated dependencies [657179d, 657179d, 7afc49c, 086706d, 5b45f32, 00413bb, 5bc7dba, 086706d]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.