react
react copied to clipboard
chore(deps-dev): bump react, react-dom, react-test-renderer and @types/react
Bumps react, react-dom, react-test-renderer and @types/react. These dependencies needed to be updated together.
Updates react from 17.0.2 to 18.1.0
Release notes
Sourced from react's releases.
18.1.0 (April 26, 2022)
React DOM
- Fix the false positive warning about
react-dom/clientwhen using UMD bundle. (@​alireza-molaeein #24274)- Fix
suppressHydrationWarningto work in production too. (@​gaearonin #24271)- Fix
componentWillUnmountfiring twice inside of Suspense. (@​acdlitein #24308)- Fix some transition updates being ignored. (
@​acdlitein #24353)- Fix
useDeferredValuecausing an infinite loop when passed an unmemoized value. (@​acdlitein #24247)- Fix throttling of revealing Suspense fallbacks. (
@​sunderlsin #24253)- Fix an inconsistency in whether the props object is the same between renders. (
@​Andaristand@​acdlitein #24421)- Fix a missing warning about a
setStateloop inuseEffect. (@​gaearonin #24298)- Fix a spurious hydration error. (
@​gnoffin #24404)- Warn when calling
setStateinuseInsertionEffect. (@​gaearonin #24295)- Ensure the reason for hydration errors is always displayed. (
@​gaearonin #24276)React DOM Server
- Fix escaping for the
bootstrapScriptContentcontents. (@​gnoffin #24385)- Significantly improve performance of
renderToPipeableStream. (@​gnoffin #24291)ESLint Plugin: React Hooks
- Fix false positive errors with a large number of branches. (
@​scyron6in #24287)- Don't consider a known dependency stable when the variable is reassigned. (
@​afzalsayed96in #24343)Use Subscription
- Replace the implementation with the
use-sync-external-storeshim. (@​gaearonin #24289)18.0.0 (March 29, 2022)
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:
createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.
... (truncated)
Changelog
Sourced from react's changelog.
18.1.0 (April 26, 2022)
React DOM
- Fix the false positive warning about
react-dom/clientwhen using UMD bundle. (@​alireza-molaeein #24274)- Fix
suppressHydrationWarningto work in production too. (@​gaearonin #24271)- Fix
componentWillUnmountfiring twice inside of Suspense. (@​acdlitein #24308)- Fix some transition updates being ignored. (
@​acdlitein #24353)- Fix
useDeferredValuecausing an infinite loop when passed an unmemoized value. (@​acdlitein #24247)- Fix throttling of revealing Suspense fallbacks. (
@​sunderlsin #24253)- Fix an inconsistency in whether the props object is the same between renders. (
@​Andaristand@​acdlitein #24421)- Fix a missing warning about a
setStateloop inuseEffect. (@​gaearonin #24298)- Fix a spurious hydration error. (
@​gnoffin #24404)- Warn when calling
setStateinuseInsertionEffect. (@​gaearonin #24295)- Ensure the reason for hydration errors is always displayed. (
@​gaearonin #24276)React DOM Server
- Fix escaping for the
bootstrapScriptContentcontents. (@​gnoffin #24385)- Significantly improve performance of
renderToPipeableStream. (@​gnoffin #24291)ESLint Plugin: React Hooks
- Fix false positive errors with a large number of branches. (
@​scyron6in #24287)- Don't consider a known dependency stable when the variable is reassigned. (
@​afzalsayed96in #24343)Use Subscription
- Replace the implementation with the
use-sync-external-storeshim. (@​gaearonin #24289)18.0.0 (March 29, 2022)
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:
createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.
... (truncated)
Commits
22edb9fReactversionfield should match package.json (#24445)4175f05Temporarily feature flag numeric fallback for symbols (#24401)e8f4a66Fix import in examplebb49abeUpdate some READMEs (#24290)7e3121eRemove unstable_createMutableSource from experimental build (#24209)34aa5cfUpdate local package.jsons for 1872a933dGate legacy hidden (#24047)d5f1b06[ServerContext] Flight support for ServerContext (#23244)1780659Move createRoot/hydrateRoot to react-dom/client (#23385)42f15b3[DevTools][Transition Tracing] onTransitionComplete and onTransitionStart imp...- Additional commits viewable in compare view
Updates react-dom from 17.0.2 to 18.1.0
Release notes
Sourced from react-dom's releases.
18.1.0 (April 26, 2022)
React DOM
- Fix the false positive warning about
react-dom/clientwhen using UMD bundle. (@​alireza-molaeein #24274)- Fix
suppressHydrationWarningto work in production too. (@​gaearonin #24271)- Fix
componentWillUnmountfiring twice inside of Suspense. (@​acdlitein #24308)- Fix some transition updates being ignored. (
@​acdlitein #24353)- Fix
useDeferredValuecausing an infinite loop when passed an unmemoized value. (@​acdlitein #24247)- Fix throttling of revealing Suspense fallbacks. (
@​sunderlsin #24253)- Fix an inconsistency in whether the props object is the same between renders. (
@​Andaristand@​acdlitein #24421)- Fix a missing warning about a
setStateloop inuseEffect. (@​gaearonin #24298)- Fix a spurious hydration error. (
@​gnoffin #24404)- Warn when calling
setStateinuseInsertionEffect. (@​gaearonin #24295)- Ensure the reason for hydration errors is always displayed. (
@​gaearonin #24276)React DOM Server
- Fix escaping for the
bootstrapScriptContentcontents. (@​gnoffin #24385)- Significantly improve performance of
renderToPipeableStream. (@​gnoffin #24291)ESLint Plugin: React Hooks
- Fix false positive errors with a large number of branches. (
@​scyron6in #24287)- Don't consider a known dependency stable when the variable is reassigned. (
@​afzalsayed96in #24343)Use Subscription
- Replace the implementation with the
use-sync-external-storeshim. (@​gaearonin #24289)18.0.0 (March 29, 2022)
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:
createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.
... (truncated)
Changelog
Sourced from react-dom's changelog.
18.1.0 (April 26, 2022)
React DOM
- Fix the false positive warning about
react-dom/clientwhen using UMD bundle. (@​alireza-molaeein #24274)- Fix
suppressHydrationWarningto work in production too. (@​gaearonin #24271)- Fix
componentWillUnmountfiring twice inside of Suspense. (@​acdlitein #24308)- Fix some transition updates being ignored. (
@​acdlitein #24353)- Fix
useDeferredValuecausing an infinite loop when passed an unmemoized value. (@​acdlitein #24247)- Fix throttling of revealing Suspense fallbacks. (
@​sunderlsin #24253)- Fix an inconsistency in whether the props object is the same between renders. (
@​Andaristand@​acdlitein #24421)- Fix a missing warning about a
setStateloop inuseEffect. (@​gaearonin #24298)- Fix a spurious hydration error. (
@​gnoffin #24404)- Warn when calling
setStateinuseInsertionEffect. (@​gaearonin #24295)- Ensure the reason for hydration errors is always displayed. (
@​gaearonin #24276)React DOM Server
- Fix escaping for the
bootstrapScriptContentcontents. (@​gnoffin #24385)- Significantly improve performance of
renderToPipeableStream. (@​gnoffin #24291)ESLint Plugin: React Hooks
- Fix false positive errors with a large number of branches. (
@​scyron6in #24287)- Don't consider a known dependency stable when the variable is reassigned. (
@​afzalsayed96in #24343)Use Subscription
- Replace the implementation with the
use-sync-external-storeshim. (@​gaearonin #24289)18.0.0 (March 29, 2022)
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:
createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.
... (truncated)
Commits
bd4784cRevert #24236 (Don't recreate the same fallback on the client if hydrating su...9ae80d6Suppress hydration warnings when a preceding sibling suspends (#24404)0dc4e66Land enableClientRenderFallbackOnHydrationMismatch (#24410)3547729Land enableSelectiveHydration flag (#24406)392808aLand enableClientRenderFallbackOnTextMismatch flag (#24405)a6d53f3Revert "Clean up Selective Hydration / Event Replay flag (#24156)" (#24402)2bf5ebaexplain the rationale for the chosen escaping implemenation in a comment (#24...d40dc73Escape bootstrapScriptContent for javascript embedding into HTML (#24385)ea7b2ecRemove wrong return pointer warning8dcedbaAdd fallback shim for AbortController (#24285)- Additional commits viewable in compare view
Updates react-test-renderer from 17.0.2 to 18.1.0
Release notes
Sourced from react-test-renderer's releases.
18.1.0 (April 26, 2022)
React DOM
- Fix the false positive warning about
react-dom/clientwhen using UMD bundle. (@​alireza-molaeein #24274)- Fix
suppressHydrationWarningto work in production too. (@​gaearonin #24271)- Fix
componentWillUnmountfiring twice inside of Suspense. (@​acdlitein #24308)- Fix some transition updates being ignored. (
@​acdlitein #24353)- Fix
useDeferredValuecausing an infinite loop when passed an unmemoized value. (@​acdlitein #24247)- Fix throttling of revealing Suspense fallbacks. (
@​sunderlsin #24253)- Fix an inconsistency in whether the props object is the same between renders. (
@​Andaristand@​acdlitein #24421)- Fix a missing warning about a
setStateloop inuseEffect. (@​gaearonin #24298)- Fix a spurious hydration error. (
@​gnoffin #24404)- Warn when calling
setStateinuseInsertionEffect. (@​gaearonin #24295)- Ensure the reason for hydration errors is always displayed. (
@​gaearonin #24276)React DOM Server
- Fix escaping for the
bootstrapScriptContentcontents. (@​gnoffin #24385)- Significantly improve performance of
renderToPipeableStream. (@​gnoffin #24291)ESLint Plugin: React Hooks
- Fix false positive errors with a large number of branches. (
@​scyron6in #24287)- Don't consider a known dependency stable when the variable is reassigned. (
@​afzalsayed96in #24343)Use Subscription
- Replace the implementation with the
use-sync-external-storeshim. (@​gaearonin #24289)18.0.0 (March 29, 2022)
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:
createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.
... (truncated)
Changelog
Sourced from react-test-renderer's changelog.
18.1.0 (April 26, 2022)
React DOM
- Fix the false positive warning about
react-dom/clientwhen using UMD bundle. (@​alireza-molaeein #24274)- Fix
suppressHydrationWarningto work in production too. (@​gaearonin #24271)- Fix
componentWillUnmountfiring twice inside of Suspense. (@​acdlitein #24308)- Fix some transition updates being ignored. (
@​acdlitein #24353)- Fix
useDeferredValuecausing an infinite loop when passed an unmemoized value. (@​acdlitein #24247)- Fix throttling of revealing Suspense fallbacks. (
@​sunderlsin #24253)- Fix an inconsistency in whether the props object is the same between renders. (
@​Andaristand@​acdlitein #24421)- Fix a missing warning about a
setStateloop inuseEffect. (@​gaearonin #24298)- Fix a spurious hydration error. (
@​gnoffin #24404)- Warn when calling
setStateinuseInsertionEffect. (@​gaearonin #24295)- Ensure the reason for hydration errors is always displayed. (
@​gaearonin #24276)React DOM Server
- Fix escaping for the
bootstrapScriptContentcontents. (@​gnoffin #24385)- Significantly improve performance of
renderToPipeableStream. (@​gnoffin #24291)ESLint Plugin: React Hooks
- Fix false positive errors with a large number of branches. (
@​scyron6in #24287)- Don't consider a known dependency stable when the variable is reassigned. (
@​afzalsayed96in #24343)Use Subscription
- Replace the implementation with the
use-sync-external-storeshim. (@​gaearonin #24289)18.0.0 (March 29, 2022)
Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:
createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.
... (truncated)
Commits
6bf3deeUpgrade react-shallow-renderer to support react 18 (#24442)34aa5cfUpdate local package.jsons for 182e0d86dAllow updating dehydrated root at lower priority without forcing client rende...832e298Revert accdientally merged PR (#24081)c8e4789Pass children to hydration root constructor1ad8d81Remove object-assign polyfill (#23351)1fb0d06[Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276)efd8f64Resolve default onRecoverableError at root init (#23264)0dedfccUpdate the exports field (#23257)848e802Add onRecoverableError option to hydrateRoot, createRoot (#23207)- Additional commits viewable in compare view
Updates @types/react from 17.0.14 to 18.0.12
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)