Skip to content

fix!: allow react v17, v18 and v19 in peerDependencies and mark them as optional#421

Merged
addyosmani merged 3 commits intomainfrom
xmr/react-peer
May 2, 2025
Merged

fix!: allow react v17, v18 and v19 in peerDependencies and mark them as optional#421
addyosmani merged 3 commits intomainfrom
xmr/react-peer

Conversation

@XhmikosR
Copy link
Collaborator

@XhmikosR XhmikosR commented May 9, 2024

Fixes #363

@XhmikosR XhmikosR added the 3.0 Next big release label May 9, 2024
@snowystinger
Copy link

snowystinger commented Jul 25, 2024

Can this please get reviewed? we've been using quicklink with react 17 and 18, no issues.

@XhmikosR
Copy link
Collaborator Author

@addyosmani could we maybe land this as a feature? The only issue AFAICT is that we don't test v16, so, perhaps, going back to the minimum support react version would be better?

Not sure how to test both.

@XhmikosR
Copy link
Collaborator Author

@addyosmani what should we do with this? I think the next version should be a major bump since it's so long and that would allow us to land breaking changes like this PR and #368.

@XhmikosR XhmikosR added the squash Squash PR label Mar 24, 2025
@XhmikosR XhmikosR changed the title fix!: allow react v17 and v18 in peerDependencies and mark them as optional fix!: allow react v17, v18 and v19 in peerDependencies and mark them as optional Mar 24, 2025
@XhmikosR XhmikosR mentioned this pull request Apr 3, 2025
Copy link
Collaborator

@addyosmani addyosmani left a comment

Choose a reason for hiding this comment

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

FWIW, I'm okay with this change. I used the automated update branch option (and haven't otherwise merged it as it says WIP)

@XhmikosR
Copy link
Collaborator Author

XhmikosR commented Apr 4, 2025

@addyosmani So, the new version will be a major version bump? That's why this is in still draft.

@addyosmani
Copy link
Collaborator

Yeah let's do that. We can tag and publish a new major version given the range of changes and how long it has been.

@addyosmani addyosmani marked this pull request as ready for review May 2, 2025 02:33
@addyosmani addyosmani merged commit a27cf42 into main May 2, 2025
11 checks passed
@addyosmani addyosmani deleted the xmr/react-peer branch May 2, 2025 02:33
@XhmikosR
Copy link
Collaborator Author

XhmikosR commented May 2, 2025

@addyosmani maybe you forgot to npm publish the new version?

@addyosmani
Copy link
Collaborator

@XhmikosR Didn't forget :) I'm currently locked out of my npm publish privs and am working with them to recover. It'll probably take a few days :)

@XhmikosR
Copy link
Collaborator Author

XhmikosR commented May 2, 2025 via email

@addyosmani
Copy link
Collaborator

@XhmikosR Yes! I finally have publish access again and have just published 3.0.0 to npm. I've locally updated the site but looks like I may need to give the CDNs a little more time to populate with the new version as those refs are currently broken otherwise. I'll check tomorrow and see if its safe to deploy the updated site.

@XhmikosR
Copy link
Collaborator Author

@addyosmani nice :) but it looks like the npm package is missing the dist folder :/

@XhmikosR
Copy link
Collaborator Author

@XhmikosR
Copy link
Collaborator Author

I suggest that you cut a 3.0.1 version and use the npm scripts this time.

@addyosmani
Copy link
Collaborator

@XhmikosR On it. Thanks for the catch!

@XhmikosR
Copy link
Collaborator Author

BTW jsDelivr should be updated automatically, which is what we use in v3.0.0 docs.

@XhmikosR
Copy link
Collaborator Author

I'd do this to be safe (untested):

git clean -dfx
npm ci
# manually bump package.json and package-lock.json version to 3.0.1
npm run release

later we should probably switch to npm version and simplify the release script

@addyosmani
Copy link
Collaborator

@XhmikosR Sorry for the back/forth!

  • 3.0.1 should now be cut. I've verified the dist directory is now also present for the package.
  • Quicklink site deploy has been made using 3.0.1 as well this morning

On the second: mostly a personal note for myself - it is no longer possible to deploy the Quicklink site using a non-Google employee account (why there was a delay from my side there). I'll explore spinning up a separate Firebase project that I can add you too as well in the future.

Thanks for your keen notes during the updated rollout!

Regarding open-PRs: I'm going to be heads down for Google I/O over the next two weeks and will have a delay reviewing pull requests that we haven't already landed. I'll be looking to @gilbertococchi in case there's a strong case for new features to land (just from a second opinion perspective). Thanks again for all the help!

@gilbertococchi
Copy link
Contributor

Hello everyone, I am not opposed to release 3.0.1 as is if there is urgency in doing so.

If there are the conditions to wait some more time (perhaps June) I would suggest consider waiting for this issue #442 that @giorgiopellegrino is planning to work on soon.

The proposed logic on #442 could critically increase the effectiveness and the impact of QuickLink usage of Speculation Rules Prerender in the one-to-many use cases.

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

Labels

3.0 Next big release squash Squash PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark peerDependencies as optional

4 participants