Packages

wrangler

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

Your version

4.82.0

13 Apr 2026Where it was published

4.167.0 is the newest release of 4.x.

npm marks 4.82.0 as deprecated: This release had problems with invalid OAuth scopes when logging in

In short

7 new1 fixed2 internal

Release note

Minor Changes

  • Add artifacts:write to Wrangler's default OAuth scopes, enabling wrangler login to request access to Cloudflare Artifacts (registries and artifacts).

  • Add Flagship feature flag binding support

    Adds end-to-end support for the Flagship feature flag binding, which allows Workers to evaluate feature flags from Cloudflare's Flagship service. Configure it in wrangler.json with a flagship array containing binding and app_id entries. In local dev, the binding returns default values for all flag evaluations; use "remote": true in the binding to evaluate flags against the live Flagship service.

  • Added the wrangler preview command family for creating Preview deployments (currently in private beta).

  • Add preview output-file entries for wrangler preview deployments

    wrangler preview now writes a preview entry to the Wrangler output file when WRANGLER_OUTPUT_FILE_PATH or WRANGLER_OUTPUT_FILE_DIRECTORY is configured. The entry includes the Worker name, preview metadata (preview_id, preview_name, preview_slug, preview_urls) and deployment metadata (deployment_id, deployment_urls).

    This makes preview command runs machine-readable in the same output stream as other Wrangler commands, which helps CI integrations consume preview URLs and IDs directly.

  • Add wrangler browser commands for managing Browser Rendering sessions

    New commands for Browser Rendering DevTools:

    • wrangler browser create [--lab] [--keepAlive <seconds>] [--open] - Create a new session

    • wrangler browser close <sessionId> - Close a session

    • wrangler browser list - List active sessions

    • wrangler browser view [sessionId] [--target <selector>] [--open] - View a live browser session

    The view command auto-selects when only one session exists, or prompts for selection when multiple are available.

    The --open flag controls whether to open DevTools in browser (default: true in interactive mode, false in CI/scripts). Use --no-open to just print the DevTools URL.

    All commands support --json for programmatic output. Also adds browser:write OAuth scope to wrangler login.

  • Add telemetry to local REST API

    The local REST API (used by the local explorer) now collects anonymous usage telemetry. This respects any existing telemetry preferences, which can be disabled by running the command wrangler telemetry disable.

    This only applies when the dev session is started via Wrangler, and not via the Vite plugin or standalone Miniflare.

    No actual data values, keys, query contents, or resource IDs are collected.

    Event schema:

    {
      "event": "localapi.<route>.<method>", // e.g. localapi.kv.keys.get
      "deviceId": "<uuid>",
      "timestamp": 1234567890,
      "properties": {
        "userAgent": "Mozilla/5.0 ...",
        // Only for localapi.local.workers.get:
        "workerCount": 2,
        "kvCount": 3,
        "d1Count": 1,
        "r2Count": 0,
        "doCount": 1,
        "workflowsCount": 0
      }
    }

    Note: the Local Explorer and corresponding local REST API is still an experimental feature.

  • explorer: Expose the local explorer hotkey

    List the local explorer's hotkey [e] in wrangler dev output.

Patch Changes

  • Keep proxy notices off stdout for JSON Wrangler commands

    Wrangler now writes the startup notice for HTTP_PROXY and HTTPS_PROXY to stderr instead of stdout. This keeps commands like wrangler auth token --json machine-readable when a proxy is configured.

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.