github cloudflare/workers-sdk @cloudflare/workers-utils@0.41.0

latest releases: @cloudflare/vite-plugin@1.57.1, wrangler@4.136.1, @cloudflare/vitest-plugin@1.2.1...
4 hours ago

Minor Changes

  • #15699 45b3b81 Thanks @skepticfx! - Remove the experimental Container image environment binding

    Durable Object-managed Containers now use ctx.container.images without Wrangler generating env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES. Update code using the experimental environment binding to read ctx.container.images and regenerate your Worker types.

    Version deployments identify managed applications from native named images, and --containers-rollout=none preserves native Container metadata. Containers without named images must first be provisioned with wrangler deploy; versions upload verifies that their applications already exist. The old binding is no longer read or reserved, including on previously uploaded versions. keep_vars retains existing variables as usual; redeploy without it to remove an existing experimental binding.

Patch Changes

  • #15707 95af41d Thanks @halfstack-dev! - Support nested D1 migration layouts in readD1Migrations()

    readD1Migrations() now accepts the same migrationsDir / migrationsPattern options Wrangler uses, so Vitest can apply Drizzle-style nested files such as 0001_init/migration.sql. Discovery is shared with Wrangler via @cloudflare/workers-utils, so the test path and wrangler d1 migrations apply stay aligned.

    The original readD1Migrations(migrationsPath) signature still reads only top-level *.sql files in that directory.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.