This repository was archived by the owner on Sep 19, 2023. It is now read-only.
📎 Update dependency wrangler to v3 #107
Open
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:
^2.20.1->^3.8.0⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
cloudflare/workers-sdk (wrangler)
v3.8.0Compare Source
Minor Changes
#3775
3af30879Thanks @bthwaites! - R2 Jurisdictional Restrictions guarantee objects in a bucket are stored within a specific jurisdiction. Wrangler now allows you to interact with buckets in a defined jurisdiction.Wrangler R2 operations now support a
-Jflag that allows the user to specify a jurisdiction. When passing the-Jflag, you will only be able to interact with R2 resources within that jurisdiction.v3.7.0Compare Source
Minor Changes
a3b3765dThanks @jspspike! - Bump esbuild version to 0.17.19. Breaking changes to esbuild are documented here40f56562Thanks @mrbbot! - chore: bumpminiflareto3.20230904.0#3774
ae2d5cb5Thanks @mrbbot! - feat: support breakpoint debugging in local modewrangler devnow supports breakpoint debugging in local mode! Pressdto open DevTools and set breakpoints.v3.6.0Compare Source
Minor Changes
a5e7c0beThanks @echen67! - Warn user when the last deployment was via the APIPatch Changes
18dc7b54Thanks @GregBrimble! - feat: Add internalwrangler pages project validate [directory]command which validates an asset directory#3758
0adccc71Thanks @jahands! - fix: Retry deployment errors in wrangler pages publishThis will improve reliability when deploying to Cloudflare Pages
v3.5.1Compare Source
Patch Changes
8f5ed7feThanks @DaniFoldi! - Changed the binding type of WfP Dispatch Namespaces toDispatchNamespacee17d3096Thanks @RamIdeas! - bump miniflare version to 3.20230814.1v3.5.0Compare Source
Minor Changes
e600f029Thanks @jspspike! - Added --local option for r2 commands to interact with local persisted r2 objects8e231afdThanks @JacobMGEvans! - secret:bulk exit 1 on failurePreviously
secret"bulkwould only log an error on failure of any of the upload requests.Now when 'secret:bulk' has an upload request fail it throws an Error which sends an
process.exit(1)at the root.catch()signal.This will enable error handling in programmatic uses of
secret:bulk.ff8603b6Thanks @jspspike! - Added --local option for kv commands to interact with local persisted kv entriesc302bec6Thanks @geelen! - Removing the D1 shim from the build process, in preparation for the Open Beta. D1 can now be used with --no-bundle enabled.6de3c5ecThanks @dario-piotrowicz! - Added handling of .mjs files to be picked up by inside the Pages _worker.js directory(currently only .js files are)
Patch Changes
8f257126Thanks @RamIdeas! - Bump the version of miniflare to 3.20230801.0v3.4.0Compare Source
Minor Changes
#3649
e2234bbcThanks @JacobMGEvans! - Feature: 'stdin' support for 'secret:bulk'Added functionality that allows for files and strings to be piped in, or other means of standard input. This will allow for a broader variety of use cases and improved DX.
This implementation is also fully backward compatible with the previous input method of file path to JSON.
v3.3.0Compare Source
Minor Changes
e72a5794Thanks @mrbbot! - chore: upgrademiniflareto3.20230717.0Patch Changes
#3587
30f114afThanks @mrbbot! - fix: keep configuration watcher aliveEnsure
wrangler devwatches thewrangler.tomlfile and reloads the server whenever configuration (e.g. KV namespaces, compatibility dates, etc) changes.64631d8bThanks @penalosa! - fix: Preserve email handlers when applying middleware to user workers.v3.2.0Compare Source
Minor Changes
78ddb8deThanks @penalosa! - Upgrade Miniflare (and henceworkerd) tov3.20230710.0.#3426
5a74cb55Thanks @matthewdavidrodgers! - Prefer non-force deletes unless a Worker is a dependency of another.If a Worker is used as a service binding, a durable object namespace, an outbounds for a dynamic dispatch namespace, or a tail consumer, then deleting that Worker will break those existing ones that depend upon it. Deleting with ?force=true allows you to delete anyway, which is currently the default in Wrangler.
Force deletes are not often necessary, however, and using it as the default has unfortunate consequences in the API. To avoid them, we check if any of those conditions exist, and present the information to the user. If they explicitly acknowledge they're ok with breaking their other Workers, fine, we let them do it. Otherwise, we'll always use the much safer non-force deletes. We also add a "--force" flag to the delete command to skip the checks and confirmation and proceed with ?force=true
Patch Changes
#3585
e33bb44aThanks @mrbbot! - fix: register middleware once for module workersEnsure middleware is only registered on the first request when using module workers.
This should prevent stack overflows and slowdowns when making large number of requests to
wrangler devwith infrequent reloads.e16d0272Thanks @jspspike! - Fixed issue with wrangler dev not finding imported files. Previously when wrangler dev would automatically reload on any file changes, it would fail to find any imported files.v3.1.2Compare Source
Patch Changes
bcdc1fe5Thanks @jspspike! - Support https in wrangler dev local mode09f317d4Thanks @GregBrimble! - chore: Bump miniflare@3.0.2c5f3bf45Thanks @evanderkoogh! - Refactor dev-only checkedFetch check from a method substitution to a JavaScript Proxy to be able to support Proxied global fetch function.8d1521e9Thanks @Cherry! - fix: wrangler generate will now work cross-device. This is very common on Windows install that use C:/ for the OS and another drive for user files.v3.1.1Compare Source
Patch Changes
fddffdf0Thanks @GregBrimble! - fix: Preventwrangler pages devfrom serving asset files outside of the build output directory68ba49a8Thanks @Cherry! - fix: allow context.data to be overriden in Pages Functions#3414
6b1870adThanks @rozenmd! - fix: in D1, lift error.cause into the error messagePrior to this PR, folks had to console.log the
error.causeproperty to understand why their D1 operations were failing. With this PR,error.causewill continue to work, but we'll also lift the cause into the error message.a9349a89Thanks @petebacondarwin! - fix: ensure that the script name is passed through to C3 fromwrangler init5eef992fThanks @RamIdeas! -wrangler init ... -ynow delegates to C3 without prompts (respects the-yflag)4beac418Thanks @rozenmd! - fix: add the number of read queries and write queries in the last 24 hours to thed1 infocommand#3454
a2194043Thanks @mrbbot! - chore: upgrademiniflareto3.0.1This version ensures root CA certificates are trusted on Windows.
It also loads extra certificates from the
NODE_EXTRA_CA_CERTSenvironment variable,allowing
wrangler devto be used with Cloudflare WARP enabled.e8df68eeThanks @GregBrimble! - feat: Allow setting a D1 database ID when usingwrangler pages devby providing an optional=<ID>suffix to the argument like--d1 BINDING_NAME=database-idv3.1.0Compare Source
Minor Changes
4a88db32Thanks @petebacondarwin! - feat: addwrangler pages project deletecommandPatch Changes
#3399
d8a9995bThanks @Skye-31! - Fix: wrangler pages dev --script-path argument when using a proxy command instead of directory modeFixes a regression in wrangler@3.x, where
wrangler pages dev --script-path=<my script path> -- <proxy command>would start throwing esbuild errors.116d3fd9Thanks @Maximo-Guk! - Fix: Avoid unnecessary rebuilding pages functions in wrangler pages devd5a230f1Thanks @elithrar! - Fixedwrangler d1 migrationsto use--experimental-backendand not--experimentalBackendso that it is consistent withwrangler d1 create.55703e52Thanks @rozenmd! - fix: wrangler rollback shouldn't print its warning in the global menu#3124
2956c31dThanks @verokarhu! - fix: failed d1 migrations not treated as errorsThis PR teaches wrangler to return a non-success exit code when a set of migrations fails.
It also cleans up
wrangler d1 migrations applyoutput significantly, to only log information relevant to migrations.b5b46b4aThanks @shahsimpson! - Prevents uploads with both cron triggers and smart placement enabled27b5aec5Thanks @rozenmd! - This PR implements a trimmer that removes BEGIN TRANSACTION/COMMIT from SQL files sent to the API (since the D1 API already wraps SQL in a transaction for users).#3324
ed9fbf79Thanks @rozenmd! - addd1 infocommand for people to check DB sizeThis PR adds a
d1 info <NAME>command for getting information about a D1 database, including the current database size and state.Usage:
3dae2585Thanks @jculvey! - Add the--compatibility-flagsand--compatibility-dateoptions to thepages project createcommandv3.0.1Compare Source
Patch Changes
99e6ccf5Thanks @RamIdeas! - fix: remove extraneous arg when wrangler delegates to c3v3.0.0Compare Source
Major Changes
#3197
3b3fadfaThanks @mrbbot! - feature: renamewrangler publishtowrangler deployThis ensures consistency with other messaging, documentation and our dashboard,
which all refer to deployments. This also avoids confusion with the similar but
very different
npm publishcommand.wrangler publishwill remain adeprecated alias for now, but will be removed in the next major version of Wrangler.
#3197
bac9b5deThanks @mrbbot! - feature: enable local development with Miniflare 3 andworkerdby defaultwrangler devnow runs fully-locally by default, using the open-source Cloudflare Workers runtimeworkerd.To restore the previous behaviour of running on a remote machine with access to production data, use the new
--remoteflag.The
--localand--experimental-localflags have been deprecated, as this behaviour is now the default, and will be removed in the next major version.#3197
02a672edThanks @mrbbot! - feature: enable persistent storage in local mode by defaultWrangler will now persist local KV, R2, D1, Cache and Durable Object data
in the
.wranglerfolder, by default, between reloads. This persistencedirectory can be customised with the
--persist-toflag. The--persistflaghas been removed, as this is now the default behaviour.
#3197
dc755fdcThanks @mrbbot! - feature: remove delegation to locally installed versionsPreviously, if Wrangler was installed globally and locally within a project,
running the global Wrangler would instead invoke the local version.
This behaviour was contrary to most other JavaScript CLI tools and has now been
removed. We recommend you use
npx wranglerinstead, which will invoke thelocal version if installed, or install globally if not.
#3197
24e1607aThanks @mrbbot! - chore: remove unused files from published packageSpecifically, the
srcandminiflare-config-stubsdirectories have been removed.Minor Changes
f1b8a1ccThanks @matthewdavidrodgers! - Support outbounds for dispatch_namespace bindingsb7c590b5Thanks @mrbbot! - feature: warn when a new major version is availablee1e5d782Thanks @mrbbot! - feature: add warning when trying to usewrangler devinside a WebContainer41fc45c2Thanks @matthewdavidrodgers! - Support tail_consumers in script upload#3157
4d7781f7Thanks @edevil! - [wrangler] feat: Support for Constellation bindingsAdded support for a new type of safe bindings called "Constellation"
that allows interacting with uploaded models in the context of these
projects.
#3135
cc2adc2eThanks @edevil! - [wrangler] feat: Support for Browser WorkersThese bindings allow one to use puppeteer to control a browser
in a worker script.
7512d4ccThanks @mrbbot! - chore: upgrademiniflareto2.14.0Patch Changes
561b962fThanks @GregBrimble! - fix:_worker.js/directory support for dynamically imported chunks inwrangler pages dev#3186
3050ce7fThanks @petebacondarwin! - fix: ensure pages _routes.json emulation in dev command handles .s and *sFixes #3184
#3048
6ccc4fa6Thanks @oustn! - Fix: fix local registry server closedCloses #1920. Sometimes start the local dev server will kill
the devRegistry server so that the devRegistry server can't be used. We can listen the devRegistry server close event
and reset server to
null. When registerWorker is called, we can check if the server isnulland start a new server.#3001
f9722873Thanks @rozenmd! - fix: make it possible to create a D1 database backed by the experimental backend, and maked1 execute's batch size configurableWith this PR, users will be able to run
wrangler d1 create <NAME> --experimental-backendto create new D1 dbs that use an experimental backend. You can also runwrangler d1 migrations apply <NAME> experimental-backendto run migrations against an experimental database.On top of that, both
wrangler d1 migrations apply <NAME>andwrangler d1 execute <NAME>now have a configurablebatch-sizeflag, as the experimental backend can handle more than 10000 statements at a time.#3153
1b67a405Thanks @edevil! - [wrangler] fix: constellation command helpChanged
nametoprojectNamein some Constellation commands that interacted with projects. Also added the possibility to specify a model description when uploading it.ce04aac0Thanks @jspspike! - Add message for whenwrangler tailexits sampling mode88ff9d7dThanks @rozenmd! - feat: (alpha) - make it possible to give D1 a hint on where it should create the database561b962fThanks @GregBrimble! - fix:_worker.js/directory support for D1 bindingsConfiguration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone CET, 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 has been generated by Mend Renovate. View repository job log here.