-
Notifications
You must be signed in to change notification settings - Fork 49k
Comparing changes
Open a pull request
base repository: facebook/react
base: v18.2.0
head repository: facebook/react
compare: v18.3.0
- 10 commits
- 67 files changed
- 4 contributors
Commits on Apr 16, 2024
-
Bump version from 18.2 to 18.3
We're going to use this branch to release a minor 18.3 release based off the published 18.2 release revision. This will include some additional warnings to assist in upgrading to React 19, but no behavior changes compared to 18.2. I bumped the React version to 18.3 and all the other packages by a patch revision (since we're not going to update anything in those).
Configuration menu - View commit details
-
Copy full SHA for 2cfb474 - Browse repository at this point
Copy the full SHA 2cfb474View commit details -
Turn on string ref deprecation warning for everybody (not codemoddabl…
…e) (#25383) ## Summary Alternate to #25334 without any prod runtime changes i.e. the proposed codemod in https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#deprecate-string-refs-and-remove-production-mode-_owner-field would not work. ## How did you test this change? - [x] CI - [x] `yarn test` with and without `warnAboutStringRefs`
Configuration menu - View commit details
-
Copy full SHA for c2a246e - Browse repository at this point
Copy the full SHA c2a246eView commit details -
Turn on key spread warning in jsx-runtime for everyone (#25697)
This improves the error message a bit and ensures that we recommend putting the key first, not last, which ensures that the faster `jsx-runtime` is used. This only affects the modern "automatic" JSX transform.
Configuration menu - View commit details
-
Copy full SHA for 73bfaa1 - Browse repository at this point
Copy the full SHA 73bfaa1View commit details -
Enable warning for defaultProps on function components for everyone (#…
…25699) This also fixes a gap where were weren't warning on memo components.
Configuration menu - View commit details
-
Copy full SHA for 5894232 - Browse repository at this point
Copy the full SHA 5894232View commit details
Commits on Apr 18, 2024
-
Backport legacy context deprecation warning
This backports a deprecation warning for legacy context, even when Strict Mode is not enabled. I didn't bother to update all the tests because the tests are in such a different state than what's on `main`, and on `main` we already updated the tests accordingly. So instead I silenced the warnings in our test config, like we've done for other warnings in the past.
Configuration menu - View commit details
-
Copy full SHA for 415ee0e - Browse repository at this point
Copy the full SHA 415ee0eView commit details
Commits on Apr 23, 2024
-
Deprecate
renderToStaticNodeStream
(#28872) (#28874)This commit adds warnings indicating that `renderToStaticNodeStream` will be removed in an upcoming React release. This API has been legacy, is not widely used (renderToStaticMarkup is more common) and has semantically eqiuvalent implementations with renderToReadableStream and renderToPipeableStream. landed in main in #28872 changed the warning to match renderToNodeStream
Configuration menu - View commit details
-
Copy full SHA for 7548c01 - Browse repository at this point
Copy the full SHA 7548c01View commit details
Commits on Apr 25, 2024
-
Support writing to this.refs from userspace
Previously, the `refs` property of a class component instance was read-only by user code — only React could write to it, and until/unless a string ref was used, it pointed to a shared empty object that was frozen in dev to prevent userspace mutations. Because string refs are deprecated, we want users to be able to codemod all their string refs to callback refs. The safest way to do this is to output a callback ref that assigns to `this.refs`. So to support this, we need to make `this.refs` writable by userspace.
1Configuration menu - View commit details
-
Copy full SHA for 9090712 - Browse repository at this point
Copy the full SHA 9090712View commit details -
ReactDOMTestUtils deprecation warnings
Adds a deprecation warning to ReactDOMTestUtils.renderIntoDocument, which is removed in version 19. Also backports the deprecation warning for ReactDOMTestUtils.act.
Configuration menu - View commit details
-
Copy full SHA for d4ea75d - Browse repository at this point
Copy the full SHA d4ea75dView commit details -
Add deprecation warning for findDOMNode
This is removed in version 19. We already warned inside of Strict Mode but this adds the warning everywhere.
Configuration menu - View commit details
-
Copy full SHA for c3b2839 - Browse repository at this point
Copy the full SHA c3b2839View commit details -
Add deprecation warning for unmountComponentAtNode
This should have been deprecated in 18.0 alongside the other legacy DOM APIs like render().
Configuration menu - View commit details
-
Copy full SHA for 8a015b6 - Browse repository at this point
Copy the full SHA 8a015b6View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v18.2.0...v18.3.0