github cloudflare/workers-sdk wrangler@2.8.0

latest releases: create-cloudflare@2.32.1, wrangler@3.86.1, @cloudflare/vitest-pool-workers@0.5.27...
22 months ago

Minor Changes

  • #2538 af4f27c5 Thanks @edevil! - feat: support EmailEvent event type in wrangler tail.

  • #2404 3f824347 Thanks @petebacondarwin! - feat: support bundling the raw Pages _worker.js before deploying

    Previously, if you provided a _worker.js file, then Pages would simply check the
    file for disallowed imports and then deploy the file as-is.

    Not bundling the _worker.js file means that it cannot containing imports to other
    JS files, but also prevents Wrangler from adding shims such as the one for the D1 alpha
    release.

    This change adds the ability to tell Wrangler to pass the _worker.js through the
    normal Wrangler bundling process before deploying by setting the --bundle
    command line argument to wrangler pages dev and wrangler pages publish.

    This is in keeping with the same flag for wrangler publish.

    Currently bundling is opt-in, flag defaults to false if not provided.

Patch Changes

  • #2525 fe8c6917 Thanks @rozenmd! - fix: send wrangler docs d1 to the right place

  • #2542 b44e1a75 Thanks @GregBrimble! - chore: Rename --bundle to --no-bundle in Pages commands to make similar to Workers

  • #2551 bfffe595 Thanks @rozenmd! - fix: wrangler init --from-dash incorrectly expects index.ts while writing index.js

    This PR fixes a bug where Wrangler would write a wrangler.toml expecting an index.ts file, while writing an index.js file.

  • #2529 2270507c Thanks @CarmenPopoviciu! - Remove "experimental _routes.json" warnings

    _routes.json is no longer considered an experimental feature, so let's
    remove all warnings we have in place for that.

  • #2548 4db768fa Thanks @rozenmd! - fix: path should be optional for wrangler d1 backup download

    This PR fixes a bug that forces folks to provide a --output flag to wrangler d1 backup download.

  • #2528 18208091 Thanks @caass! - Add some guidance when folks encounter a 10021 error.

    Error code 10021 can occur when your worker doesn't pass startup validation. This error message will make it a little easier to reason about what happened and what to do next.

    Closes #2519

  • #1769 6a67efe9 Thanks @dario-piotrowicz! - allow fetch() calls locally to accept URL Objects

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.