Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.46.0

4 Apr 2024Where it was published

3.114.17 is the newest release of 3.x.

In short

2 new1 fixed1 internal

Security

1 advisory affects 3.46.0; 3.114.17 fixes them

Release note

Minor Changes

  • Add source map support for Workers

    Adds the source_maps boolean config option. When enabled, source maps included in the build output are uploaded alongside the built code modules. Uploaded source maps can then be used to remap stack traces emitted by the Workers runtime.

  • Support named entrypoints in service bindings

    This change allows service bindings to bind to a named export of another Worker. As an example, consider the following Worker named bound:

    import { WorkerEntrypoint } from "cloudflare:workers";
    
    export class EntrypointA extends WorkerEntrypoint {
        fetch(request) {
            return new Response("Hello from entrypoint A!");
        }
    }
    
    export const entrypointB: ExportedHandler = {
        fetch(request, env, ctx) {
            return new Response("Hello from entrypoint B!");
        }
    };
    
    export default <ExportedHandler>{
        fetch(request, env, ctx) {
            return new Response("Hello from the default entrypoint!");
        }
    };

    Up until now, you could only bind to the default entrypoint. With this change, you can bind to EntrypointA or entrypointB too using the new entrypoint option:

    [[services]]
    binding = "SERVICE"
    service = "bound"
    entrypoint = "EntrypointA"

    To bind to named entrypoints with wrangler pages dev, use the # character:

    $ wrangler pages dev --service=SERVICE=bound#EntrypointA

Patch Changes

  • Ensure request url and cf properties preserved across service bindings

    Previously, Wrangler could rewrite url and cf properties when sending requests via service bindings or Durable Object stubs. To match production behaviour, this change ensures these properties are preserved.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.