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

Support react@18 #220

Merged
merged 6 commits into from
Mar 27, 2024
Merged

Support react@18 #220

merged 6 commits into from
Mar 27, 2024

Conversation

miafan23
Copy link
Contributor

@miafan23 miafan23 commented Mar 18, 2024

  • Add react 18 to the allowed peer dependencies
  • Bump @mapbox/react-submittable to allow react 18 as peer depemdency

@miafan23 miafan23 marked this pull request as ready for review March 22, 2024 12:15
@miafan23 miafan23 requested a review from tristen March 22, 2024 12:15
Copy link
Member

@tristen tristen left a comment

Choose a reason for hiding this comment

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

@miafan23 left a couple of questions! Could you fill out the description of this PR for our future selves? It would be good to know about the necessity of this change, the Jira ticket this is references and the change to react-submittable.

Copy link
Member

Choose a reason for hiding this comment

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

What's up with these weird snapshot changes?

Copy link
Contributor Author

@miafan23 miafan23 Mar 22, 2024

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Good to know this has been consolidated into the latest version of @testing-library/react!

package.json Outdated
},
"dependencies": {
"@mapbox/mbx-assembly": "^1.5.0",
"@mapbox/query-selector-contains-node": "^1.0.0",
"@mapbox/react-submittable": "^2.1.0-alpha.0",
Copy link
Member

Choose a reason for hiding this comment

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

What changes happened here besides the new package name? It's not great adding an alpha dependency if we don't need to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I am just waiting for mapbox/react-submittable#9 to be merged and released

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "@mapbox/mr-ui",
"version": "2.9.0",
"version": "3.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.

Why is this a major version bump if it still supports 16?

@miafan23
Copy link
Contributor Author

the Jira ticket this is references

@tristen This is a public repo, I am not sure if we should refer jira ticket here 🤔

Comment on lines +24 to +26
await waitFor(() => {
expect(screen.getByText('Tab 1 content')).toBeInTheDocument();
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests sometime failed

@miafan23 miafan23 requested a review from tristen March 26, 2024 11:14
@miafan23 miafan23 merged commit 3f0f65d into main Mar 27, 2024
3 checks passed
@miafan23 miafan23 deleted the react-18 branch March 27, 2024 08:41
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