Skip to content
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

chore(deps): update react monorepo to v18 (major) #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 31, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/react-dom (source) ^17.0.11 -> ^18.0.0 age adoption passing confidence
react (source) 17.0.2 -> 18.3.1 age adoption passing confidence
react-dom (source) 17.0.2 -> 18.3.1 age adoption passing confidence

Release Notes

facebook/react (react)

v18.3.1

Compare Source

v18.3.0

Compare Source

v18.2.0

Compare Source

React DOM
React DOM Server
Server Components (Experimental)

v18.1.0

Compare Source

React DOM
React DOM Server
ESLint Plugin: React Hooks
Use Subscription

v18.0.0

Compare Source

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
  • useId is 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.
  • startTransition and useTransition let 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).
  • useDeferredValue lets 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.
  • useSyncExternalStore is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for useEffect when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.
  • useInsertionEffect is 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 to render or unmount. Use it instead of ReactDOM.render. New features in React 18 don't work without it.
  • hydrateRoot: New method to hydrate a server rendered application. Use it instead of ReactDOM.hydrate in conjunction with the new React DOM Server APIs. New features in React 18 don't work without it.

Both createRoot and hydrateRoot accept a new option called onRecoverableError in case you want to be notified when React recovers from errors during rendering or hydration for logging. By default, React will use reportError, or console.error in the older browsers.

React DOM Server

These new APIs are now exported from react-dom/server and have full support for streaming Suspense on the server:

  • renderToPipeableStream: for streaming in Node environments.
  • renderToReadableStream: for modern edge runtime environments, such as Deno and Cloudflare workers.

The existing renderToString method keeps working but is discouraged.

facebook/react (react-dom)

v18.3.1

Compare Source

v18.3.0

Compare Source

v18.2.0

Compare Source

React DOM
React DOM Server
Server Components (Experimental)

v18.1.0

Compare Source

React DOM
React DOM Server
ESLint Plugin: React Hooks
Use Subscription

v18.0.0

Compare Source

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
  • useId is 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.
  • startTransition and useTransition let 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).
  • useDeferredValue lets 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.
  • useSyncExternalStore is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for useEffect when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.
  • useInsertionEffect is 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 to render or unmount. Use it instead of ReactDOM.render. New features in React 18 don't work without it.
  • hydrateRoot: New method to hydrate a server rendered application. Use it instead of ReactDOM.hydrate in conjunction with the new React DOM Server APIs. New features in React 18 don't work without it.

Both createRoot and hydrateRoot accept a new option called onRecoverableError in case you want to be notified when React recovers from errors during rendering or hydration for logging. By default, React will use reportError, or console.error in the older browsers.

React DOM Server

These new APIs are now exported from react-dom/server and have full support for streaming Suspense on the server:

  • renderToPipeableStream: for streaming in Node environments.
  • renderToReadableStream: for modern edge runtime environments, such as Deno and Cloudflare workers.

The existing renderToString method keeps working but is discouraged.


Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" in timezone Europe/Paris, Automerge - At any time (no schedule defined).

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


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

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

@github-actions github-actions bot temporarily deployed to recherche-entreprises-renovate-major-react-monorepo-1o9y7x May 31, 2022 23:47 Inactive
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 29903dd to 7fb73b2 Compare June 14, 2022 20:21
@github-actions github-actions bot temporarily deployed to recherche-entreprises-renovate-major-react-monorepo-1o9y7x June 14, 2022 20:27 Inactive
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 7fb73b2 to f12cc7a Compare October 5, 2022 20:55
@github-actions github-actions bot temporarily deployed to recherche-entreprises-renovate-major-react-monorepo-1o9y7x October 5, 2022 20:59 Inactive
@renovate renovate bot changed the title fix(deps): update react monorepo to v18 (major) chore(deps): update react monorepo to v18 (major) Mar 24, 2023
@socket-security
Copy link

socket-security bot commented May 30, 2023

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

Copy link

socket-security bot commented Jan 22, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] environment, filesystem +1 234 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.02 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 13.5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 434 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 27 kB nicolo-ribaudo
npm/@babel/[email protected] unsafe 0 221 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.32 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 55 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.66 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.96 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 32.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.96 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 15.4 kB nicolo-ribaudo
npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1 None 0 7.74 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 7.45 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.34 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 40 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.65 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.22 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.42 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.52 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.41 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.37 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.21 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 33.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.17 kB nicolo-ribaudo
npm/@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2 None 0 16.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.46 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.74 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 12.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.47 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.62 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.42 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.14 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.82 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.55 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 7.97 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.55 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 88.1 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 87.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 22.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 81.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.1 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.11 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.95 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 17.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 44.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.63 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.94 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 20.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 42.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 65.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 25.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.87 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.23 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 64.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.72 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 23.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 12.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.98 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.96 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.8 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 80 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 8.34 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.82 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.28 kB nicolo-ribaudo
npm/@babel/[email protected] unsafe 0 37.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 7.11 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.64 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 15.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 132 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 13.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.94 kB nicolo-ribaudo
npm/@babel/[email protected] environment, filesystem 0 148 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 38.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 12.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21.5 kB nicolo-ribaudo
npm/@babel/[email protected] None +1 240 kB nicolo-ribaudo
npm/@cnakazawa/[email protected] filesystem 0 25.1 kB cpojer
npm/@csstools/[email protected] None 0 63.2 kB jonathantneal
npm/@csstools/[email protected] None 0 33 kB jonathantneal
npm/@gar/[email protected] None 0 4.2 kB gar
npm/@hapi/[email protected] None 0 78.6 kB hueniverse
npm/@hapi/[email protected] None 0 6 kB hueniverse
npm/@hapi/[email protected] None 0 50.7 kB hueniverse
npm/@hapi/[email protected] network 0 194 kB hueniverse
npm/@hapi/[email protected] None 0 9.19 kB hueniverse
npm/@jest/[email protected] None 0 21.4 kB simenb
npm/@jest/[email protected] unsafe Transitive: environment +1 197 kB simenb
npm/@jest/[email protected] None 0 13 kB simenb
npm/@jest/[email protected] None 0 24.6 kB simenb
npm/@jest/[email protected] None 0 3.38 kB simenb
npm/@jest/[email protected] environment, unsafe Transitive: shell +2 225 kB simenb
npm/@jest/[email protected] None 0 5.41 kB simenb
npm/@jest/[email protected] None 0 16.1 kB simenb
npm/@jest/[email protected] None 0 9.99 kB simenb
npm/@jest/[email protected] None 0 38.7 kB simenb
npm/@jest/[email protected] None 0 25.5 kB simenb
npm/@npmcli/[email protected] filesystem 0 41.9 kB nlf
npm/@npmcli/[email protected] filesystem 0 7.89 kB nlf
npm/@pmmmwh/[email protected] environment 0 105 kB pmmmwh
npm/@popperjs/[email protected] None 0 1.46 MB fezvrasta
npm/@react-aria/[email protected] environment 0 79.7 kB devongovett
npm/@restart/[email protected] None 0 22.8 kB taion
npm/@restart/[email protected] None 0 197 kB kytsang
npm/@restart/[email protected] None +1 392 kB kytsang
npm/@rollup/[email protected] filesystem 0 54.9 kB shellscape
npm/@rollup/[email protected] None 0 21.5 kB shellscape
npm/@rollup/[email protected] None +1 65.5 kB shellscape
npm/@sinonjs/[email protected] environment, eval 0 156 kB mrgnrdrck
npm/@surma/[email protected] eval, filesystem 0 77.8 kB surma
npm/@svgr/[email protected] None 0 5.86 kB neoziro
npm/@svgr/[email protected] None 0 4.3 kB neoziro
npm/@svgr/[email protected] None 0 3.58 kB neoziro
npm/@svgr/[email protected] None 0 4.75 kB neoziro
npm/@svgr/[email protected] None 0 7.98 kB neoziro
npm/@svgr/[email protected] None 0 4.46 kB neoziro
npm/@svgr/[email protected] None 0 7.32 kB neoziro
npm/@svgr/[email protected] None 0 13.8 kB neoziro
npm/@svgr/[email protected] None 0 10.6 kB neoziro
npm/@svgr/[email protected] None 0 20.6 kB neoziro
npm/@svgr/[email protected] None 0 34.4 kB neoziro
npm/@svgr/[email protected] None 0 9.37 kB neoziro
npm/@svgr/[email protected] None 0 10.8 kB neoziro
npm/@svgr/[email protected] None 0 14 kB neoziro
npm/@types/[email protected] None 0 165 kB types
npm/@types/[email protected] None 0 25.7 kB types
npm/@types/[email protected] None 0 6.61 kB types
npm/@types/[email protected] None 0 9.39 kB types
npm/@types/[email protected] None 0 4.26 kB types
npm/@types/[email protected] None 0 12.5 kB types
npm/@types/[email protected] None 0 2.03 MB types
npm/@types/[email protected] None 0 5.81 kB types
npm/@types/[email protected] None 0 2.95 kB types
npm/@types/[email protected] None 0 6.55 kB types
npm/@types/[email protected] None 0 32 kB types
npm/@types/[email protected] None 0 18.5 kB types
npm/@types/[email protected] None 0 178 kB types
npm/@types/[email protected] None 0 6.59 kB types
npm/@types/[email protected] None 0 5.52 kB types
npm/@types/[email protected] None 0 6.82 kB types
npm/@types/[email protected] None 0 17.9 kB types
npm/@types/[email protected] None 0 20.4 kB types
npm/@types/[email protected] None 0 2.71 kB types
npm/@types/[email protected] None 0 11.7 kB types
npm/@types/[email protected] None 0 111 kB types
npm/@types/[email protected] None 0 52.5 kB types
npm/@typescript-eslint/[email protected] None 0 2.36 MB jameshenry
npm/@typescript-eslint/[email protected] None 0 422 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 71.5 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 560 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 145 kB jameshenry
npm/@typescript-eslint/[email protected] environment, filesystem 0 513 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 31.4 kB jameshenry
npm/@webassemblyjs/[email protected] None 0 180 kB xtuc
npm/@webassemblyjs/[email protected] None 0 6.37 kB xtuc
npm/@webassemblyjs/[email protected] None 0 6.1 kB xtuc
npm/@webassemblyjs/[email protected] None 0 8.7 kB xtuc
npm/@webassemblyjs/[email protected] None 0 4.28 kB xtuc
npm/@webassemblyjs/[email protected] None 0 9.07 kB xtuc
npm/@webassemblyjs/[email protected] None 0 29.8 kB xtuc
npm/@webassemblyjs/[email protected] None 0 24.2 kB xtuc
npm/@webassemblyjs/[email protected] None 0 19 kB xtuc
npm/@webassemblyjs/[email protected] None 0 5.19 kB xtuc
npm/@webassemblyjs/[email protected] None 0 46.1 kB xtuc
npm/@webassemblyjs/[email protected] None 0 11.2 kB xtuc
npm/@webassemblyjs/[email protected] None 0 29.4 kB xtuc
npm/@webassemblyjs/[email protected] None 0 23.9 kB xtuc
npm/@webassemblyjs/[email protected] None 0 9.34 kB xtuc
npm/@webassemblyjs/[email protected] None 0 122 kB xtuc
npm/@webassemblyjs/[email protected] None 0 137 kB xtuc
npm/@webassemblyjs/[email protected] None 0 37.3 kB xtuc
npm/@xtuc/[email protected] None 0 8.57 kB xtuc
npm/@xtuc/[email protected] None 0 190 kB xtuc
npm/[email protected] environment, filesystem, shell 0 13.4 kB fengmk2
npm/[email protected] filesystem 0 38.7 kB bholloway
npm/[email protected] None 0 41.7 kB esp
npm/[email protected] None 0 72.9 kB esp
npm/[email protected] None 0 6.4 kB trysound
npm/[email protected] None 0 20 kB tjatse
npm/[email protected] None 0 8.18 kB iarna
npm/[email protected] None 0 192 kB jessebeach
npm/[email protected] None 0 6.63 kB schtoeffel
npm/[email protected] None 0 7.9 kB jonschlinkert
npm/[email protected] None 0 6.88 kB jonschlinkert
npm/[email protected] None 0 6.66 kB jonschlinkert
npm/[email protected] None 0 6.24 kB blakeembrey
npm/[email protected] None 0 3.57 kB sindresorhus
npm/[email protected] None 0 7.16 kB jonschlinkert
npm/[email protected] None 0 3.19 kB sindresorhus

🚮 Removed packages: npm/@babel/[email protected], npm/@koa/[email protected], npm/@sindresorhus/[email protected], npm/@szmarczak/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants