github cloudflare/workers-sdk @cloudflare/codemods@0.4.1

Patch Changes

  • #16016 f025bbf Thanks @Ankcorn! - Add bindings.analytics() as the preferred name for Analytics SQL bindings and deprecate bindings.analyticsSQL().

  • #15991 b4f6054 Thanks @NuroDev! - Use the default type generation behavior in projects migrated by cf migrate.

    Wrangler projects without dev.generate_types: false no longer get a wrangler.config.ts solely for a redundant type setting. An explicit opt-out still emits types.generate: false, and other Wrangler tooling still produces a config when needed.

  • #15946 1d38b36 Thanks @NuroDev! - Upgrade Wrangler dependencies to a version supported by cf dev when Wrangler-to-cf migration generates wrangler.config.ts.

    Affected projects receive the latest Wrangler release and an updated lockfile through their existing package manager. Compatible workspace links and existing dependency sections are preserved, and --no-install and --dry-run avoid package installation.

  • #15947 969f760 Thanks @NuroDev! - Upgrade the Vite plugin when migrating a Wrangler project to cf with Vite

    Vite migrations now install @cloudflare/vite-plugin@beta, keep the beta dist tag in package.json, and update the project's lockfile when the existing version is unsupported. Compatible installations remain unchanged, and Wrangler migrations do not update the plugin.

  • #15990 22dbde6 Thanks @NuroDev! - Avoid a manual migration TODO when an R2 binding uses the same production and preview bucket name.

    cf migrate now requests manual review only when the preview bucket name differs from the production bucket name.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.