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

[Dependencies] Upgrade React 16 to React 17 #553

Merged
merged 25 commits into from
Dec 27, 2021
Merged

Conversation

michaeljaltamirano
Copy link
Contributor

@michaeljaltamirano michaeljaltamirano commented Nov 24, 2020

What & Why

This PR upgrades react from 16 to 17. You can read the official note on the major version change here, but unlike previous breaking changes, this one is mostly to prime future react releases. As such, the diff is minimal: some dependency version changes, a modified jest test, a couple new TypeScript explicit return types, but otherwise there's no change in behavior.

Other

  • We should release this library, post upgrade, as a breaking change, since the peerDependencies do not include react 16 anymore.

@snags88 snags88 temporarily deployed to curology-radiance-pr-553 November 24, 2020 22:18 Inactive
@snags88 snags88 temporarily deployed to curology-radiance-pr-553 November 24, 2020 23:33 Inactive
const tree = renderer
.create(<Carousel numCardsVisible={1}>{cards}</Carousel>)
.toJSON();
const { container } = render(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Make the assertions in this test more meaningful. The snapshot doesn't really do much.

@michaeljaltamirano
Copy link
Contributor Author

warning "react-toggle-button > react-motion@0.5.2" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0".
warning "@storybook/addon-a11y > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react@15.x || 16.x || 16.4.0-alpha.0911da3".
warning "@storybook/addon-a11y > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react-dom@15.x || 16.x || 16.4.0-alpha.0911da3".
warning "@storybook/addon-a11y > @storybook/api > @reach/router > create-react-context@0.3.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "@storybook/addon-actions > react-inspector@5.1.0" has incorrect peer dependency "react@^16.8.4".

@@ -1,16 +1,291 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Carousel /> UI snapshots renders with bottom right aligned arrows 1`] = `
<<<<<<< HEAD
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to fix this.

@michaeljaltamirano michaeljaltamirano merged commit 3a83f88 into master Dec 27, 2021
@michaeljaltamirano michaeljaltamirano deleted the react/17 branch December 27, 2021 22:04
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.

2 participants