-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Snyk] Upgrade react from 18.2.0 to 18.3.1 #977
base: master
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade react from 18.2.0 to 18.3.1. See this package in npm: react See this project in Snyk: https://app.snyk.io/org/sammytezzy/project/20794044-5f49-41de-a492-223de49c2642?utm_source=github&utm_medium=referral&page=upgrade-pr
Run & review this pull request in StackBlitz Codeflow. |
|
Reviewer's Guide by SourceryThis pull request upgrades React from version 18.2.0 to 18.3.1. This upgrade includes several changes, primarily focused on adding warnings for deprecated APIs to prepare for React 19. Additionally, the upgrade addresses a few bugs and improves hydration and server-side rendering. Notably, Class diagram showing React package changesclassDiagram
class React_18_2_0 {
+findDOMNode()
+LegacyContext
+StringRefs
+defaultProps
+unmountComponentAtNode()
+renderToStaticNodeStream()
}
class React_18_3_0 {
+findDOMNode() @deprecated
+LegacyContext @deprecated
+StringRefs @deprecated
+defaultProps @deprecated
+unmountComponentAtNode() @deprecated
+renderToStaticNodeStream() @deprecated
}
class React_18_3_1 {
+findDOMNode() @deprecated
+LegacyContext @deprecated
+StringRefs @deprecated
+defaultProps @deprecated
+unmountComponentAtNode() @deprecated
+renderToStaticNodeStream() @deprecated
+act()
}
React_18_2_0 <|-- React_18_3_0
React_18_3_0 <|-- React_18_3_1
State diagram showing React version upgrade changesstateDiagram-v2
[*] --> React_18.2.0
React_18.2.0 --> React_18.3.0: Add deprecation warnings
React_18.3.0 --> React_18.3.1: Export act
state React_18.3.0 {
[*] --> Warnings
state Warnings {
findDOMNode
LegacyContext
StringRefs
defaultProps
unmountComponentAtNode
renderToStaticNodeStream
}
}
React_18.3.1 --> [*]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
Snyk has created this PR to upgrade react from 18.2.0 to 18.3.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 386 versions ahead of your current version.
The recommended version was released 8 months ago.
Release notes
Package name: react
act
fromreact
f1338fThis release is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19.
Read the React 19 Upgrade Guide for more info.
React
this.refs
to support string ref codemod 909071findDOMNode
outside StrictMode c3b283test-utils
methods d4ea75defaultProps
for function components #25699key
#25697act
fromtest-utils
d4ea75React DOM
unmountComponentAtNode
8a015brenderToStaticNodeStream
#28874React DOM
onRecoverableError
. (@ gnoff in #24591)document
causing a blank page on mismatch. (@ gnoff in #24523)setState
in Safari when adding an iframe. (@ gaearon in #24459)React DOM Server
<title>
elements to match the browser constraints. (@ gnoff in #24679)highWaterMark
to0
. (@ jplhomer in #24641)Server Components (Experimental)
useId()
inside Server Components. (@ gnoff) in #24172Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Summary by Sourcery
Enhancements: