github cloudflare/workers-sdk wrangler@4.15.0

Minor Changes

  • #8794 02f0699 Thanks @eastlondoner! - This adds support for more accurate types for service bindings when running wrangler types. Previously, running wrangler types with a config including a service binding would generate an Env type like this:

    interface Env {
    	SERVICE_BINDING: Fetcher;
    }

    This type was "correct", but didn't capture the possibility of using JSRPC to communicate with the service binding. Now, running wrangler types -c wrangler.json -c ../service/wrangler.json (the first config representing the current Worker, and any additional configs representing service bound Workers) will generate an Env type like this:

    interface Env {
    	SERVICE_BINDING: Service<import("../service/src/index").Entrypoint>;
    }
  • #8716 63a6504 Thanks @ItsWendell! - add --metafile flag to generate esbuild metadata file during build

  • #9122 f17ee08 Thanks @avenceslau! - Unhide wrangler workflows delete command

Patch Changes

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.