Update dependency wrangler to v3.68.0#12
Closed
renovate[bot] wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
af31f82 to
f1b330e
Compare
f1b330e to
a4437de
Compare
a4437de to
aeb5554
Compare
aeb5554 to
0124a0b
Compare
0124a0b to
0fb7d22
Compare
0fb7d22 to
67cd274
Compare
67cd274 to
c207a2e
Compare
c207a2e to
73e38b9
Compare
73e38b9 to
8c11427
Compare
8c11427 to
a1a42c7
Compare
0632a00 to
70acbc5
Compare
70acbc5 to
2a322ff
Compare
2a322ff to
ad2695a
Compare
ad2695a to
42397df
Compare
42397df to
ed2e6e7
Compare
ed2e6e7 to
23691b2
Compare
23691b2 to
900c9e9
Compare
900c9e9 to
6caf704
Compare
6caf704 to
0a240c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.57.0->3.68.0Release Notes
cloudflare/workers-sdk (wrangler)
v3.68.0Compare Source
Minor Changes
#6318
dc576c8Thanks @danlapid! - feat: Add a log for worker startup time in wrangler deploy#6097
64f34e8Thanks @RamIdeas! - feat: implements the--experimental-dev-env(shorthand:--x-dev-env) flag forwrangler pages devPatch Changes
#6379
31aa15cThanks @RamIdeas! - fix: clearer error message when trying to use Workers Sites or Legacy Assets withwrangler versions upload#6367
7588800Thanks @RamIdeas! - fix: implicitly cleanup (callstop()) inunstable_devif the returned Promise rejected and thestop()function was not returned#6330
cfbdedeThanks @RamIdeas! - fix: when the worker's request.url is overridden using thehostorlocalUpstream, ensureportis overridden/cleared tooWhen using
--localUpstream=example.com, the request.url would incorrectly be "example.com:8787" but is now "example.com".This only applies to
wrangler dev --x-dev-envandunstable_dev({ experimental: { devEnv: true } }).#6365
13549c3Thanks @WalshyDev! - fix: WASM modules meant thatwrangler versions secret ...could not properly update the version. This has now been fixed.Updated dependencies [
a9021aa,44ad2c7]:v3.67.1Compare Source
Patch Changes
#6312
67c611aThanks @emily-shen! - feat: add CLI flag and config key for experimental Workers + AssetsThis change adds a new experimental CLI flag (
--experimental-assets) and configuration key (experimental_assets) for the new Workers + Assets work.The new flag and configuration key are for the time being "inactive", in the sense that no behaviour is attached to them yet. This will follow up in future work.
Updated dependencies [
b3c3cb8]:v3.67.0Compare Source
Minor Changes
#4545
e5afae0Thanks @G4brym! - Remove experimental/beta constellation commands and binding, please migrate to Workers AI, learn more here https://developers.cloudflare.com/workers-ai/.This is not deemed a major version bump for Wrangler since these commands were never generally available.
#6322
373248eThanks @IRCody! - Add cloudchamber scope to existing scopes instead of replacing them.When using any cloudchamber command the cloudchamber scope will now be added to the existing scopes instead of replacing them.
#6276
a432a13Thanks @CarmenPopoviciu! - feat: Add support forwrangler.jsoncThis commit adds support for
wrangler.jsoncconfig file for Workers. This feature is available behind the--experimental-json-configflag (just likewrangler.json).To use the new configuration file, add a
wrangler.jsoncfile to your Worker project and runwrangler dev --experimental-json-configorwrangler deploy --experimental-json-config.Please note that this work does NOT add
wrangler.jsonorwrangler.jsoncsupport for Pages projects!#6168
1ee41ffThanks @IRCody! - feature: Add list and remove subcommands to cloudchamber registries command.Patch Changes
#6331
e6ada07Thanks @threepointone! - fix: only warn about miniflare feature support (ai, vectorize, cron) onceWe have some warnings in local mode dev when trying to use ai bindings / vectorize / cron, but they are printed every time the worker is started. This PR changes the warning to only be printed once per worker start.
v3.66.0Compare Source
Minor Changes
#6295
ebc85c3Thanks @andyjessop! - feat: introduce an experimental flag forwrangler typesto dynamically generate runtime types according to the user's project configuration.#6272
084d39eThanks @emily-shen! - fix: addlegacy-assetsconfig and flag as alias of currentassetsbehaviorassetsconfig key/flag will change on August 15th.legacy-assetswill preserve current functionality.Patch Changes
#6203
5462eadThanks @geelen! - fix: Updating to match new D1 import/export API format#6315
3fd94e7Thanks @penalosa! - chore: Add RayID towrangler loginerror message displayed when a user hits a bot challenge pagev3.65.1Compare Source
Patch Changes
#6267
957d668Thanks @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
e7c06d7Thanks @gabivlj! - fix: wrangler cloudchamber json errors are properly formattedUpdated dependencies [
779c713]:v3.65.0Compare Source
Minor Changes
#6194
25afcb2Thanks @zebp! - chore: Add duration and sourcemap size to upload metrics eventWrangler will now send the duration and the total size of any sourcemaps uploaded with your Worker to Cloudflare if you have metrics enabled.
#6259
eb201a3Thanks @ottomated! - chore: Add types to DurableObjectNamespace type generation. For example:#6245
e4abed3Thanks @OilyLime! - feature: Add support for Hyperdrive over Access configsPatch Changes
#6255
d497e1eThanks @rozenmd! - fix: teach wrangler init --from-dash about d1 bindingsThis PR teaches
wrangler init --from-dashabout D1 bindings, so they aren't incorrectly added to the wrangler.toml as unsafe bindings.#6258
4f524f2Thanks @dom96! - feature: Add warning about deploying Python with requirements.txtThis 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
8bbd824Thanks @petebacondarwin! - chore: Update config-schema.json for the wrangler.toml#5955
db11a0fThanks @harugon! - fix: correctly escape newlines inconstructTypefunction for multiline stringsThis fix ensures that multiline strings are correctly handled by the
constructTypefunction. Newlines are now properly escaped to prevent invalid JavaScript code generation when using thewrangler typescommand. This improves robustness and prevents errors related to multiline string handling in environment variables and other configuration settings.#6263
fa1016cThanks @petebacondarwin! - fix: use cli script-name arg when deploying a worker with queue consumersUpdated dependencies [
0d32448]:v3.64.0Minor Changes
#4925
7d4a4d0Thanks @dom96! - feature: whoami, logout and login commands mention the CLOUDFLARE_API_TOKEN env var nowIt 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
75f7928Thanks @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
4b1e5bcThanks @mattpocock! - fix: update tsconfig for Workers generated by wrangler initv3.63.2Patch Changes
#6199
88313e5Thanks @dario-piotrowicz! - fix: make suregetPlatformProxy'sctxmethods throw illegal invocation errors like workerdin workerd detaching the
waitUntilandpassThroughOnExceptionmethods from theExecutionContextobject results in them throwing
illegal invocationerrors, such as for example:make sure that the same behavior is applied to the
ctxobject returned bygetPlatformProxy#5569
75ba960Thanks @penalosa! - fix: Simplifywrangler pages download config:v3.63.1Compare Source
Patch Changes
#6192
b879ce4Thanks @petebacondarwin! - fix: do not report D1 user errors to Sentry#6150
d993409Thanks @CarmenPopoviciu! - fix: Fixpages devwatch mode [_worker.js]The watch mode in
pages devfor 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" filepages devwill reload for any changes in the_worker.jsfile itself, but not for any changes ingraham-the-dog.js, which is its dependency.Similarly,
pages devwill 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.0Compare Source
Minor Changes
#6167
e048958Thanks @threepointone! - feature: alias modules in the workerSometimes, 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.jsYou can then configure
wrangler.tomllike so:v3.62.0Compare Source
Minor Changes
#5950
0075621Thanks @WalshyDev! - feat: addwrangler versions secret put,wrangler versions secret bulkandwrangler versions secret listwrangler versions secret putallows 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 bulkallows you to bulk add/update multiple secrets at once, this behaves the same assecret putand will only make one new version.wrangler versions secret listlists the secrets available to the currently deployed versions.wrangler versions secret list --latest-versionorwrangler secret listwill 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
1621992Thanks @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 viewand change up copy a little forversions secretcommands.#6105
26855f3Thanks @helloimalastair! - feat: Add help messages to all invalidr2commands#3735
9c7df38Thanks @lrapoport-cf! - chore: Cleanupwrangler --helpoutputThis commit cleans up and standardizes the look and feel of all
wranglercommands as displayed bywrangler --helpandwrangler <cmd> --help.#6080
e2972cfThanks @threepointone! - chore: run eslint (with react config) on workers-playground/wranglerThis 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
d39d595Thanks @penalosa! - chore: changes to howwrangler devlaunches your worker, behind the experimental--x-dev-envflag#5214
05c5607Thanks @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-registryflag.Updated dependencies [
7d02856,d4e1e9f]:v3.61.0Compare Source
Minor Changes
#5995
374bc44Thanks @petebacondarwin! - feat: allow Durable Object migrations to be overridable in environmentsBy making the
migrationskey inheritable, users can provide different migrationsfor each wrangler.toml environment.
Resolves #729
Patch Changes
#6039
dc597a3Thanks @petebacondarwin! - fix: hybrid nodejs compat now supports requiring the default export of a CJS moduleFixes #6028
#6051
15aff8fThanks @threepointone! - fix: Don't check expiry dates on custom certsFixes 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
b4c0233Thanks @threepointone! - chore: Add.wranglerand.DS_Storeto.gitignoregenerated bywrangler initThis commit adds a small QOL improvement to
init(to be deprecated in the future), for those who still use this wrangler command.#6050
a0c3327Thanks @threepointone! - chore: Normalize more depsThis 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-ansiThis patch also sorts dependencies in every
package.json#6029
f5ad1d3Thanks @threepointone! - chore: Normalize some dependencies in workers-sdkThis 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
c643a81Thanks @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
31cd51fThanks @threepointone! - chore: Quieter buildsThis patch cleans up warnings we were seeing when doing a full build. Specifically:
@microsoft/api-extractorso it didn't complain that it didn't match thetypescriptversion (that we'd recently upgraded)wrangler. We'll need to fix those, but we'll do that when we work on unstable_dev etc.#6043
db66101Thanks @threepointone! - fix: avoid esbuild warning when running dev/bundleI've been experimenting with esbuild 0.21.4 with wrangler. It's mostly been fine. But I get this warning every time
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
267761bThanks @WalshyDev! - fix: typo inwrangler d1 executesaying "Databas" instead of "Database"#6064
84e6aebThanks @helloimalastair! - fix: Wrangler is now able to upload files to local R2 buckets above the 300 MiB limitUpdated dependencies [
a0c3327,f5ad1d3,31cd51f]:v3.60.3Compare Source
Patch Changes
#6025
122ef06Thanks @IgorMinar! - fix: avoid path collisions between performance and Performance Node.js polyfillsIt turns out that ESBuild paths are case insensitive, which can result in path collisions between polyfills for
globalThis.performanceandglobalThis.Performance, etc.This change ensures that we encode all global names to lowercase and decode them appropriately.
#6009
169a9faThanks @RamIdeas! - fix: reduce the number of parallel file reads on Windows to avoid EMFILE type errorsFixes #1586
53acdbcThanks @petebacondarwin! - fix: warn if user tries normal deploy when in the middle of a gradual version rolloutUpdated dependencies [
c4146fc]:v3.60.2Compare Source
Patch Changes
#5307
e6a3d24Thanks @achanda! - fix: add more timePeriods towrangler d1 insightsThis PR updates
wrangler d1 insightsto accept arbitrary timePeriod values up to 31 days.v3.60.1Compare Source
Patch Changes
f1f1834Thanks @GregBrimble! - Revert a change in 3.60.0 which incorrectly batched assets for Pages uploads (https://github.com/cloudflare/workers-sdk/pull/5632).v3.60.0Compare Source
Minor Changes
#5878
1e68fe5Thanks @IgorMinar! - feat: add experimental support for hybrid Node.js compatibilityThis feature is experimental and not yet available for general consumption.
Use a combination of workerd Node.js builtins (behind the
experimental:nodejs_compat_v2flag) andUnenv polyfills (configured to only add those missing from the runtime) to provide a new more effective
Node.js compatibility approach.
#5988
e144f63Thanks @RamIdeas! - feature: rename thewrangler secret:bulkcommand towrangler secret bulkThe 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
35b1a2fThanks @RamIdeas! - feature: renamewrangler kv:...commands towrangler 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
1cc52f1Thanks @zebp! - feat: allow for Pages projects to upload sourcemapsPages projects can now upload sourcemaps for server bundles to enable remapped stacktraces in realtime logs when deployed with
upload_source_mapset totrueinwrangler.toml.Patch Changes
#5939
21573f4Thanks @penalosa! - refactor: Adds the experimental flag--x-dev-envwhich opts in to using an experimental code path forwrangler devandwrangler dev --remote. There should be no observable behaviour changes when this flag is enabled.#5934
bac79fbThanks @dbenCF! - fix: Update create KV namespace binding details message for easier implementation#5927
6f83641Thanks @CarmenPopoviciu! - fix: Cleanpages devterminal ouputThis work includes a series of improvements to the
pages devterminal output, in an attempt to make this output more structured, organised, cleaner, easier to follow, and therefore more helpful for our users <3#5960
e648825Thanks @petebacondarwin! - fix: avoid injecting esbuild watch stubs into production Worker codeWhen 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]:v3.59.0Compare Source
Minor Changes
#5963
bf803d7Thanks @Skye-31! - Feature: Add support for hiding the"unsafe" fields are experimentalwarning using an environment variableBy setting
WRANGLER_DISABLE_EXPERIMENTAL_WARNINGto any truthy value, these warnings will be hidden.Patch Changes
bdbb7f8]:v3.58.0Compare Source
Minor Changes
93b98cbThanks @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
9e4d8bcThanks @threepointone! - fix: let "assets" in wrangler.toml be a stringThe 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
8e5e589Thanks @Jackenmen! - fix: use correct type for AI binding instead of unknownUpdated dependencies [
e0e7725]:v3.57.2Compare Source
Patch Changes
#5905
53f22a0Thanks @penalosa! - fix: Remove WARP certificate injection. Instead, you should ensure that any custom certificates that are needed are included inNODE_EXTRA_CA_CERTS.#5930
57daae0Thanks @WalshyDev! - chore: improve error message when updating secret for a non-deployed latest version.#5703
a905f31Thanks @penalosa! - fix: Don't useExportedHandler["middleware"]for injecting middlewareUpdated dependencies [
64ccdd6,4458a9e]:v3.57.1Compare Source
Patch Changes
#5859
f2ceb3aThanks @w-kuhn! - fix: queue consumer max_batch_timeout should accept a 0 value#5862
441a05fThanks @CarmenPopoviciu! - fix:wrangler pages deployshould fail if deployment was unsuccessfulIf a Pages project fails to deploy,
wrangler pages deploywill logan error message, but exit successfully. It should instead throw a
FatalError.#5812
d5e00e4Thanks @thomasgauvin! - fix: remove Hyperdrive warning for local development.Hyperdrive bindings are now supported when developing locally with Hyperdrive. We should update our logs to reflect this.
#5626
a12b031Thanks @RamIdeas! - chore: ignore workerd output (error: CODE_MOVED) not intended for end-user devsConfiguration
📅 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 PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.