Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency wrangler to ^3.66.0 #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 31, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wrangler (source) ^3.57.2 -> ^3.66.0 age adoption passing confidence

Release Notes

cloudflare/workers-sdk (wrangler)

v3.66.0

Compare Source

Minor Changes
  • #​6295 ebc85c3 Thanks @​andyjessop! - feat: introduce an experimental flag for wrangler types to dynamically generate runtime types according to the user's project configuration.

  • #​6272 084d39e Thanks @​emily-shen! - fix: add legacy-assets config and flag as alias of current assets behavior

    • The existing behavior of the assets config key/flag will change on August 15th.
    • legacy-assets will preserve current functionality.
Patch Changes

v3.65.1

Compare Source

Patch Changes
  • #​6267 957d668 Thanks @​WalshyDev! - chore: add total module size to the logged table, this makes it much easier to see the total size of all modules combined.

  • #​6244 e7c06d7 Thanks @​gabivlj! - fix: wrangler cloudchamber json errors are properly formatted

  • Updated dependencies [779c713]:

    • miniflare@3.20240718.0

v3.65.0

Compare Source

Minor Changes
  • #​6194 25afcb2 Thanks @​zebp! - chore: Add duration and sourcemap size to upload metrics event

    Wrangler will now send the duration and the total size of any sourcemaps uploaded with your Worker to Cloudflare if you have metrics enabled.

  • #​6259 eb201a3 Thanks @​ottomated! - chore: Add types to DurableObjectNamespace type generation. For example:

    interface Env {
      OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
    }
  • #​6245 e4abed3 Thanks @​OilyLime! - feature: Add support for Hyperdrive over Access configs

Patch Changes
  • #​6255 d497e1e Thanks @​rozenmd! - fix: teach wrangler init --from-dash about d1 bindings

    This PR teaches wrangler init --from-dash about D1 bindings, so they aren't incorrectly added to the wrangler.toml as unsafe bindings.

  • #​6258 4f524f2 Thanks @​dom96! - feature: Add warning about deploying Python with requirements.txt

    This expands on the warning shown for all Python Workers to include a message about deploying Python Workers with a requirements.txt not being supported.

  • #​6249 8bbd824 Thanks @​petebacondarwin! - chore: Update config-schema.json for the wrangler.toml

  • #​5955 db11a0f Thanks @​harugon! - fix: correctly escape newlines in constructType function for multiline strings

    This fix ensures that multiline strings are correctly handled by the constructType function. Newlines are now properly escaped to prevent invalid JavaScript code generation when using the wrangler types command. This improves robustness and prevents errors related to multiline string handling in environment variables and other configuration settings.

  • #​6263 fa1016c Thanks @​petebacondarwin! - fix: use cli script-name arg when deploying a worker with queue consumers

  • Updated dependencies [0d32448]:

    • miniflare@3.20240712.0

v3.64.0

Minor Changes
  • #​4925 7d4a4d0 Thanks @​dom96! - feature: whoami, logout and login commands mention the CLOUDFLARE_API_TOKEN env var now

    It is easy to get confused when trying to logout while the CLOUDFLARE_API_TOKEN env var is set.
    The logout command normally prints out a message which states that the user is not logged in. This
    change rectifes this to explicitly call out that the CLOUDFLARE_API_TOKEN is set and requests that
    the user unsets it to logout.

Patch Changes
  • #​5032 75f7928 Thanks @​dbenCF! - Adding client side error handling for R2 when the user tries to create a bucket with an invalid name. The purpose of this addition is to provide the user with more context when encountering this error.

  • #​4398 4b1e5bc Thanks @​mattpocock! - fix: update tsconfig for Workers generated by wrangler init

v3.63.2

Patch Changes
  • #​6199 88313e5 Thanks @​dario-piotrowicz! - fix: make sure getPlatformProxy's ctx methods throw illegal invocation errors like workerd

    in workerd detaching the waitUntil and passThroughOnException methods from the ExecutionContext
    object results in them throwing illegal invocation errors, such as for example:

    export default {
      async fetch(_request, _env, { waitUntil }) {
        waitUntil(() => {}); // <-- throws an illegal invocation error
        return new Response("Hello World!");
      },
    };

    make sure that the same behavior is applied to the ctx object returned by getPlatformProxy

  • #​5569 75ba960 Thanks @​penalosa! - fix: Simplify wrangler pages download config:

    • Don't include inheritable keys in the production override if they're equal to production
    • Only create a preview environment if needed, otherwise put the preview config at the top level

v3.63.1

Compare Source

Patch Changes
  • #​6192 b879ce4 Thanks @​petebacondarwin! - fix: do not report D1 user errors to Sentry

  • #​6150 d993409 Thanks @​CarmenPopoviciu! - fix: Fix pages dev watch mode [_worker.js]

    The watch mode in pages dev for Advanced Mode projects is currently partially broken, as it only watches for changes in the "_worker.js" file, but not for changes in any of its imported dependencies. This means that given the following "_worker.js" file

    import { graham } from "./graham-the-dog";
    export default {
    	fetch(request, env) {
    		return new Response(graham)
    	}
    }
    

    pages dev will reload for any changes in the _worker.js file itself, but not for any changes in graham-the-dog.js, which is its dependency.

    Similarly, pages dev will not reload for any changes in non-JS module imports, such as wasm/html/binary module imports.

    This commit fixes all the aforementioned issues.

v3.63.0

Compare Source

Minor Changes
  • #​6167 e048958 Thanks @​threepointone! - feature: alias modules in the worker

    Sometimes, users want to replace modules with other modules. This commonly happens inside a third party dependency itself. As an example, a user might have imported node-fetch, which will probably never work in workerd. You can use the alias config to replace any of these imports with a module of your choice.

    Let's say you make a fetch-nolyfill.js

    export default fetch; // all this does is export the standard fetch function`

    You can then configure wrangler.toml like so:

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 https://github.com/cloudflare/workers-sdk/issues/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 https://github.com/cloudflare/workers-sdk/pull/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 PR 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

v3.58.0

Compare Source

Minor Changes
  • #​5933 93b98cb Thanks @​WalshyDev! - feature: allow for writing authentication details per API environment. This allows someone targetting staging to have their staging auth details saved separately from production, this saves them logging in and out when switching environments.
Patch Changes
  • #​5938 9e4d8bc Thanks @​threepointone! - fix: let "assets" in wrangler.toml be a string

    The experimental "assets" field can be either a string or an object. However the type definition marks it only as an object. This is a problem because we use this to generate the json schema, which gets picked up by vscode's even better toml extension, and shows it to be an error when used with a string (even though it works fine). The fix is to simply change the type definition to add a string variant.

  • #​5758 8e5e589 Thanks @​Jackenmen! - fix: use correct type for AI binding instead of unknown

  • Updated dependencies [e0e7725]:

    • miniflare@3.20240524.1

Configuration

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

🚦 Automerge: Enabled.

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

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.58.0 chore(deps): update dependency wrangler to ^3.59.0 Jun 4, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.59.0 chore(deps): update dependency wrangler to ^3.60.0 Jun 7, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.60.0 chore(deps): update dependency wrangler to ^3.60.1 Jun 10, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.60.1 chore(deps): update dependency wrangler to ^3.60.2 Jun 11, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.60.2 chore(deps): update dependency wrangler to ^3.60.3 Jun 14, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.60.3 chore(deps): update dependency wrangler to ^3.61.0 Jun 18, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.61.0 chore(deps): update dependency wrangler to ^3.62.0 Jun 25, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.62.0 chore(deps): update dependency wrangler to ^3.63.0 Jul 3, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.63.0 chore(deps): update dependency wrangler to ^3.63.1 Jul 4, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.63.1 chore(deps): update dependency wrangler to ^3.63.2 Jul 9, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.63.2 chore(deps): update dependency wrangler to ^3.64.0 Jul 11, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.64.0 chore(deps): update dependency wrangler to ^3.65.0 Jul 16, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.65.0 chore(deps): update dependency wrangler to ^3.65.1 Jul 19, 2024
@renovate renovate bot changed the title chore(deps): update dependency wrangler to ^3.65.1 chore(deps): update dependency wrangler to ^3.66.0 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants