Conversation
b7fe261 to
8a3c109
Compare
8a3c109 to
b851202
Compare
43699ad to
abb8f95
Compare
631ef2c to
2a7eadf
Compare
a0e93b7 to
62c81f4
Compare
48ab122 to
223ea9a
Compare
44f9454 to
244bc6b
Compare
a0fde28 to
386da07
Compare
f5f27ee to
51c778a
Compare
82eceae to
42fba88
Compare
81ad832 to
b60ef76
Compare
235fda6 to
f80a8cb
Compare
cb2ea00 to
677c43f
Compare
f189610 to
9394655
Compare
9394655 to
49b5e2d
Compare
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the WalkthroughThe project has been updated to utilize the latest major versions of React and React DOM, moving from version 17.0.2 to 19.1.0. This update includes corresponding modifications to their type definitions, enhancing type safety and allowing access to new features introduced in these versions. These changes ensure better compatibility with the current React ecosystem. Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
Files selected for processing (1)
- package.json (2 hunks)
Additional comments not posted (4)
package.json (4)
35-35: Check type definitions for React.The
@types/reactpackage has been updated to version18.3.4. Ensure that the type definitions align with the updated React version and that there are no type-related issues in the codebase.Run the following script to identify potential type issues with React 18:
26-26: Verify React DOM updates.The
react-domlibrary has been updated to version18.3.1. Ensure that the project utilizes the new APIs likecreateRootandhydrateRootfor rendering.Run the following script to check for correct usage of React DOM 18 APIs:
36-36: Ensure compatibility with React DOM type definitions.The
@types/react-dompackage has been updated to version18.3.0. Verify that the type definitions are correctly used in the codebase and align with the updated React DOM version.Run the following script to check for type issues related to React DOM 18:
25-25: Ensure compatibility with React 18.The
reactlibrary has been updated to version18.3.1. Verify that the codebase is compatible with React 18 features and breaking changes, such as the new concurrent rendering APIs.Run the following script to identify potential issues with React 18 usage:
Verification successful
No deprecated React lifecycle methods found; new React 18 APIs not detected.
The codebase does not contain deprecated lifecycle methods, which is good. However, there is no evidence of new React 18 API usage. Ensure that any new React 18 features are implemented correctly if they are being used.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for usage of deprecated or changed APIs in React 18. # Test: Search for deprecated lifecycle methods. Expect: No occurrences. rg --type js --type jsx --type ts --type tsx 'componentWillMount|componentWillReceiveProps|componentWillUpdate' # Test: Search for new React 18 APIs. Expect: Correct usage. rg --type js --type jsx --type ts --type tsx 'createRoot|hydrateRoot|useId|startTransition|useTransition|useDeferredValue'Length of output: 294
Script:
#!/bin/bash # Description: Check for usage of deprecated or changed APIs in React 18. # Test: Search for deprecated lifecycle methods. Expect: No occurrences. rg --type js --type ts 'componentWillMount|componentWillReceiveProps|componentWillUpdate' # Test: Search for new React 18 APIs. Expect: Correct usage. rg --type js --type ts 'createRoot|hydrateRoot|useId|startTransition|useTransition|useDeferredValue'Length of output: 194
There was a problem hiding this comment.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
package.json (1)
25-25: Update ReactDOM.render usage for React 18 compatibility.The codebase uses
ReactDOM.renderin the following files, which should be updated to usecreateRootfromreact-dom/clientfor compatibility with React 18:
src/options_page.tsxsrc/content_script.tsxPlease update these instances to ensure compatibility with React 18.
Analysis chain
Approve the React version update.
The update from React 17 to 18 introduces significant new features and improvements. Ensure compatibility with existing code and leverage new features like
useId,startTransition, and others.The version update is approved.
Run the following script to verify compatibility with existing code:
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify compatibility with existing code. # Test: Search for deprecated React 17 features. Expect: No occurrences. rg --type json -A 5 $'React 17 deprecated features'Length of output: 52
Script:
#!/bin/bash # Description: Search for deprecated React 17 features or breaking changes in JavaScript or TypeScript files. # Search for deprecated lifecycle methods that might be used in the codebase. rg --type js --type ts -A 5 'componentWillMount|componentWillReceiveProps|componentWillUpdate' # Search for any usage of ReactDOM.render, which has changed in React 18. rg --type js --type ts -A 5 'ReactDOM\.render'Length of output: 361
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
Files selected for processing (1)
- package.json (2 hunks)
Additional comments not posted (3)
package.json (3)
35-35: Approve the update for @types/react.Updating the type definitions to match the React version ensures type safety and access to typings for new features in React 18.
The version update is approved.
36-36: Approve the update for @types/react-dom.The update in type definitions for React DOM to version 18.3.0 is essential for ensuring compatibility with the new APIs and features of React DOM 18.
The version update is approved.
26-26: Approve the React DOM version update.The update to React DOM 18.3.1 is necessary to utilize the full capabilities of React 18, including new rendering and hydration APIs.
The version update is approved.
Run the following script to verify compatibility with existing code:
Verification successful
No direct compatibility issues found with ReactDOM.render or ReactDOM.hydrate.
The codebase does not appear to use
ReactDOM.renderorReactDOM.hydrate, which are known to have changes in React 18. However, consider manual verification for other potential compatibility issues with React DOM 18.3.1.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify compatibility with existing code. # Test: Search for deprecated React DOM 17 features. Expect: No occurrences. rg --type json -A 5 $'React DOM 17 deprecated features'Length of output: 56
Script:
#!/bin/bash # Description: Search for usage of React DOM APIs that might have changed in version 18. # Search for usage of ReactDOM.render, which has changed in React 18. rg --type js --type jsx 'ReactDOM\.render' # Search for usage of ReactDOM.hydrate, which has changed in React 18. rg --type js --type jsx 'ReactDOM\.hydrate'Length of output: 146
Script:
#!/bin/bash # Description: Search for usage of React DOM APIs that might have changed in version 18. # Search for usage of ReactDOM.render, which has changed in React 18. rg --type js 'ReactDOM\.render' # Search for usage of ReactDOM.hydrate, which has changed in React 18. rg --type js 'ReactDOM\.hydrate'Length of output: 68
This PR contains the following updates:
17.0.91→19.2.1417.0.26→19.2.317.0.2→19.2.517.0.2→19.2.5Release Notes
facebook/react (react)
v19.2.5: 19.2.5 (April 8th, 2026)Compare Source
React Server Components
v19.2.4: 19.2.4 (January 26th, 2026)Compare Source
React Server Components
v19.2.3: 19.2.3 (December 11th, 2025)Compare Source
React Server Components
v19.2.2: 19.2.2 (December 11th, 2025)Compare Source
React Server Components
react-server-dom-webpack/*.unbundledto privatereact-server-dom-unbundled(@eps1lon #35290)v19.2.1: 19.2.1 (December 3rd, 2025)Compare Source
React Server Components
v19.2.0Compare 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.useEffectEventis 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.prerenderAPIs to return apostponedstate that can be passed to theresumeAPIs.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)%oplaceholder (@eps1lon #34198)useDeferredValueloop in popstate event (@acdlite #32821)useDeferredValue(@acdlite #34376)cacheSignal(@sebmarkbage #33557)React DOM
:for IDs generated byuseId(@sebmarkbage, @eps1lon: #32001, #33342#33099, #33422)nonceto be used on hoistable styles (@Andarist #32461)React.useinsideReact.lazy-ed Component (@hi-ogawa #33941)progressiveChunkSizeoption 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.6: 19.1.6 (April 8th, 2026)Compare Source
React Server Components
v19.1.5: 19.1.5 (January 26th, 2026)Compare Source
React Server Components
v19.1.4: 19.1.4 (December 11th, 2025)Compare Source
React Server Components
v19.1.3: 19.1.3 (December 11th, 2025)Compare Source
React Server Components
react-server-dom-webpack/*.unbundledto privatereact-server-dom-unbundled(@eps1lon #35290)v19.1.2: 19.1.2 (December 3rd, 2025)Compare Source
React Server Components
v19.1.1Compare Source
React
v19.1.0Compare 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
useIdto use valid CSS selectors, changing format from:r123:to«r123». #32001React DOM
hrefattribute 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
exportsfield topackage.jsonforuse-sync-external-storeto support various entrypoints. #25231React Server Components
unstable_prerender, a new experimental API for prerendering React Server Components on the server #31724registerServerReferencein client builds to handle server references in different environments. #32534v19.0.5: 19.0.5 (April 8th, 2026)Compare Source
React Server Components
v19.0.4: 19.0.4 (January 26th, 2026)Compare Source
React Server Components
v19.0.3: 19.0.3 (December 11th, 2025)Compare Source
React Server Components
v19.0.2: 19.0.2 (December 11th, 2025)Compare Source
React Server Components
v19.0.1: 19.0.1 (December 3rd, 2025)Compare Source
React Server Components
v19.0.0Compare 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
startTransitioncan now accept async functions. Functions passed tostartTransitionare 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 formactionprop 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,useaccepts a promise or Context. If provided a promise,usewill suspend until a value is resolved.usecan only be used in render but can be called conditionally.refas a prop: Refs can now be used as props, removing the need forforwardRef.React DOM Client
<form> actionprop: Form Actions allow you to manage forms automatically and integrate withuseFormStatus. When a<form> actionsucceeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the newrequestFormResetAPI.<button> and <input> formActionprop: Actions can be passed to theformActionprop 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, andpreconnectAPIs 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
prerenderandprerenderToNodeStreamAPIs 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.refaccess: React 19 supports ref as a prop, so we’re deprecatingelement.refin 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
onUncaughtErrorandonCaughtErrormethods tocreateRootandhydrateRootto customize this error handling.propTypes: UsingpropTypeswill now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.defaultPropsfor functions: ES6 default parameters can be used in place. Class components continue to supportdefaultPropssince there is no ES6 alternative.contextTypesandgetChildContext: Legacy Context for class components has been removed in favor of thecontextTypeAPI.React.createFactory: Now that JSX is broadly supported, allcreateFactoryusage 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 movedactfromreact-dom/test-utilsto react. All other utilities have been removed.ReactDOM.render,ReactDOM.hydrate: These have been removed in favor of the concurrent equivalents:ReactDOM.createRootandReactDOM.hydrateRoot.unmountComponentAtNode: Removed in favor ofroot.unmount().ReactDOM.findDOMNode: You can replaceReactDOM.findDOMNodewith DOM Refs.Notable Changes
React
<Context>as a provider: You can now render<Context>as a provider instead of<Context.Provider>.useDeferredValueinitial value argument: When provided,useDeferredValuewill return the initial value for the initial render of a component, then schedule a re-render in the background with thedeferredValuereturned.useMemoanduseCallbackwill 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,WeakValidationMapcreate-react-class:ClassicComponentClass,ClassicComponent,ClassicElement,ComponentSpec,Mixin,ReactChildren,ReactHTML,ReactSVG,SFCFactoryuseRef: The initial argument is now required to matchuseState,createContextetcuseRef()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.ReactElementtyping: The props of React elements now default tounknowninstead ofanyif the element is typed asReactElementJSXnamespace is removed to improve interoperability with other libraries using JSX. Instead, the JSX namespace is available from the React package:import { JSX } from 'react'useReducertypings: MostuseReducerusage 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)useOptimistic()hook to display mutated state optimistically during an async mutation (#26740, #26772, #27277, #27453, #27454, #27936 by @acdlite)initialValueargument touseDeferredValue()hook (#27500, #27509, #27512, #27888, #27550 by @acdlite)element.refaccess (#28348, #28464, #28731 by @acdlite)<Context>to mean<Context.Provider>(#28226 by @gaearon)info,group, andgroupCollapsedin 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 checksshouldYieldwhich can be inaccurate in test environments (#26317 by @acdlite)react.elementsymbol 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)defaultPropssupport, 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, andpreloadModuleAPIs.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.