fix(deps): update react monorepo to v19 #67
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/react-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^18.0.0
->^19.0.0
18.3.1
->19.0.4
^18.0.0
->^19.0.0
^16.13.1 || ^17.0.0 || ^18.0.0
->^16.13.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
^18.0.0
->^19.0.0
^18.0.0
->^19.0.0
Release Notes
facebook/react (react)
v19.1.0
Compare Source
Owner Stack
An Owner Stack is a string representing the components that are directly responsible for rendering a particular component. You can log Owner Stacks when debugging or use Owner Stacks to enhance error overlays or other development tools. Owner Stacks are only available in development builds. Component Stacks in production are unchanged.
#32538, #32529, #32538
React
useId
to use valid CSS selectors, changing format from:r123:
to«r123»
. #32001React DOM
href
attribute is an empty string #31783getHoistableRoot()
didn’t work properly when the container was a Document #32321<!-- -->
) as a DOM container. #32250<script>
and<template>
tags to be nested within<select>
tags. #31837use-sync-external-store
exports
field topackage.json
foruse-sync-external-store
to support various entrypoints. #25231React Server Components
unstable_prerender
, a new experimental API for prerendering React Server Components on the server #31724registerServerReference
in client builds to handle server references in different environments. #32534v19.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, or
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)useOptimistic()
hook to display mutated state optimistically during an async mutation (#26740, #26772, #27277, #27453, #27454, #27936 by @acdlite)initialValue
argument touseDeferredValue()
hook (#27500, #27509, #27512, #27888, #27550 by @acdlite)element.ref
access (#28348, #28464, #28731 by @acdlite)<Context>
to mean<Context.Provider>
(#28226 by @gaearon)info
,group
, andgroupCollapsed
in StrictMode logging (#25172 by @timneutkens)useSyncExternalStore()
hydration in StrictMode (#26791 by @sophiebits)componentWillUnmount()
in StrictMode (#26842 by @tyao1)useState()
anduseReducer()
initializer functions in StrictMode (#28248 by @eps1lon)useId()
in StrictMode (#25713 by @gnoff)act()
no longer checksshouldYield
which can be inaccurate in test environments (#26317 by @acdlite)react.element
symbol toreact.transitional.element
(#28813 by @sebmarkbage)useSyncExternalStore()
re-render (#27199 by @acdlite)useSyncExternalStore()
dropped update when state is dispatched in render phase (#25578 by @pandaiolo)RefreshRuntime.findAffectedHostInstances
(#30538 by @gaearon)cache()
API (#27977, #28250 by @acdlite and @gnoff)propTypes
(#28324, #28326 by @gaearon)defaultProps
support, except for classes (#28733 by @acdlite)createFactory
(#27798 by @kassens)React DOM
useFormStatus()
hook to provide status information of the last form submission (#26719, #26722, #26788, #29019, #28728, #28413 by @acdlite and @eps1lon)preinit
,preinitModule
,preconnect
,prefetchDNS
,preload
, andpreloadModule
APIs.fetchPriority
to<img>
and<link>
(#25927 by @styfle)transformOrigin
prop (#26130 by @arav-ind)onScrollEnd
event (#26789 by @devongovett)<hr>
as child of<select>
(#27632 by @SouSingh)inert
(#24730 by @eps1lon)imageSizes
andimageSrcSet
(#22550 by @eps1lon)flushSync
exhausts queue even if something throws (#26366 by @acdlite)react
andreact-dom
versions don’t match (#29236 by @acdlite)srcset
andsrc
are assigned last on<img>
instances (#30340 by @gnoff)src
andhref
attributes (unless for<a href=”” />
) (#18513, #28124 by @bvaughn and @eps1lon)scale
style property (#25601 by @JonnyBurger)onChange
error message for controlled<select>
(#27740 by @Biki-das)render
,hydrate
,findDOMNode
,unmountComponentAtNode
,unstable_createEventHandle
,unstable_renderSubtreeIntoContainer
, andunstable_runWithPriority
. MovecreateRoot
andhydrateRoot
toreact-dom/client
. (#28271 by @gnoff)test-utils
(#28541 by @eps1lon)unstable_flushControlled
(#26397 by @kassens)renderToStaticNodeStream()
(#28873 by @gnoff)unstable_renderSubtreeIntoContainer
(#29771 by @kassens)React DOM Server
bootstrapScripts
andbootstrapModules
(#25104 by @gnoff)bootstrapModules
,bootstrapScripts
, and update priority queue (#26754, #26753, #27190, #27189 by @gnoff)onHeaders
entrypoint option (#27641, #27712 by @gnoff)<style>
and<script>
textContent to enable rendering inner content without dangerouslySetInnerHTML (#28870, #28871 by @gnoff)srcset
to trigger load event on mount (#30351 by @gnoff)onError
(#27761, #27850 by @gnoff and @sebmarkbage)crossorigin
support to bootstrap scripts (#26844 by @HenriqueLimas)nonce
andfetchpriority
in preload links (#26826 by @liuyenwei)referrerPolicy
toReactDOM.preload()
(#27096 by @styfle)react/jsx-dev-runtime
(#28921 by @himself65)errorInfo.digest
fromonRecoverableError
(#28222 by @gnoff)ReactTestRenderer
react-test-renderer
on web (#27903, #28904 by @jackpope and @acdlite)react-test-renderer/shallow
export (#25475, #28497 by @sebmarkbage and @jackpope)React Reconciler
prepareUpdate
(#26583, #27409 by @sebmarkbage and @sophiebits)React-Is
isConcurrentMode
andisAsyncMode
methods (#28224 by @gaearon)useSyncExternalStore
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.
17f973a9c7
tof17916a7fe
f17916a7fe
tof66a403cd4
f66a403cd4
to48c4bf9083
48c4bf9083
to9032a29966
9032a29966
to997a5f26f1
997a5f26f1
to249f3869a7
249f3869a7
toc9f206b0bc
c9f206b0bc
to56c114df61
56c114df61
to3aa04ef769
3aa04ef769
to2250de5a27
2250de5a27
to19875a840b
19875a840b
to99e4f2cf59
99e4f2cf59
to14134c6993
14134c6993
to4c26f09898
4c26f09898
toee7ab31bfc
ee7ab31bfc
tod2ad68042e
d2ad68042e
to103871f3fa
103871f3fa
tocb1bf4433b
cb1bf4433b
to734d033898
734d033898
tod41cb5cd6c
d41cb5cd6c
to7e204d47ba
7e204d47ba
tod7495931e8
d7495931e8
todb12154d0e
db12154d0e
toefea265631
efea265631
to22d690931c
22d690931c
toe78b3c9377
e78b3c9377
tod351c2232d
d351c2232d
to9e2addc6ca
9e2addc6ca
to0ef4fe25eb
0ef4fe25eb
tof77fe3806d
f77fe3806d
toe9a94d6506
e9a94d6506
to339a6a5628
339a6a5628
tob688aef3c0
b688aef3c0
to4e3506b87c
4e3506b87c
toe927e5f346
e927e5f346
to326f6af671
326f6af671
to671361ee9c
671361ee9c
to341a385327
341a385327
to523c2915fe
523c2915fe
tobb7168dbe9
bb7168dbe9
to07c7dfef78
07c7dfef78
toa01fec2b8c
a01fec2b8c
to2df41ebad3
2df41ebad3
to35504e82e9
35504e82e9
to26757620d6
26757620d6
to1be958768a
1be958768a
tobd317fa8f0
bd317fa8f0
toe092c4bd65
e092c4bd65
to8f9773dab9
8f9773dab9
tofd002b4371
fd002b4371
tof5301a737e
f5301a737e
toa6437d2d8b
a6437d2d8b
to2c975504eb
2c975504eb
to32d9256b72
32d9256b72
to11c658e60e
11c658e60e
to0a361660b8
0a361660b8
to31671610b9
31671610b9
to0cd00addf7
0cd00addf7
tod7674fc890
d7674fc890
to2373e06821
2373e06821
tod57d8ebca6
d57d8ebca6
toeacb956224
eacb956224
to5d4e2b5cd7
5d4e2b5cd7
to01788f47d5
01788f47d5
to0b09e908c8
0b09e908c8
tob3560f0551
b3560f0551
toe739989a38
e739989a38
to02add50b96
02add50b96
tof633f7fed3
f633f7fed3
toa5d5e71fb2
a5d5e71fb2
toa69e61128f
a69e61128f
to0f7e9fb827
0f7e9fb827
tod7993dcd24
d7993dcd24
tod06e59baab
d06e59baab
toe96fee33a1
e96fee33a1
to12c83675f5
12c83675f5
to695b40c5fb
695b40c5fb
toc3375a5d65
c3375a5d65
to2ef6425318
2ef6425318
to26c3413608
26c3413608
to6a9b90826e
6a9b90826e
to26c945434e
26c945434e
toff5458b61e
ff5458b61e
toce45f3fb0c
ce45f3fb0c
to8ad97f1b29
8ad97f1b29
to4e9af483d4
4e9af483d4
tofe3baaffe0
fe3baaffe0
tofa8c889f97
fa8c889f97
toadc0f6b71e
adc0f6b71e
tof85509f311
f85509f311
to1f19b27464
1f19b27464
tof39706e4e9
f39706e4e9
tofdee3b6841
fdee3b6841
tocfb2ba780d
cfb2ba780d
to16717101b9
16717101b9
to069e02c98d
069e02c98d
to8198b0b176
8198b0b176
tofe588cfbac
fe588cfbac
tod87ba2acd9
d87ba2acd9
to31a7258496
31a7258496
toc281295c5b
c281295c5b
to08e9de9968
08e9de9968
to2b6eb81bc3
2b6eb81bc3
to7cc666f66d
7cc666f66d
toc14037ce5b
c14037ce5b
tof575cd71ef
f575cd71ef
tod047b9b18c
d047b9b18c
to59f3659c76
59f3659c76
to243900ab79
243900ab79
to7966a61a2b
7966a61a2b
toa8ec54fb0a
a8ec54fb0a
to4fe11aa292
4fe11aa292
to2451a5eecd
2451a5eecd
tod0f3d8aa82
d0f3d8aa82
toce7a7b7f71
ce7a7b7f71
to03047686b5
03047686b5
toee44263c11
ee44263c11
toc037780813
c037780813
to305e09088f
305e09088f
to8a48d457b0
8a48d457b0
to456fb020d3
456fb020d3
tod5ac966497
d5ac966497
todf5f98d914
df5f98d914
to22b0c0e3bd
22b0c0e3bd
to385e90f05f
385e90f05f
to9c2273b855
9c2273b855
toe21186441f
e21186441f
to88c86c68a1
88c86c68a1
to80f01887f2
80f01887f2
to56207a82ac
56207a82ac
to653acef6c2
653acef6c2
to98d03ac5e6
98d03ac5e6
to666b39c98a
666b39c98a
to6483c7400f
6483c7400f
to3280bc2ce2
3280bc2ce2
toe966435022
e966435022
toffc5565c07
ffc5565c07
to220c3fe70e
220c3fe70e
tod1c08d3819
d1c08d3819
to55eec505fb
55eec505fb
tod4dd353b60
d4dd353b60
tod2accdf2de
d2accdf2de
to50b680c964
50b680c964
toc755755205
c755755205
to0daae4319c
0daae4319c
to45b9f72153
45b9f72153
to643714dbe7
643714dbe7
tocb58756d5e
cb58756d5e
to0079648c6e
0079648c6e
toc8b80b9c99
c8b80b9c99
to63ffd6569d
63ffd6569d
to9c4368f507
9c4368f507
to298a5517c7
298a5517c7
todac612a779
dac612a779
to2bf3351ce9
2bf3351ce9
to3bf17e2fda
3bf17e2fda
tob7bc116d90
b7bc116d90
to152309facb
152309facb
to3904ab33d1
3904ab33d1
to8f73219215
8f73219215
to537d053b27
537d053b27
to3cb62cfada
3cb62cfada
to34e38a5443
34e38a5443
tod6dc1232f5
d6dc1232f5
to5938544ca9
5938544ca9
to63e0978fa1
63e0978fa1
to6ab27d151c
6ab27d151c
tob704d71dfc
b704d71dfc
to966147e315
966147e315
to81cc467461
81cc467461
to717943168b
717943168b
tod5f2207f34
d5f2207f34
to3cc5f3b2ce
3cc5f3b2ce
to335317015e
335317015e
toff604ed445
ff604ed445
to811b77d7a1
811b77d7a1
tobac9a8fad0
bac9a8fad0
tode8b6204f0
de8b6204f0
to153980cc5c
153980cc5c
tofce902caa5
fce902caa5
to9ca91ffc9e
9ca91ffc9e
toec3ca94dfa
chore(deps): update react monorepo to v19to fix(deps): update react monorepo to v19ec3ca94dfa
to944738259a
944738259a
toec9f43f37e
ec9f43f37e
to96720612ef
96720612ef
to3aec21a318
3aec21a318
toc4ea01d7f6
c4ea01d7f6
to7a1342c4af
7a1342c4af
to9ca8c1a390
9ca8c1a390
to055eb4e917
055eb4e917
tob2302b734b
b2302b734b
toe98236802f
e98236802f
to3562dc1662
3562dc1662
to7178db572a
7178db572a
tof1f7ce6800
f1f7ce6800
to0ed327c7ec
0ed327c7ec
to2b9d24c174
2b9d24c174
toac57555502
ac57555502
to5c915c63ff
5c915c63ff
tof3e39ed1bd
f3e39ed1bd
to3e57159ff8
3e57159ff8
to2b9ba2d566
2b9ba2d566
to94ff6e0466
94ff6e0466
tof73bf20e2a
f73bf20e2a
todb171c79c8
db171c79c8
to1bed204f8c
1bed204f8c
tof9fcb3270f
f9fcb3270f
to1a3bb8fa2d
1a3bb8fa2d
to1c45e3ddce
1c45e3ddce
to075b19a2ae
075b19a2ae
to95c209bd43
95c209bd43
tob3df71a79c
b3df71a79c
to22e49e2539
22e49e2539
toed8d484c62
ed8d484c62
to4ce2a999ab
4ce2a999ab
to6417b9801c
6417b9801c
toa4c8060d94
a4c8060d94
tofd1058e3fc
fd1058e3fc
to71ee38ce8b
71ee38ce8b
to315cf80892
315cf80892
tof18a9f2e3b
f18a9f2e3b
to91acc68db0
91acc68db0
to256049e06b
256049e06b
tob126d781ef
b126d781ef
toa887652e17
a887652e17
to79c9c648aa
79c9c648aa
to991ebf87e2
991ebf87e2
toc814b7a668
c814b7a668
toe4afa63632
e4afa63632
to57eea4e258
57eea4e258
todca7a39fab
dca7a39fab
tof2ce1a60de
f2ce1a60de
to4caf8757bb
4caf8757bb
to9c5ce37947
9c5ce37947
to736f727d5e
736f727d5e
to86ad9f76a9
86ad9f76a9
toc39c61e5bd
c39c61e5bd
tocd389e840f
cd389e840f
to595c1d8230
595c1d8230
to9e01f39e01
9e01f39e01
tofb9852e9f6
fb9852e9f6
to01c0c1869f
01c0c1869f
tof10c07943a
f10c07943a
to942ae4b010
942ae4b010
toa79b6c6bb7
a79b6c6bb7
tof14fc6ce90
f14fc6ce90
to1950478c33
1950478c33
to7d5e42d69c
7d5e42d69c
to44a589db7e
44a589db7e
to7aaa0c71e9
7aaa0c71e9
to9f8ee48f54
9f8ee48f54
to198ec05004
198ec05004
tocb21cda4e7
cb21cda4e7
to9015d8d381
9015d8d381
to3f1fbaecc2
3f1fbaecc2
to7c98e0b15a
7c98e0b15a
to3c7ab3b99a
3c7ab3b99a
tofa688d9bbe
fa688d9bbe
to562f055072
562f055072
to6dd3378838
6dd3378838
to0e44eaf7b9
0e44eaf7b9
to48db7431f8
48db7431f8
to881280bf51
881280bf51
toaf4db4f3f0
af4db4f3f0
to7692ad96b2
7692ad96b2
tof870a2ebe1
f870a2ebe1
toa0e3bd8999
a0e3bd8999
to1a732c9d3d
1a732c9d3d
tof4301e1ade
f4301e1ade
to798e67f3bf
798e67f3bf
tof762450fcf
f762450fcf
to9c62b1cff5
9c62b1cff5
tob58399855d
b58399855d
to1849f334a8
1849f334a8
to2bcb17162e
2bcb17162e
tofba131fbc3
fba131fbc3
to10691652f3
10691652f3
toaf6d1f6bd5
af6d1f6bd5
to6d151c4804
6d151c4804
to1091cf2a2c
Checkout
From your project repository, check out a new branch and test the changes.