Skip to content

upgrade wrangler to v4 #13225

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

Closed
wants to merge 25 commits into from
Closed

upgrade wrangler to v4 #13225

wants to merge 25 commits into from

Conversation

matthewlynch
Copy link
Contributor

@matthewlynch matthewlynch commented Mar 13, 2025

MR superseded by #13258

The generated worker-configuration.d.ts file is large and will presumably change anytime the compatibility_date is updated.

Cloudflare are still publishing releases of @cloudflare/workers-types so I could update the version instead of removing it?

I believe this change should be a minor version increase because the peer dependancy change is backwards compatible but please let me know.

jmjpro and others added 10 commits March 4, 2025 13:40
* Update testing.md

Without this change, the test doesn't pass

* Update contributors.yml

* Use destructuring

Co-authored-by: Michaël De Boey <info@michaeldeboey.be>

---------

Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
* fix typo

* cla
* Fix typo

* Update contributors.yml
Copy link

changeset-bot bot commented Mar 13, 2025

⚠️ No Changeset found

Latest commit: a42eb2a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Mar 13, 2025

Hi @matthewlynch,

Welcome, and thank you for contributing to React Router!

Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once.

You may review the CLA and sign it by adding your name to contributors.yml.

Once the CLA is signed, the CLA Signed label will be added to the pull request.

If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at hello@remix.run.

Thanks!

- The Remix team

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Mar 13, 2025

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

Copy link
Member

@markdalgleish markdalgleish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR should be targeting the dev branch, could you please update it?

@@ -18,8 +19,7 @@
"serialize-javascript": "^6.0.1"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^0.1.1",
"@cloudflare/workers-types": "^4.20250214.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also remove this from the tsconfig?

@@ -1,5 +1,5 @@
name = "react-router-app"
compatibility_date = "2024-11-18"
compatibility_date = "2025-03-11"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make sure @cloudflare/workers-types dependencies are updated to this version too?

},
"peerDependencies": {
"@react-router/serve": "workspace:^",
"react-router": "workspace:^",
"typescript": "^5.1.0",
"vite": "^5.1.0 || ^6.0.0",
"wrangler": "^3.28.2"
"wrangler": "^4.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ^3.28.2 || ^4.0.0 so it's backwards compatible.

@@ -366,3 +366,4 @@
- yuleicul
- zeromask1337
- zheng-chuang
- matthewlynch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're here, could you sort this rather than appending it?

@matthewlynch
Copy link
Contributor Author

@markdalgleish i'll action these items tomorrow, thanks for the review!

samimsu and others added 2 commits March 18, 2025 09:35
* Fix grammatical error

* Update contributors.yml
@matthewlynch matthewlynch changed the base branch from main to dev March 19, 2025 00:10
@matthewlynch
Copy link
Contributor Author

Closing in favour of #13258 as this MR was based off of the wrong branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.