Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 26, 2020

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:

Package Change Age Confidence
react (source) 17.0.2 -> 19.2.0 age confidence
react-dom (source) 17.0.2 -> 19.2.0 age confidence
react-test-renderer (source) ^17.0.2 -> ^19.0.0 age confidence

Release Notes

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 the cache() lifetime is over.
  • React Performance tracks appear on the Performance panel’s timeline in your browser developer tools
New React DOM Features
  • Added resume APIs for partial pre-rendering with Web Streams:
  • Added resume APIs for partial pre-rendering with Node Streams:
  • Updated prerender APIs to return a postponed state that can be passed to the resume APIs.
Notable changes
  • React DOM now batches suspense boundary reveals, matching the behavior of client side rendering. This change is especially noticeable when animating the reveal of Suspense boundaries e.g. with the upcoming <ViewTransition> Component. React will batch as much reveals as possible before the first paint while trying to hit popular first-contentful paint metrics.
  • Add Node Web Streams (prerender, renderToReadableStream) to server-side-rendering APIs for Node.js
  • Use underscore instead of : IDs generated by useId
All Changes
React
React DOM
React Server Components
React Reconciler

v19.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.

Note: To help make the upgrade to React 19 easier, we’ve published a react@18.3 release that is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19. We recommend upgrading to React 18.3.1 first to help identify any issues before upgrading to React 19.

New Features
React
  • Actions: startTransition can now accept async functions. Functions passed to startTransition 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 like fetch() 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 form action 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 for forwardRef.
  • Suspense sibling pre-warming: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests.
React DOM Client
  • <form> action prop: Form Actions allow you to manage forms automatically and integrate with useFormStatus. When a <form> action succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new requestFormReset API.
  • <button> and <input> formAction prop: Actions can be passed to the formAction 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, and action.
  • Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <head> section of the document.
  • Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <head> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.
  • Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.
  • Support for preloading resources: React 19 ships with preinit, preload, prefetchDNS, and preconnect 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
  • Added prerender and prerenderToNodeStream APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike renderToString, they wait for data to load for HTML generation.
React Server Components
  • RSC features such as directives, server components, and server functions are now stable. This means libraries that ship with Server Components can now target React 19 as a peer dependency with a react-server export condition for use in frameworks that support the Full-stack React Architecture. The underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x. See docs for how to support React Server Components.
Deprecations
  • Deprecated: element.ref access: React 19 supports ref as a prop, so we’re deprecating element.ref in favor of element.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-native
Breaking 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
  • New JSX Transform is now required: We introduced a new JSX transform in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.
  • Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced onUncaughtError and onCaughtError methods to createRoot and hydrateRoot to customize this error handling.
  • Removed: propTypes: Using propTypes will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.
  • Removed: defaultProps for functions: ES6 default parameters can be used in place. Class components continue to support defaultProps since there is no ES6 alternative.
  • Removed: contextTypes and getChildContext: Legacy Context for class components has been removed in favor of the contextType API.
  • Removed: string refs: Any usage of string refs need to be migrated to ref callbacks.
  • Removed: Module pattern factories: A rarely used pattern that can be migrated to regular functions.
  • Removed: React.createFactory: Now that JSX is broadly supported, all createFactory usage can be migrated to JSX components.
  • Removed: 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
  • Removed: react-dom/test-utils: We’ve moved act from react-dom/test-utils to react. All other utilities have been removed.
  • Removed: ReactDOM.render, ReactDOM.hydrate: These have been removed in favor of the concurrent equivalents: ReactDOM.createRoot and ReactDOM.hydrateRoot.
  • Removed: unmountComponentAtNode: Removed in favor of root.unmount().
  • Removed: ReactDOM.findDOMNode: You can replace ReactDOM.findDOMNode with DOM Refs.
Notable Changes
React
  • <Context> as a provider: You can now render <Context> as a provider instead of <Context.Provider>.
  • Cleanup functions for refs: When the component unmounts, React will call the cleanup function returned from the ref callback.
  • 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 the deferredValue returned.
  • Support for Custom Elements: React 19 now passes all tests on Custom Elements Everywhere.
  • StrictMode changes: useMemo and useCallback 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.
  • UMD builds removed: To load React 19 with a script tag, we recommend using an ESM-based CDN such as esm.sh.
React DOM
  • Diffs for hydration errors: In the case of a mismatch, React 19 logs a single error with a diff of the mismatched content.
  • Compatibility with third-party scripts and extensions: React will now force a client re-render to fix up any mismatched content caused by elements inserted by third-party JS.
TypeScript Changes

The most common changes can be codemodded with npx types-react-codemod@latest preset-19 ./path-to-your-react-ts-files.

  • Removed deprecated TypeScript types:
    • 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)
    • Moved to prop-types: Requireable, ValidationMap, Validator, WeakValidationMap
    • Moved to create-react-class: ClassicComponentClass, ClassicComponent, ClassicElement, ComponentSpec, Mixin, ReactChildren, ReactHTML, ReactSVG, SFCFactory
  • Disallow implicit return in refs: refs can now accept cleanup functions. When you return something else, we can’t tell if you intentionally returned something not meant to clean up or returned the wrong value. Implicit returns of anything but functions will now error.
  • Require initial argument to useRef: The initial argument is now required to match useState, createContext etc
  • Refs are mutable by default: Ref objects returned from useRef() 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.
  • Strict ReactElement typing: The props of React elements now default to unknown instead of any if the element is typed as ReactElement
  • JSX namespace in TypeScript: The global 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'
  • Better useReducer typings: Most useReducer usage should not require explicit type arguments.
    For example,
    -useReducer<React.Reducer<State, Action>>(reducer)
    +useReducer(reducer)
    or
    -useReducer<React.Reducer<State, Action>>(reducer)
    +useReducer<State, Action>(reducer)
All Changes
React
React DOM
React DOM Server

Configuration

📅 Schedule: Branch creation - "after 12am and before 08:30am on Monday" in timezone America/New_York, 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.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 3870e63 to 0dbffbd Compare November 2, 2020 05:16
@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #66 (29f5d69) into master (76d3b5c) will decrease coverage by 86.74%.
The diff coverage is n/a.

❗ Current head 29f5d69 differs from pull request most recent head e47e158. Consider uploading reports for the commit e47e158 to get more accurate results
Impacted file tree graph

@@           Coverage Diff            @@
##           master   #66       +/-   ##
========================================
- Coverage   86.74%     0   -86.75%     
========================================
  Files          87     0       -87     
  Lines        2075     0     -2075     
  Branches      460     0      -460     
========================================
- Hits         1800     0     -1800     
+ Misses        275     0      -275     
Impacted Files Coverage Δ
src/users/account-actions/constants.js
...rc/users/entitlements/v2/ExpireEntitlementForm.jsx
src/users/data/test/entitlementForm.js
src/users/entitlements/v2/EntitlementForm.jsx
src/SupportToolsTab/SupportToolsTab.jsx
src/users/v2/IdentityVerificationStatus.jsx
src/users/enrollments/EnrollmentForm.jsx
src/users/UserSummary.jsx
src/utils/index.js
src/users/data/test/ssoRecords.js
... and 77 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76d3b5c...e47e158. Read the comment docs.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 0dbffbd to 29f5d69 Compare November 2, 2020 06:32
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 29f5d69 to 3bbf35f Compare November 9, 2020 13:16
@renovate renovate bot changed the title Update react monorepo to v17 (major) fix(deps): update react monorepo to v17 (major) Nov 9, 2020
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3bbf35f to 8703e39 Compare November 23, 2020 09:06
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 5 times, most recently from b8e2d04 to 00106ff Compare December 21, 2020 13:02
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 00106ff to be8499c Compare December 28, 2020 06:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4467aff to 54bef19 Compare February 1, 2021 05:24
@renovate renovate bot changed the title fix(deps): update react monorepo to v17 (major) Update react monorepo to v17 (major) Feb 1, 2021
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4a8ccc2 to 8f73007 Compare February 15, 2021 05:14
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8f73007 to 934406f Compare February 22, 2021 08:37
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 2adad64 to ccd939c Compare March 15, 2021 04:18
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from add1b8e to 620f95b Compare March 29, 2021 04:22
@renovate renovate bot changed the title Update react monorepo to v17 (major) fix(deps): update react monorepo to v17 (major) Mar 29, 2021
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4630d0c to da9740c Compare April 5, 2021 08:39
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 5df62a3 to bb32ae3 Compare April 19, 2021 04:32
Copy link
Contributor Author

renovate bot commented Jun 24, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm.
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @edx/frontend-enterprise-utils@9.1.0
npm error Found: react@19.2.0
npm error node_modules/react
npm error   react@"19.2.0" from the root project
npm error   peer react@">=16.x" from @fortawesome/react-fontawesome@0.1.19
npm error   node_modules/@fortawesome/react-fontawesome
npm error     @fortawesome/react-fontawesome@"^0.1.14" from the root project
npm error   21 more (react-transition-group, @restart/context, ...)
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.12.0 || ^17.0.0" from @edx/frontend-enterprise-utils@9.1.0
npm error node_modules/@edx/frontend-enterprise-utils
npm error   @edx/frontend-enterprise-utils@"9.1.0" from the root project
npm error
npm error Conflicting peer dependency: react@17.0.2
npm error node_modules/react
npm error   peer react@"^16.12.0 || ^17.0.0" from @edx/frontend-enterprise-utils@9.1.0
npm error   node_modules/@edx/frontend-enterprise-utils
npm error     @edx/frontend-enterprise-utils@"9.1.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2025-10-06T05_06_31_701Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2025-10-06T05_06_31_701Z-debug-0.log

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1bd8808 to d5be079 Compare July 8, 2024 04:44
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from d5be079 to 529e608 Compare July 29, 2024 04:09
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 2b1824f to 6f412ac Compare August 12, 2024 04:23
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 6f412ac to 2a1d944 Compare August 19, 2024 06:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2a1d944 to 1c4b7a6 Compare August 26, 2024 06:30
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1c4b7a6 to e283f3b Compare September 9, 2024 04:23
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e283f3b to 1e34db7 Compare September 16, 2024 04:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1e34db7 to 2565e1d Compare September 23, 2024 06:34
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from ef0ec6d to 2f3664c Compare October 7, 2024 06:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2f3664c to d1a3c44 Compare October 14, 2024 06:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from d1a3c44 to c52e2a4 Compare November 4, 2024 06:10
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from c52e2a4 to 93879b9 Compare December 9, 2024 07:06
@renovate renovate bot changed the title fix(deps): update react monorepo to v18 (major) fix(deps): update react monorepo to v19 (major) Dec 9, 2024
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 93879b9 to 4125e1c Compare February 3, 2025 09:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 4125e1c to f54ab6e Compare February 17, 2025 06:01
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from aabfba5 to cd2d6b5 Compare March 3, 2025 05:43
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from cd2d6b5 to 63da2f8 Compare March 17, 2025 06:56
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 3a17b4f to 912d481 Compare April 7, 2025 05:31
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 912d481 to 789c028 Compare April 14, 2025 06:59
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 789c028 to f6f0af0 Compare May 19, 2025 06:14
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f6f0af0 to bd1cb13 Compare June 23, 2025 07:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from bd1cb13 to cca24b3 Compare August 11, 2025 06:01
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from cca24b3 to 6733f79 Compare September 29, 2025 05:14
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 6733f79 to 2d81fc9 Compare October 6, 2025 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants