Skip to content

Wrangler

2024-10-04

3.80.0

Minor Changes

Patch Changes

  • #6854 04a8fed Thanks @penalosa! - chore: Include serialised FormData in debug logs

  • #6879 b27d8cb Thanks @petebacondarwin! - fix: the docs command should not crash if given search terms

    Fixes a regression accidentally introduced by #3735.

  • #6873 b123f43 Thanks @zwily! - fix: reduce logging noise during wrangler dev with static assets

    Updates to static assets are accessible by passing in --log-level="debug" but otherwise hidden.

  • #6881 7ca37bc Thanks @RamIdeas! - fix: custom builds outputting files in assets watched directory no longer cause the custom build to run again in an infinite loop

  • #6872 b2d094e Thanks @petebacondarwin! - fix: render a helpful build error if a Service Worker mode Worker has imports

    A common mistake is to forget to export from the entry-point of a Worker, which causes Wrangler to infer that we are in "Service Worker" mode.

    In this mode, imports to external modules are not allowed. Currently this only fails at runtime, because our esbuild step converts these imports to an internal __require() call that throws an error. The error message is misleading and does not help the user identify the cause of the problem. This is particularly tricky where the external imports are added by a library or our own node.js polyfills.

    Fixes #6648

  • #6792 27e8385 Thanks @penalosa! - fix: Handle more module declaration cases

  • #6838 7dbd0c8 Thanks @GregBrimble! - fix: Improve static asset upload messaging

2024-10-01

3.79.0

Minor Changes

  • #6801 6009bb4 Thanks @RamIdeas! - feat: implement retries within wrangler deploy and wrangler versions upload to workaround spotty network connections and service flakes

Patch Changes

  • #6870 dc9039a Thanks @penalosa! - fix: Include workerd in the external dependecies of Wrangler to fix local builds.

  • #6866 c75b0d9 Thanks @zwily! - fix: debounce restarting worker on assets dir file changes

2024-09-27

3.78.12

Patch Changes

  • #6840 5bfb75d Thanks @a-robinson! - chore: update warning in wrangler dev --remote when using Queues to not mention beta status
3.78.11

Patch Changes

2024-09-25

3.78.9

Patch Changes

3.78.10

Patch Changes

2024-09-23

3.78.8

Patch Changes

  • #6791 74d719f Thanks @penalosa! - fix: Add missing binding to init --from-dash

  • #6728 1ca313f Thanks @emily-shen! - fix: remove filepath encoding on asset upload and handle sometimes-encoded characters

    Some characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded URL path. This change will make assets with filenames with these characters accessible at both the encoded and unencoded paths, but to use the encoded path as the canonical one, and to redirect requests to the canonical path if necessary.

  • #6798 7d7f19a Thanks @emily-shen! - fix: error if an asset binding is provided without a Worker script

  • Updated dependencies [1ca313f]:

2024-09-20

3.78.7

Patch Changes

  • #6775 ecd82e8 Thanks @CarmenPopoviciu! - fix: Support switching between static and dynamic Workers

    This commit fixes the current behaviour of watch mode for Workers with assets, and adds support for switching between static and dynamic Workers within a single wrangler dev session.

  • #6762 2840b9f Thanks @petebacondarwin! - fix: error if a user inadvertently uploads a Pages _workers.js file or directory as an asset

  • #6778 61dd93a Thanks @CarmenPopoviciu! - fix: Error if Workers + Assets are run in remote mode

    Workers + Assets are currently supported only in local mode. We should throw an error if users attempt to use Workers with assets in remote mode.

  • #6782 7655505 Thanks @vicb! - chore: update unenv dependency version

  • #6777 9649dbc Thanks @penalosa! - chore: Update CI messaging

  • #6779 3e75612 Thanks @emily-shen! - fix: include asset binding in wrangler types

2024-09-19

3.78.6

Patch Changes

  • #6743 b45e326 Thanks @petebacondarwin! - fix: ability to build tricky Node.js compat scenario Workers

    Adds support for non-default build conditions and platform via the WRANGLER_BUILD_CONDITIONS and WRANGLER_BUILD_PLATFORM flags.

    Fixes https://github.com/cloudflare/workers-sdk/issues/6742

  • #6776 02de103 Thanks @zebp! - fix: disable observability on deploy if not explicitly defined in config

    When deploying a Worker that has observability enabled in the deployed version but not specified in the wrangler.toml Wrangler will now set observability to disabled for the new version to match the wrangler.toml as the source of truth.

  • Updated dependencies [2ddbb65]: