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][maintenance] upgrade several deps | use react 18 #2404 #2409

Merged

Conversation

FaberVitale
Copy link
Contributor

@FaberVitale FaberVitale commented Jun 12, 2022

Notable changes

React 18

Upgrades react and react-dom to 18 in all workspaces except website and docs.

toolkit tests

@reduxjs/toolkit tests now use react 18 renderers thanks to @testing-library/react 13.

Examples

All examples now use react 18, react-redux 8, react-router-dom 6 & react-scripts 5.

Website

We could not upgrade react to 18 in website and docs because docusaurus doesn't support react 18 yet, see facebook/docusaurus#7264.

Upgraded dependencies

  • react 17 -> ^18.1.0
  • react-dom 17 -> ^18.1.0
  • react-scripts (cra) 4.0.3 -> ^5.0.1
  • react-redux 7.2.2 -> ^8.0.2
  • @types/react 17 -> ^18.0.12
  • @types/react-dom 17 -> ^18.0.5
  • react-router-dom 5.2.0 -> 6.3.0
  • @testing-library/react ^11.2.6 -> ^13.3.0
  • @testing-library/user-event ^13.1.5 -> ^14.2.0

Removed dependencies

Closes #2404

Changes:

1. updates resolutions of react, react-redux & react-dom
2. adds @types/react & @types/react-dom to resolutions
3. removes @types/react-redux (no longer necessary)
4. upgrages react, react-redux, react-dom, @types/react & @types/react-dom in every workspace
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 12, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 77bd929:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
reduxjs/redux-toolkit Configuration

@netlify
Copy link

netlify bot commented Jun 12, 2022

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 77bd929
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/62a5c68ee3f8530008f273c6
😎 Deploy Preview https://deploy-preview-2409--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@FaberVitale FaberVitale changed the title [Chore][maintenance] upgrade several deps (react 18) #2404 [Chore][maintenance] upgrade several deps | use react 18 #2404 Jun 12, 2022
@markerikson
Copy link
Collaborator

Sweet, thank you!

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

Successfully merging this pull request may close these issues.

[chore][maintenance] upgrade react-dom, react to 18 and react-redux to 8 in all workspaces
2 participants