Wrangler Changelog
 2024-06-10
 3.60.1
- #6002 f1f1834Thanks @GregBrimble! - Revert a change in 3.60.0 which incorrectly batched assets for Pages uploads ( https://github.com/cloudflare/workers-sdk/pull/5632).
 2024-06-07
 3.60.0
- #5878 - 1e68fe5Thanks @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_v2flag) and Unenv 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 the- wrangler secret:bulkcommand 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 - 35b1a2fThanks @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 - 1cc52f1Thanks @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_mapset to- truein- wrangler.toml.
- #5939 - 21573f4Thanks @penalosa! - refactor: Adds the experimental flag- --x-dev-envwhich opts in to using an experimental code path for- wrangler devand- wrangler 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: Clean- pages devterminal ouput- This 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 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]:
 2024-06-04
 3.59.0
- #5963 - bf803d7Thanks @Skye-31! - Feature: Add support for hiding the- "unsafe" fields are experimentalwarning using an environment variable- By setting - WRANGLER_DISABLE_EXPERIMENTAL_WARNINGto any truthy value, these warnings will be hidden.
- Updated dependencies [ - bdbb7f8]:
 2024-05-31
 3.58.0
- #5933 - 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.
- #5938 - 9e4d8bcThanks @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 - 8e5e589Thanks @Jackenmen! - fix: use correct type for AI binding instead of unknown
- Updated dependencies [ - e0e7725]:
 2024-05-28
 3.57.2
- #5905 - 53f22a0Thanks @penalosa! - fix: Remove WARP certificate injection. Instead, you should ensure that any custom certificates that are needed are included in- NODE_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 use- ExportedHandler["middleware"]for injecting middleware
 2024-05-21
 3.57.1
- #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 unsuccessful- If a Pages project fails to deploy, - wrangler pages deploywill log an 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 devs
 2024-05-17
 3.57.0
- #5696 - 7e97ba8Thanks @geelen! - feature: Improved- d1 execute --file --remoteperformance & added support for much larger SQL files within a single transaction.
- #5819 - 63f7acbThanks @CarmenPopoviciu! - fix: Show feedback on Pages project deployment failure- Today, if uploading a Pages Function, or deploying a Pages project fails for whatever reason, there’s no feedback shown to the user. Worse yet, the shown message is misleading, saying the deployment was successful, when in fact it was not: - ✨ Deployment complete!- This commit ensures that we provide users with: - the correct feedback with respect to their Pages deployment
- the appropriate messaging depending on the status of their project’s deployment status
- the appropriate logs in case of a deployment failure
 
- #5814 - 2869e03Thanks @CarmenPopoviciu! - fix: Display correct global flags in- wrangler pages --help- Running - wrangler pages --helpwill list, amongst others, the following global flags:- -j, --experimental-json-config -c, --config -e, --env -h, --help -v, --version- This is not accurate, since flags such as - --config,- --experimental-json-config, or- envare not supported by Pages.- This commit ensures we display the correct global flags that apply to Pages. 
- #5818 - df2daf2Thanks @WalshyDev! - chore: Deprecate usage of the deployment object on the unsafe metadata binding in favor of the new version_metadata binding.- If you’re currently using the old binding, please move over to the new version_metadata binding by adding: [version_metadata]binding = "CF_VERSION_METADATA"- and updating your usage accordingly. You can find the docs for the new binding here: https://developers.cloudflare.com/workers/runtime-apis/bindings/version-metadata 
- #5838 - 609debdThanks @petebacondarwin! - fix: update undici to the latest version to avoid a potential vulnerability
- #5832 - 86a6e09Thanks @petebacondarwin! - fix: do not allow non-string values in bulk secret uploads- Prior to Wrangler 3.4.0 we displayed an error if the user tried to upload a JSON file that contained non-string secrets, since these are not supported by the Cloudflare backend. - This change reintroduces that check to give the user a helpful error message rather than a cryptic - workers.api.error.invalid_script_configerror code.