Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 12 May 08:19
· 3500 commits to main since this release
ded19b1

Patch Changes

  • #956 1caa5f7 Thanks @threepointone! - fix: don't crash during init if git is not installed

    When a command isn't available on a system, calling execa() on it throws an error, and not just a non zero exitCode. This patch fixes the flow so we don't crash the whole process when that happens on testing the presence of git when calling wrangler init.

    Fixes #950

  • #970 35e780b Thanks @GregBrimble! - fix: Fixes Pages Plugins and static asset routing.

    There was previously a bug where a relative pathname would be missing the leading slash which would result in routing errors.

  • #957 e0a0509 Thanks @JacobMGEvans! - refactor: Moving --legacy-env out of global
    The --legacy-env flag was in global scope, which only certain commands
    utilize the flag for functionality, and doesnt do anything for the other commands.

    resolves #933

  • #948 82165c5 Thanks @petebacondarwin! - fix: improve error message if custom build output is not found

    The message you get if Wrangler cannot find the output from the custom build is now more helpful.
    It will even look around to see if there is a suitable file nearby and make suggestions about what should be put in the main configuration.

    Closes #946

  • #952 ae3895e Thanks @d3lm! - feat: use host specific callback url

    To allow OAuth to work on environments such as WebContainer we have to generate a host-specific callback URL. This PR uses @webcontainer/env to generate such URL only for running in WebContainer. Otherwise the callback URL stays unmodified.

  • #951 09196ec Thanks @petebacondarwin! - fix: look for an alternate port in the dev command if the configured one is in use

    Previously, we were only calling getPort() if the configured port was undefined.
    But since we were setting the default for this during validation, it was never undefined.

    Fixes #949

  • #963 5b03eb8 Thanks @threepointone! - fix: work with Cloudflare WARP

    Using wrangler with Cloudflare WARP (https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/) requires using the Cloudflare certificate. This patch simply uses the certificate as NODE_EXTRA_CA_CERTS when we start wrangler.

    Test plan:

    • Turn on Cloudflare WARP/ Gateway with WARP
    • wrangler dev
    • Turn on Cloudflare WARP/ Gateway with DoH
    • wrangler dev
    • Turn off Cloudflare WARP
    • wrangler dev

    Fixes #953, #850

  • #964 0dfd95f Thanks @JacobMGEvans! - fix: KV not setting correctly
    The KV has URL inputs, which in the case of / would get collapsed and lost.
    T:o handle special characters encodeURIComponent is implemented.

    resolves #961