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

2 hours ago

Minor Changes

  • #16879 5970e6a Thanks @edmundhung! - Add readD1Migrations() and applyD1Migrations() for reading and applying D1 migrations

    These move from the Vitest plugin so other tools apply migrations the same way. readD1Migrations() is available from the main entry point and throws when the migrations directory is missing. applyD1Migrations() is available from the apply-d1-migrations entry point, which has no Node.js imports so it runs inside workerd, and it also accepts the D1 binding from Miniflare's getD1Database().

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.

  • #17078 b007991 Thanks @petebacondarwin! - Recover from missing Worker scripts after an interrupted first deploy

    When the Workers API returns a service without a script, wrangler deploy uses the first-deploy flow instead of crashing. wrangler versions upload tells you to run wrangler deploy first.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.