-
Notifications
You must be signed in to change notification settings - Fork 50
Update react dependencies (major) #1094
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
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-react-dependencies
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+319
−101
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
22ce80f
to
5a681b4
Compare
ca1783f
to
639cd7f
Compare
9ccd2d4
to
124e027
Compare
124e027
to
6d1f755
Compare
6d1f755
to
4280710
Compare
4280710
to
a426a02
Compare
a426a02
to
63321e7
Compare
63321e7
to
2b7d4b7
Compare
2b7d4b7
to
3091066
Compare
3091066
to
38e7474
Compare
38e7474
to
0d9208c
Compare
0d9208c
to
a9905bd
Compare
a9905bd
to
e1faf2c
Compare
e1faf2c
to
925d3ae
Compare
925d3ae
to
968a73d
Compare
968a73d
to
0b7621a
Compare
0b7621a
to
4978d7c
Compare
4978d7c
to
3b90b81
Compare
3b90b81
to
0d667b6
Compare
0d667b6
to
2139b62
Compare
2139b62
to
f771694
Compare
f771694
to
f1eabf6
Compare
f1eabf6
to
c9614b2
Compare
c9614b2
to
195f87b
Compare
195f87b
to
2952831
Compare
2952831
to
cf45299
Compare
cf45299
to
4bba42b
Compare
4bba42b
to
7231c0f
Compare
7231c0f
to
74e96a5
Compare
74e96a5
to
6b80a83
Compare
6b80a83
to
baf3d15
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
13.4.0
->16.3.0
4.6.2
->6.1.1
3.2.0
->4.2.0
18.3.1
->19.2.0
18.3.1
->19.2.0
1.3.0
->2.0.5
6.30.0
->7.9.3
18.3.1
->19.2.0
Release Notes
testing-library/react-testing-library (@testing-library/react)
v16.3.0
Compare Source
Features
v16.2.0
Compare Source
Features
v16.1.0
Compare Source
Features
v16.0.1
Compare Source
Bug Fixes
v16.0.0
Compare Source
Features
@testing-library/dom
and@types/react-dom
to peer dependencies (#1305) (a4744fa)BREAKING CHANGES
@testing-library/dom
was moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of@testing-library/dom
installed that frequently caused bugs when used with@testing-library/user-event
. We will also be able to allow new versions of@testing-library/dom
being used without a SemVer major release of@testing-library/react
by just widening the peer dependency.@types/react-dom
needs to be installed if you're typechecking files using@testing-library/react
.v15.0.7
Compare Source
Bug Fixes
act
is notany
whenReact.act
is not declared (#1323) (c1f2957)v15.0.6
Compare Source
Bug Fixes
v15.0.5
Compare Source
Bug Fixes
container
option based onhydrate
(#1313) (d143f46)v15.0.4
Compare Source
Bug Fixes
renderHook
options extend options forrender
(#1308) (48282c2)v15.0.3
Compare Source
Bug Fixes
document
(#1304) (067d0c6)v15.0.2
Compare Source
Bug Fixes
legacyRoot
error message (#1301) (c63b873)v15.0.1
Compare Source
Bug Fixes
v15.0.0
Compare Source
Release
BREAKING CHANGES
@testing-library/dom
changes various roles. Check out the changed tests in testing-library/dom-testing-library@2c57055
to get an overview about what changed.v14.3.1
Compare Source
Bug Fixes
v14.3.0
Compare Source
Features
v14.2.2
Compare Source
Bug Fixes
v14.2.1
Compare Source
Bug Fixes
v14.2.0
Compare Source
Features
reactStrictMode
option to enable strict mode render (#1241) (0880eba)v14.1.2
Compare Source
Bug Fixes
v14.1.1
Compare Source
Bug Fixes
v14.1.0
Compare Source
Features
v14.0.0
Compare Source
Bug Fixes
Features
@testing-library/dom
to 9.0.0 (#1177) (6653c23)BREAKING CHANGES
facebook/react (eslint-plugin-react-hooks)
v6.1.1
Compare Source
Note: 6.1.0 accidentally allowed use of
recommended
without flat config, causing errors when used with ESLint v9'sdefineConfig()
helper. This has been fixed in 6.1.1.recommended
config for flat config compatibility. Therecommended
config has been converted to flat config format. Non-flat config users should userecommended-legacy
instead. (@poteto in #34700)recommended-latest
andrecommended-latest-legacy
configs that include React Compiler rules. (@poteto in #34675)NoUnusedOptOutDirectives
rule. (@poteto in #34703)hermes-parser
and dependency. (@poteto in #34719)@babel/plugin-proposal-private-methods
dependency. (@ArnaudBarre and @josephsavona in #34715)v6.1.0
Compare Source
Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.
recommended
preset. Legacy config moved torecommended-legacy
. (@michaelfaith in #32457)use
within try/catch blocks. (@poteto in #34040)useEffectEvent
functions in arbitrary closures. (@jbrown215 in #33544)React.useEffect
in addition touseEffect
in rules-of-hooks. (@Ayc0 in #34076)react-hooks
settings config option that to acceptadditionalEffectHooks
that are used across exhaustive-deps and rules-of-hooks rules. (@jbrown215) in #34497v6.0.0
Compare Source
Accidentally released. See 6.1.0 for the actual changes.
v5.2.0
Compare Source
do
/while
loops (@tyxla in #31720)v5.1.0
Compare Source
do
/while
loops (@tyxla in #28714)as
expression (@mskelton in #31119)v5.0.0
Compare Source
_Button
or_component
are no longer valid. (@kassens) in #25162useActionState
stable. (@eps1lon in #29665)as
expression in callback. (@StyleShit in #28202)as
expressions in deps array. (@StyleShit in #28189)React.use()
the same asuse()
. (@kassens in #27769)use()
lint to non-experimental. (@kassens in #27768)as
expressions. (@cpojer in #27590)useEffect(fn, undefined)
. (@kassens in #27525)useEvent
touseEffectEvent
. (@sebmarkbage in #25881)useEvent
functions in dependency lists. (@poteto in #25512)useEvent
references instead. (@poteto in #25319)RulesOfHooks
withuseEvent
rules. (@poteto in #25285)zpao/qrcode.react (qrcode.react)
v4.2.0
Compare Source
Added
peerDependencies
(#381)v4.1.0
Compare Source
Added
boostLevel
prop, allowing the disabling of the underlying encoder's default of automatically boosting the ECL. (#374)value
, which enables encoding of each part into independent segments. (#374)v4.0.1
Compare Source
Fixed
"moduleResolution": "Bundler"
or"module": "ESNext"
. (#368)v4.0.0
Compare Source
Added
ref
, enabling direct access for underlyingcanvas
orsvg
nodes. This also resulted in much more accurate type defitions. (#202)marginSize
prop, replacing the now deprecatedincludeMargin
. This enables margins of any value, not just0
or4
. (#281)imageSettings.opacity
(#292)minVersion
prop to give better control over QR Code generated (#323)cross-origin
for embedded images viaimageSettings.crossOrigin
. (#324)Changed
QRCodeSVG
by rendering a<title>
node instead of setting atitle
attribute. (#284)role
set on rendered SVG and Canvas. (#321)Deprecated
includeMargin
prop has been deprecated in favor ofmarginSize
. (#281)Removed
style
prop. This still works identically as it was passed through and the type definitions are unaffected as they were improved via theref
changes (#357)Fixed
href
in place ofxlink:href
for embedded images. (#336)facebook/react (react)
v19.2.0
Compare Source
Below is a list of all new features, APIs, and bug fixes.
Read the React 19.2 release post for more information.
New React Features
<Activity>
: A new API to hide and restore the UI and internal state of its children.useEffectEvent
is a React Hook that lets you extract non-reactive logic into an Effect Event.cacheSignal
(for RSCs) lets your know when thecache()
lifetime is over.New React DOM Features
resume
: to resume a prerender to a stream.resumeAndPrerender
: to resume a prerender to HTML.resumeToPipeableStream
: to resume a prerender to a stream.resumeAndPrerenderToNodeStream
: to resume a prerender to HTML.prerender
APIs to return apostponed
state that can be passed to theresume
APIs.Notable changes
<ViewTransition>
Component. React will batch as much reveals as possible before the first paint while trying to hit popular first-contentful paint metrics.prerender
,renderToReadableStream
) to server-side-rendering APIs for Node.js:
IDs generated by useIdAll Changes
React
<Activity />
was developed over many years, starting beforeClassComponent.setState
(@acdlite @sebmarkbage and many others)%o
placeholder (@eps1lon #34198)useDeferredValue
loop in popstate event (@acdlite #32821)useDeferredValue
(@acdlite #34376)cacheSignal
(@sebmarkbage #33557)React DOM
:
for IDs generated byuseId
(@sebmarkbage, @eps1lon: #32001, #33342#33099, #33422)nonce
to be used on hoistable styles (@Andarist #32461)React.use
insideReact.lazy
-ed Component (@hi-ogawa #33941)progressiveChunkSize
option for server-side-rendering APIs (@sebmarkbage #33027)React Server Components
<img>
and<link>
using hints before they're rendered (@sebmarkbage #34604)filterStackFrame
(@eps1lon #33707)React Reconciler
on*
handlers to account for upcoming experimental APIsv19.1.1
Compare Source
v19.1.0
Compare Source
v19.0.0
Compare Source
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 19 release post and React 19 upgrade guide for more information.
New Features
React
startTransition
can now accept async functions. Functions passed tostartTransition
are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects likefetch()
in the pending state, and provides support for error handling, and optimistic updates.useActionState
: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a formaction
prop to support progressive enhancement in forms.useOptimistic
: is a new hook to update state while a Transition is in progress. It returns the state, and a set function that can be called inside a transition to “optimistically” update the state to expected final value immediately while the Transition completes in the background. When the transition finishes, the state is updated to the new value.use
: is a new API that allows reading resources in render. In React 19,use
accepts a promise or Context. If provided a promise,use
will suspend until a value is resolved.use
can only be used in render but can be called conditionally.ref
as a prop: Refs can now be used as props, removing the need forforwardRef
.React DOM Client
<form> action
prop: Form Actions allow you to manage forms automatically and integrate withuseFormStatus
. When a<form> action
succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the newrequestFormReset
API.<button> and <input> formAction
prop: Actions can be passed to theformAction
prop to configure form submission behavior. This allows using different Actions depending on the input.useFormStatus
: is a new hook that provides the status of the parent<form> action
, as if the form was a Context provider. The hook returns the values:pending
,data
,method
, andaction
.<head>
section of the document.<head>
on the client before revealing the content of a Suspense boundary that depends on that stylesheet.preinit
,preload
,prefetchDNS
, andpreconnect
APIs to optimize initial page loads by moving discovery of additional resources like fonts out of stylesheet loading. They can also be used to prefetch resources used by an anticipated navigation.React DOM Server
prerender
andprerenderToNodeStream
APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. UnlikerenderToString
, they wait for data to load for HTML generation.React Server Components
Deprecations
element.ref
access: React 19 supports ref as a prop, so we’re deprecatingelement.ref
in favor ofelement.props.ref
. Accessing will result in a warning.react-test-renderer
: In React 19, react-test-renderer logs a deprecation warning and has switched to concurrent rendering for web usage. We recommend migrating your tests to @testing-library/react or @testing-library/react-nativeBreaking Changes
React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to
18.3.1
, where we've added additional deprecation warnings. Check out the upgrade guide for more details and guidance on codemodding.React
onUncaughtError
andonCaughtError
methods tocreateRoot
andhydrateRoot
to customize this error handling.propTypes
: UsingpropTypes
will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.defaultProps
for functions: ES6 default parameters can be used in place. Class components continue to supportdefaultProps
since there is no ES6 alternative.contextTypes
andgetChildContext
: Legacy Context for class components has been removed in favor of thecontextType
API.React.createFactory
: Now that JSX is broadly supported, allcreateFactory
usage can be migrated to JSX components.react-test-renderer/shallow
: This has been a re-export of react-shallow-renderer since React 18. If needed, you can continue to use the third-party package directly. We recommend using @testing-library/react or @testing-library/react-native instead.React DOM
react-dom/test-utils
: We’ve movedact
fromreact-dom/test-utils
to react. All other utilities have been removed.ReactDOM
.render
,ReactDOM
.hydrate
: These have been removed in favor of the concurrent equivalents:ReactDOM
.createRoot
andReactDOM.hydrateRoot
.unmountComponentAtNode
: Removed in favor ofroot.unmount()
.ReactDOM
.findDOMNode
: You can replaceReactDOM
.findDOMNode
with DOM Refs.Notable Changes
React
<Context>
as a provider: You can now render<Context>
as a provider instead of<Context.Provider>
.useDeferredValue
initial value argument: When provided,useDeferredValue
will return the initial value for the initial render of a component, then schedule a re-render in the background with thedeferredValue
returned.useMemo
anduseCallback
will now reuse the memoized results from the first render, during the second render. Additionally, StrictMode will now double-invoke ref callback functions on initial mount.React DOM
TypeScript Changes
The most common changes can be codemodded with
npx types-react-codemod@latest preset-19 ./path-to-your-react-ts-files
.ReactChild
(replacement:React.ReactElement | number | string)
ReactFragment
(replacement:Iterable<React.ReactNode>
)ReactNodeArray
(replacement:ReadonlyArray<React.ReactNode>
)ReactText
(replacement:number | string
)VoidFunctionComponent
(replacement:FunctionComponent
)VFC
(replacement:FC
)prop-types
:Requireable
,ValidationMap
,Validator
,WeakValidationMap
create-react-class
:ClassicComponentClass
,ClassicComponent
,ClassicElement
,ComponentSpec
,Mixin
,ReactChildren
,ReactHTML
,ReactSVG
,SFCFactory
useRef
: The initial argument is now required to matchuseState
,createContext
etcuseRef()
are now always mutable instead of sometimes being immutable. This feature was too confusing for users and conflicted with legit cases where refs were managed by React and manually written to.ReactElement
typing: The props of React elements now default tounknown
instead ofany
if the element is typed asReactElement
JSX
namespace is removed to improve interoperability with other libraries using JSX. Instead, the JSX namespace is available from the React package:import { JSX } from 'react'
useReducer
typings: MostuseReducer
usage should not require explicit type arguments.For example,
All Changes
React
useActionState()
hook to update state based on the result of a Form Action (#27270, #27278, #27309, #27302, #27307, #27366, #27370, #27321, #27374, #27372, #27397, #27399, #27460, #28557, #27570, #27571, #28631, #28788, #29694, #29695, #29694, #29665, #28232, #28319 by @acdlite, @eps1lon, and @rickhanlonii)use()
API to read resources in render (#25084, #25202, #25207, #25214, #25226, #25247, #25539, #25538, #25537, #25543, #25561, #25620, #25615, #25922, #25641, #25634, #26232, #26536, #26739, #28233 by @acdlite, @MofeiZ, @sebmarkbage, @sophiebits, @eps1lon, and @hansottowirtz)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.