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

chore: bump monorepo to react 18 (react/types/dom) #4827

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

valpinkman
Copy link
Member

@valpinkman valpinkman commented Sep 25, 2023

  • chore: react 18 + desktop ts fixes
  • chore: fix ts error on LLM
  • chore: fix ui libs types

📝 Description

In an effort to harmonize react version accross all libraries and projects, we bumped all related libraries (react / react-dom / @types/react) everywhere where it was outdated.

Code impact on my part is very limited. Most of it were types to fix/to add.
React 18 ships concurrent mode but it is not enabled by default, and I did not enable it (too much problem would arise with the number of outdated libraries we are using).

LLM was already using React 18 (only was using the wrong @types/react) and only LLD had to "migrate" from 17.

❓ Context

  • Impacted projects: all
  • Linked resource(s): LIVE-9181

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@valpinkman valpinkman requested a review from a team as a code owner September 25, 2023 13:51
@vercel
Copy link

vercel bot commented Sep 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
live-common-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2023 9:05am
5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 9:05am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 9:05am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 9:05am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 9:05am
web-tools ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 9:05am

@changeset-bot
Copy link

changeset-bot bot commented Sep 25, 2023

🦋 Changeset detected

Latest commit: fc121ce

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

This PR includes changesets to release 18 packages
Name Type
dummy-wallet-app Patch
dummy-live-app Patch
@ledgerhq/crypto-icons-ui Patch
webpack.js-example Patch
ledger-live-desktop Patch
live-mobile Patch
@ledgerhq/live-common Patch
@ledgerhq/native-ui Patch
@ledgerhq/icons-ui Patch
@ledgerhq/react-ui Patch
@ledgerhq/domain-service Patch
web-tools Patch
@ledgerhq/live-cli Patch
@ledgerhq/test-utils Patch
next.js-example Patch
@ledgerhq/coin-evm Patch
@ledgerhq/hw-app-eth Patch
@ledgerhq/swift-bridge-hw-app-eth 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

@github-actions github-actions bot added desktop Has changes in LLD mobile Has changes in LLM common Has changes in live-common ui Has changes in the design system library cli labels Sep 25, 2023
@valpinkman valpinkman force-pushed the support/react-18-everywhere branch from df2ab9b to b39e840 Compare September 25, 2023 14:57
@valpinkman valpinkman force-pushed the support/react-18-everywhere branch from b39e840 to 0494a62 Compare September 25, 2023 15:20
@valpinkman valpinkman force-pushed the support/react-18-everywhere branch from 0494a62 to dda35a7 Compare September 27, 2023 08:29
@valpinkman valpinkman force-pushed the support/react-18-everywhere branch from dda35a7 to 1b47f0f Compare October 2, 2023 13:37
@valpinkman valpinkman force-pushed the support/react-18-everywhere branch from f8e62ae to 2e26897 Compare October 4, 2023 16:09
({ id: assetId }) => {
(t?: TokenCurrency | null) => {
// NOTE: to match the signature of AsaSelector, i had to change a bit the function
if (!t) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

@haammar-ledger please confirm this looks good to you.

Copy link
Contributor

@gre gre left a comment

Choose a reason for hiding this comment

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

lgtm from the code change perspective apart one logic change on blockchain that will just need a quick 👀 from this team.

  • there will be some conflict resolution to make (sorry i did merge some pkg update my bad)
  • only LLD tests really need to pass for this because all other projects are not impacted beside type changes (react 18 was already there except LLD)

@valpinkman valpinkman force-pushed the support/react-18-everywhere branch 2 times, most recently from d3b346f to b01463b Compare October 13, 2023 14:51
@valpinkman valpinkman force-pushed the support/react-18-everywhere branch from b01463b to fc121ce Compare October 16, 2023 09:04
@valpinkman
Copy link
Member Author

valpinkman commented Oct 16, 2023

@valpinkman

Generating screenshots: workflow ended

Jobs status:
✅ - generate-screenshots-linux
✅ - generate-screenshots-windows
✅ - generate-screenshots-mac

@valpinkman valpinkman merged commit aad90b7 into develop Oct 16, 2023
50 of 56 checks passed
@valpinkman valpinkman deleted the support/react-18-everywhere branch October 16, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli common Has changes in live-common desktop Has changes in LLD mobile Has changes in LLM ui Has changes in the design system library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants