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

Wrangler v4 #7334

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Wrangler v4 #7334

wants to merge 9 commits into from

Conversation

penalosa
Copy link
Contributor

@penalosa penalosa commented Nov 25, 2024

Wrangler v4 is coming! We’re releasing this release candidate now as a way for you to check the upcoming version works with your projects. More detailed migration guides & documentation will be coming over the next few months as we prepare to roll this out, but a TLDR of the breaking changes to expect are:

  • Node v18 is now the minimum Node version
  • Wrangler now uses esbuild v0.24
  • wrangler r2 and wrangler kv are --local by default
  • All deprecated commands & config have been removed

To try it out, install and use wrangler@next.

Let us know what you think! We'd love to hear any feedback, either as comments on this PR or in the #wrangler channel on Discord.

@penalosa penalosa requested a review from a team as a code owner November 25, 2024 16:26
Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: dc669c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
wrangler Major
miniflare Major
@cloudflare/vitest-pool-workers Minor
@cloudflare/pages-shared Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@penalosa penalosa added skip-pr-description-validation Skip validation of the required PR description format e2e Run e2e tests on a PR labels Nov 25, 2024
Copy link
Contributor

github-actions bot commented Nov 25, 2024

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-wrangler-7334

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7334/npm-package-wrangler-7334

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-wrangler-7334 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-create-cloudflare-7334 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-cloudflare-kv-asset-handler-7334
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-miniflare-7334
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-cloudflare-pages-shared-7334
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-cloudflare-vitest-pool-workers-7334
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-cloudflare-workers-editor-shared-7334
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-cloudflare-workers-shared-7334
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12087315951/npm-package-cloudflare-workflows-shared-7334

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.91.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20241106.1
workerd 1.20241106.1 1.20241106.1
workerd --version 1.20241106.1 2024-11-06

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@penalosa penalosa requested a review from a team as a code owner November 29, 2024 15:47
@penalosa penalosa requested a review from a team as a code owner December 2, 2024 12:26
* Remove wrangler version

* Remove generate & strip down init

* Add changesets

* Remove deprecated --format & config

* Add changeset

* remove commands

* Fix tests

* Remove .only()

* Remove legacy assets

* clarify legacy assets -> sites naming
@penalosa penalosa requested a review from a team as a code owner December 2, 2024 16:12
penalosa and others added 2 commits December 6, 2024 19:00
* chore: remove alpha support from `wrangler d1 migrations apply`

* chore: remove `wrangler d1 backups`

* chore: fixup tests

* chore: fixup tests

* chore: fixup tests

* chore: remove --batch-size
@rozenmd rozenmd requested a review from a team as a code owner December 10, 2024 22:09
@CarmenPopoviciu CarmenPopoviciu added the v4 wrangler version 4 label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Change that will result in breaking existing behavior e2e Run e2e tests on a PR skip-pr-description-validation Skip validation of the required PR description format v4 wrangler version 4
Projects
Status: Untriaged
Development

Successfully merging this pull request may close these issues.

5 participants