github cloudflare/workers-sdk wrangler@2.6.0

Minor Changes

  • #2268 3be1c2cf Thanks @GregBrimble! - feat: Add support for --experimental-local to wrangler pages dev which will use the workerd runtime.

    Add @miniflare/tre environment polyfill to @cloudflare/pages-shared.

  • #2163 d73a34be Thanks @jimhawkridge! - feat: Add support for Analytics Engine bindings.

    For example:

    analytics_engine_datasets = [
        { binding = "ANALYTICS", dataset = "my_dataset" }
    ]
    

Patch Changes

  • #2177 e98613f8 Thanks @caass! - Trigger login flow if a user runs wrangler dev while logged out

    Previously, we would just error if a user logged out and then ran wrangler dev.
    Now, we kick them to the OAuth flow and suggest running wrangler dev --local if
    the login fails.

    Closes #2147

  • #2298 bb5e4f91 Thanks @rozenmd! - fix: d1 not using the preview database when using wrangler dev

    After this fix, wrangler will correctly connect to the preview database, rather than the prod database when using wrangler dev

  • #2176 d48ee112 Thanks @caass! - Use the user's preferred default branch name if set in .gitconfig.

    Previously, we would initialize new workers with main as the name of the default branch.
    Now, we see if the user has a custom setting in .gitconfig for init.defaultBranch, and use
    that if it exists.

    Closes #2112

  • #2275 bbfb6a96 Thanks @mrbbot! - Fix script reloads, and allow clean exits, when using --experimental-local on Linux

  • #2275 bbfb6a96 Thanks @mrbbot! - Fix DevTools inspector support when using --(experimental-)local

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.