Skip to content

feat(deps): update dependency wrangler to v3.62.0

Soos requested to merge renovate/wrangler-3.x into master

This MR contains the following updates:

Package Update Change
wrangler minor 3.58.0 -> 3.62.0

Release Notes

cloudflare/workers-sdk (wrangler)

v3.62.0

Compare Source

Minor Changes
  • #​5950 0075621 Thanks @​WalshyDev! - feat: add wrangler versions secret put, wrangler versions secret bulk and wrangler versions secret list

    wrangler versions secret put allows for you to add/update a secret even if the latest version is not fully deployed. A new version with this secret will be created, the existing secrets and config are copied from the latest version.

    wrangler versions secret bulk allows you to bulk add/update multiple secrets at once, this behaves the same as secret put and will only make one new version.

    wrangler versions secret list lists the secrets available to the currently deployed versions. wrangler versions secret list --latest-version or wrangler secret list will list for the latest version.

    Additionally, we will now prompt for extra confirmation if attempting to rollback to a version with different secrets than the currently deployed.

Patch Changes
  • #​6118 1621992 Thanks @​WalshyDev! - fix: rollback in the case of a secret change, the prompt meant to show was not showing due to the spinner in an interactive env. It will now properly show.

    chore: improve the view of wrangler versions view and change up copy a little for versions secret commands.

  • #​6105 26855f3 Thanks @​helloimalastair! - feat: Add help messages to all invalid r2 commands

  • #​3735 9c7df38 Thanks @​lrapoport-cf! - chore: Cleanup wrangler --help output

    This commit cleans up and standardizes the look and feel of all wrangler commands as displayed by wrangler --help and wrangler <cmd> --help.

  • #​6080 e2972cf Thanks @​threepointone! - chore: run eslint (with react config) on workers-playground/wrangler

    This enables eslint (with our react config) for the workers-playground project. Additionally, this enables the react-jsx condition in relevant tsconfig/eslint config, letting us write jsx without having React in scope.

  • #​6001 d39d595 Thanks @​penalosa! - chore: changes to how wrangler dev launches your worker, behind the experimental --x-dev-env flag

  • #​5214 05c5607 Thanks @​penalosa! - feat: Experimental file based service discovery when running multiple Wrangler instances locally. To try it out, make sure all your local Wrangler instances are running with the --x-registry flag.

  • Updated dependencies [7d02856, d4e1e9f]:

v3.61.0

Compare Source

Minor Changes
  • #​5995 374bc44 Thanks @​petebacondarwin! - feat: allow Durable Object migrations to be overridable in environments

    By making the migrations key inheritable, users can provide different migrations for each wrangler.toml environment.

    Resolves #​729

Patch Changes
  • #​6039 dc597a3 Thanks @​petebacondarwin! - fix: hybrid nodejs compat now supports requiring the default export of a CJS module

    Fixes #​6028

  • #​6051 15aff8f Thanks @​threepointone! - fix: Don't check expiry dates on custom certs

    Fixes #​5964

    For wrangler dev, we don't have to check whether certificates have expired when they're provided by the user.

  • #​6052 b4c0233 Thanks @​threepointone! - chore: Add .wrangler and .DS_Store to .gitignore generated by wrangler init

    This commit adds a small QOL improvement to init (to be deprecated in the future), for those who still use this wrangler command.

  • #​6050 a0c3327 Thanks @​threepointone! - chore: Normalize more deps

    This is the last of the patches that normalize dependencies across the codebase. In this batch: ws, vitest, zod , rimraf, @types/rimraf, ava, source-map, glob, cookie, @types/cookie, @microsoft/api-extractor, @types/mime, @types/yargs, devtools-protocol, @vitest/ui, execa, strip-ansi

    This patch also sorts dependencies in every package.json

  • #​6029 f5ad1d3 Thanks @​threepointone! - chore: Normalize some dependencies in workers-sdk

    This is the first of a few expected patches that normalize dependency versions, This normalizes undici, concurrently, @types/node, react, react-dom, @types/react, @types/react-dom, eslint, typescript. There are no functional code changes (but there are a couple of typecheck fixes).

  • #​6046 c643a81 Thanks @​threepointone! - chore: Normalize more dependencies.

    Follow up to #​6029, this normalizes some more dependencies : get-port, chalk, yargs, toucan-js, @typescript-eslint/parser, @typescript-eslint/eslint-plugin, esbuild-register, hono, glob-to-regexp, @cloudflare/workers-types

  • #​6058 31cd51f Thanks @​threepointone! - chore: Quieter builds

    This patch cleans up warnings we were seeing when doing a full build. Specifically:

    • fixtures/remix-pages-app had a bunch of warnings about impending features that it should be upgraded to, so I did that. (tbh this one needs a full upgrade of packages, but we'll get to that later when we're upgrading across the codebase)
    • updated @microsoft/api-extractor so it didn't complain that it didn't match the typescript version (that we'd recently upgraded)
    • it also silenced a bunch of warnings when exporting types from wrangler. We'll need to fix those, but we'll do that when we work on unstable_dev etc.
    • workers-playground was complaining about the size of the bundle being generated, so I increased the limit on it
  • #​6043 db66101 Thanks @​threepointone! - fix: avoid esbuild warning when running dev/bundle

    I've been experimenting with esbuild 0.21.4 with wrangler. It's mostly been fine. But I get this warning every time

    ▲ [WARNING] Import "__INJECT_FOR_TESTING_WRANGLER_MIDDLEWARE__" will always be undefined because there is no matching export in "src/index.ts" [import-is-undefined]
    
        .wrangler/tmp/bundle-Z3YXTd/middleware-insertion-facade.js:8:23:
          8 │ .....(OTHER_EXPORTS.__INJECT_FOR_TESTING_WRANGLER_MIDDLEWARE__ ?? []),
    

    This is because esbuild@0.18.5 enabled a warning by default whenever an undefined import is accessed on an imports object. However we abuse imports to inject stuff in middleware.test.ts. A simple fix is to only inject that code in tests.

  • #​6062 267761b Thanks @​WalshyDev! - fix: typo in wrangler d1 execute saying "Databas" instead of "Database"

  • #​6064 84e6aeb Thanks @​helloimalastair! - fix: Wrangler is now able to upload files to local R2 buckets above the 300 MiB limit

  • Updated dependencies [a0c3327, f5ad1d3, 31cd51f]:

v3.60.3

Compare Source

Patch Changes
  • #​6025 122ef06 Thanks @​IgorMinar! - fix: avoid path collisions between performance and Performance Node.js polyfills

    It turns out that ESBuild paths are case insensitive, which can result in path collisions between polyfills for globalThis.performance and globalThis.Performance, etc.

    This change ensures that we encode all global names to lowercase and decode them appropriately.

  • #​6009 169a9fa Thanks @​RamIdeas! - fix: reduce the number of parallel file reads on Windows to avoid EMFILE type errors

    Fixes #​1586

  • 53acdbc Thanks @​petebacondarwin! - fix: warn if user tries normal deploy when in the middle of a gradual version rollout

  • Updated dependencies [c4146fc]:

    • miniflare@3.20240610.0

v3.60.2

Compare Source

Patch Changes
  • #​5307 e6a3d24 Thanks @​achanda! - fix: add more timePeriods to wrangler d1 insights

    This MR updates wrangler d1 insights to accept arbitrary timePeriod values up to 31 days.

v3.60.1

Compare Source

Patch Changes

v3.60.0

Compare Source

Minor Changes
  • #​5878 1e68fe5 Thanks @​IgorMinar! - feat: add experimental support for hybrid Node.js compatibility

    This feature is experimental and not yet available for general consumption.

    Use a combination of workerd Node.js builtins (behind the experimental:nodejs_compat_v2 flag) and Unenv polyfills (configured to only add those missing from the runtime) to provide a new more effective Node.js compatibility approach.

  • #​5988 e144f63 Thanks @​RamIdeas! - feature: rename the wrangler secret:bulk command to wrangler secret bulk

    The old command is now deprecated (but still functional) and will be removed in a future release. The new command is now more consistent with the rest of the wrangler CLI commands.

  • #​5989 35b1a2f Thanks @​RamIdeas! - feature: rename wrangler kv:... commands to wrangler kv ...

    The old commands are now deprecated (but still functional) and will be removed in a future release. The new commands are now more consistent with the rest of the wrangler CLI commands.

  • #​5861 1cc52f1 Thanks @​zebp! - feat: allow for Pages projects to upload sourcemaps

    Pages projects can now upload sourcemaps for server bundles to enable remapped stacktraces in realtime logs when deployed with upload_source_map set to true in wrangler.toml.

Patch Changes
  • #​5939 21573f4 Thanks @​penalosa! - refactor: Adds the experimental flag --x-dev-env which opts in to using an experimental code path for wrangler dev and wrangler dev --remote. There should be no observable behaviour changes when this flag is enabled.

  • #​5934 bac79fb Thanks @​dbenCF! - fix: Update create KV namespace binding details message for easier implementation

  • #​5927 6f83641 Thanks @​CarmenPopoviciu! - fix: Clean pages dev terminal ouput

    This work includes a series of improvements to the pages dev terminal output, in an attempt to make this output more structured, organised, cleaner, easier to follow, and therefore more helpful for our users <3

  • #​5960 e648825 Thanks @​petebacondarwin! - fix: avoid injecting esbuild watch stubs into production Worker code

    When we added the ability to include additional modules in the deployed bundle of a Worker, we inadvertently also included some boiler plate code that is only needed at development time.

    This fix ensures that this code is only injected if we are running esbuild in watch mode (e.g. wrangler dev) and not when building for deployment.

    It is interesting to note that this boilerplate only gets included in the production code if there is an import of CommonJS code in the Worker, which esbuild needs to convert to an ESM import.

    Fixes #​4269

  • Updated dependencies [ab95473]:

    • miniflare@3.20240605.0

v3.59.0

Compare Source

Minor Changes
  • #​5963 bf803d7 Thanks @​Skye-31! - Feature: Add support for hiding the "unsafe" fields are experimental warning using an environment variable

    By setting WRANGLER_DISABLE_EXPERIMENTAL_WARNING to any truthy value, these warnings will be hidden.

Patch Changes
  • Updated dependencies [bdbb7f8]:
    • miniflare@3.20240524.2

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports