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

fix(deps): update react monorepo to v19 (major) #27

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 31, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (source) 17.0.2 -> 19.0.0 age adoption passing confidence
react-dom (source) 17.0.2 -> 19.0.0 age adoption passing confidence

Release Notes

facebook/react (react)

v19.0.0

Compare Source

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)

v19.0.0

Compare Source

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 - "* 0-3 1 * *" 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.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 6c89341 to a386462 Compare April 26, 2022 22:21
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from a386462 to abc7c80 Compare June 18, 2022 23:07
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from abc7c80 to b37f17f Compare March 31, 2023 16:11
@socket-security
Copy link

socket-security bot commented Mar 31, 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↗︎

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from b37f17f to ca09430 Compare May 8, 2023 04:37
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from ca09430 to d9143b3 Compare December 25, 2023 04:02
Copy link

socket-security bot commented Dec 25, 2023

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

Package New capabilities Transitives Size Publisher
npm/@babel/helper-replace-supers@7.20.7 None +1 85.3 kB nicolo-ribaudo
npm/@babel/helper-skip-transparent-expression-wrappers@7.20.0 None 0 5.88 kB nicolo-ribaudo
npm/@babel/plugin-syntax-decorators@7.21.0 None 0 11.8 kB nicolo-ribaudo
npm/@babel/plugin-syntax-flow@7.21.4 None 0 5.42 kB nicolo-ribaudo
npm/@babel/plugin-transform-function-name@7.18.9 None 0 3.68 kB nicolo-ribaudo
npm/@babel/plugin-transform-literals@7.18.9 None 0 3.04 kB nicolo-ribaudo
npm/@babel/plugin-transform-member-expression-literals@7.18.6 None 0 3.28 kB nicolo-ribaudo
npm/@babel/plugin-transform-modules-amd@7.20.11 None 0 20 kB nicolo-ribaudo
npm/@babel/plugin-transform-modules-commonjs@7.21.2 None 0 31.3 kB nicolo-ribaudo
npm/@babel/plugin-transform-modules-systemjs@7.20.11 None 0 64.2 kB nicolo-ribaudo
npm/@babel/plugin-transform-modules-umd@7.18.6 None 0 9.49 kB nicolo-ribaudo
npm/@babel/plugin-transform-named-capturing-groups-regex@7.20.5 None +1 31.4 kB nicolo-ribaudo
npm/@babel/plugin-transform-new-target@7.18.6 None 0 4.79 kB nicolo-ribaudo
npm/@babel/plugin-transform-object-super@7.18.6 None 0 3.68 kB nicolo-ribaudo
npm/@babel/plugin-transform-property-literals@7.18.6 None 0 3.16 kB nicolo-ribaudo
npm/@babel/plugin-transform-react-jsx-development@7.18.6 None 0 2.66 kB nicolo-ribaudo
npm/@babel/plugin-transform-react-jsx@7.21.0 None +1 83.2 kB nicolo-ribaudo
npm/@babel/plugin-transform-react-pure-annotations@7.18.6 None 0 4.02 kB nicolo-ribaudo
npm/@babel/plugin-transform-regenerator@7.20.5 None 0 6.04 kB nicolo-ribaudo
npm/@babel/plugin-transform-reserved-words@7.18.6 None 0 2.97 kB nicolo-ribaudo
npm/@babel/plugin-transform-shorthand-properties@7.18.6 None 0 3.96 kB nicolo-ribaudo
npm/@babel/plugin-transform-spread@7.20.7 None 0 20.8 kB nicolo-ribaudo
npm/@babel/plugin-transform-sticky-regex@7.18.6 None 0 3.1 kB nicolo-ribaudo
npm/@babel/plugin-transform-template-literals@7.18.9 None 0 6.24 kB nicolo-ribaudo
npm/@babel/plugin-transform-typeof-symbol@7.18.9 None 0 4.92 kB nicolo-ribaudo
npm/@babel/plugin-transform-typescript@7.21.3 None 0 124 kB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-escapes@7.18.10 None 0 6.01 kB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-regex@7.18.6 None 0 2.96 kB nicolo-ribaudo
npm/@babel/preset-modules@0.1.5 None 0 38.8 kB developit
npm/@humanwhocodes/object-schema@1.2.1 None 0 49.4 kB nzakas
npm/@istanbuljs/load-nyc-config@1.1.0 environment, filesystem +1 18.3 kB coreyfarrell
npm/@istanbuljs/schema@0.1.3 None 0 17.2 kB coreyfarrell
npm/@jest/console@26.6.2 None 0 21.4 kB simenb
npm/@jest/fake-timers@26.6.2 None 0 24.6 kB simenb
npm/@jest/globals@26.6.2 None 0 3.38 kB simenb
npm/@jest/reporters@26.6.2 environment, unsafe Transitive: filesystem +2 185 kB simenb
npm/@jest/source-map@26.6.2 None 0 5.41 kB simenb
npm/@svgr/babel-preset@5.5.0 None 0 10.6 kB neoziro
npm/@svgr/hast-util-to-babel-ast@5.5.0 None 0 34.4 kB neoziro
npm/@types/babel__generator@7.6.4 None 0 11.7 kB types
npm/@types/babel__template@7.4.1 None 0 6.93 kB types
npm/@types/estree@1.0.0 None 0 25.7 kB types
npm/@types/istanbul-lib-coverage@2.0.4 None 0 5.76 kB types
npm/@types/istanbul-reports@3.0.1 None 0 7.42 kB types
npm/@types/json5@0.0.29 None 0 3 kB types
npm/@types/prettier@2.7.2 None 0 49.5 kB types
npm/@types/stack-utils@2.0.1 None 0 6.97 kB types
npm/@types/uglify-js@3.17.1 None 0 20.9 kB types
npm/@types/webpack-sources@3.2.0 None 0 12.1 kB types
npm/@types/yargs@15.0.15 None 0 52.6 kB types
npm/@typescript-eslint/visitor-keys@4.33.0 None 0 31.4 kB jameshenry
npm/acorn-jsx@5.3.2 None 0 24.4 kB rreverser
npm/ansi-colors@4.1.3 environment 0 26.1 kB jonschlinkert
npm/babel-plugin-jest-hoist@26.6.2 None 0 13.3 kB simenb
npm/babel-plugin-polyfill-corejs2@0.3.3 None 0 80.5 kB nicolo-ribaudo
npm/babel-plugin-polyfill-corejs3@0.6.0 None 0 170 kB nicolo-ribaudo
npm/babel-plugin-polyfill-regenerator@0.4.1 None 0 8.65 kB nicolo-ribaudo
npm/babel-preset-current-node-syntax@1.0.1 eval 0 5.46 kB nicolo-ribaudo
npm/call-bind@1.0.2 None 0 14.7 kB ljharb
npm/camel-case@4.1.2 None 0 14.3 kB blakeembrey
npm/char-regex@1.0.2 None 0 4.96 kB richienb
npm/cjs-module-lexer@0.6.0 None 0 128 kB guybedford
npm/clean-css@4.2.4 environment, filesystem, network 0 438 kB jakub.pawlowicz
npm/collect-v8-coverage@1.0.1 unsafe 0 4.14 kB simenb
npm/commondir@1.0.1 None 0 4.79 kB substack
npm/core-js-compat@3.29.1 None 0 658 kB zloirock
npm/cosmiconfig@7.1.0 filesystem 0 92 kB d-fischer
npm/deep-equal@2.2.0 None +1 91.8 kB ljharb
npm/deep-is@0.1.4 None 0 8.11 kB thlorenz
npm/deepmerge@4.3.1 None 0 31.2 kB tehshrike
npm/emittery@0.7.2 None 0 34.8 kB sindresorhus
npm/emojis-list@3.0.0 None 0 53.6 kB kikobeats
npm/es-abstract@1.21.2 Transitive: eval +2 2.77 MB ljharb
npm/es-shim-unscopables@1.0.0 None 0 10 kB ljharb
npm/esprima@4.0.1 None 0 314 kB ariya
npm/exit@0.1.2 None 0 59.8 kB cowboy
npm/fast-levenshtein@2.0.6 None 0 9.44 kB hiddentao
npm/flat-cache@3.0.4 filesystem 0 30 kB royriojas
npm/internal-slot@1.0.5 None 0 19.5 kB ljharb
npm/istanbul-lib-instrument@5.2.1 None 0 70.2 kB oss-bot
npm/jest-changed-files@26.6.2 environment 0 14.2 kB simenb
npm/jest-config@26.6.3 filesystem 0 129 kB simenb
npm/jest-diff@26.6.2 None 0 85.5 kB simenb
npm/jest-docblock@26.0.0 None 0 8.89 kB simenb
npm/jest-get-type@26.3.0 None 0 3.51 kB simenb
npm/jest-haste-map@26.6.2 environment, filesystem, shell +1 126 kB simenb
npm/jest-leak-detector@26.6.2 unsafe 0 5.66 kB simenb
npm/jest-mock@26.6.2 None 0 35.4 kB simenb
npm/jest-resolve-dependencies@26.6.3 None 0 8.7 kB simenb
npm/jest-validate@26.6.2 None 0 32 kB simenb
npm/language-subtag-registry@0.3.22 None 0 1.53 MB mcg
npm/lodash.truncate@4.4.2 None 0 19.8 kB jdalton
npm/make-dir@2.1.0 filesystem 0 9.2 kB sindresorhus
npm/merge-stream@2.0.0 None 0 4.31 kB stevemao
npm/object.getownpropertydescriptors@2.1.5 None 0 20.8 kB ljharb
npm/p-each-series@2.2.0 None 0 6.34 kB sindresorhus
npm/param-case@3.0.4 None 0 10.2 kB blakeembrey
npm/parent-module@1.0.1 None 0 3.92 kB sindresorhus
npm/picocolors@0.2.1 environment 0 5.81 kB alexeyraspopov
npm/pirates@4.0.5 unsafe 0 13.4 kB danez
npm/pkg-dir@3.0.0 None 0 3.42 kB sindresorhus
npm/prelude-ls@1.2.1 None 0 36.7 kB gkz
npm/query-string@4.3.4 None 0 11.2 kB sindresorhus
npm/react-dom@19.0.0 None 0 0 B
npm/react@19.0.0 None 0 0 B
npm/read-pkg@5.2.0 filesystem 0 6.05 kB sindresorhus
npm/relateurl@0.2.7 None 0 31.4 kB stevenvachon
npm/renderkid@2.0.7 None 0 169 kB ariaminaei
npm/resolve-cwd@3.0.0 None 0 4.98 kB sindresorhus
npm/resolve-from@4.0.0 filesystem, unsafe 0 4.64 kB sindresorhus
npm/scheduler@0.25.0 environment 0 84.2 kB fb, gnoff, react-bot, ...1 more
npm/side-channel@1.0.4 None +1 109 kB ljharb
npm/slice-ansi@4.0.0 None 0 6.43 kB sindresorhus
npm/sort-keys@1.1.2 None 0 3.58 kB sindresorhus
npm/strip-bom@3.0.0 None 0 3 kB sindresorhus
npm/svg-parser@2.0.4 None 0 48.9 kB trysound
npm/svgo@1.3.2 filesystem 0 406 kB greli
npm/test-exclude@6.0.0 None 0 23.6 kB coreyfarrell
npm/tslib@1.14.1 None 0 34 kB typescript-bot
npm/uri-js@4.4.1 None 0 470 kB garycourt
npm/word-wrap@1.2.3 None 0 10.6 kB jonschlinkert

🚮 Removed packages: npm/async-limiter@1.0.1, npm/asynckit@0.4.0, npm/available-typed-arrays@1.0.5, npm/base64-js@1.5.1, npm/bn.js@5.2.1, npm/browserify-des@1.0.2, npm/buffer-xor@1.0.3, npm/color-convert@2.0.1, npm/color-name@1.1.4, npm/combined-stream@1.0.8, npm/content-disposition@0.5.4, npm/cookie-signature@1.0.6, npm/cookie@0.5.0, npm/create-ecdh@4.0.4, npm/create-hmac@1.1.7, npm/delayed-stream@1.0.0, npm/des.js@1.0.1, npm/destroy@1.2.0, npm/diffie-hellman@5.0.3, npm/ee-first@1.1.1, npm/encodeurl@1.0.2, npm/es-to-primitive@1.2.1, npm/escape-html@1.0.3, npm/etag@1.8.1, npm/forwarded@0.2.0, npm/fresh@0.5.2, npm/function.prototype.name@1.1.5, npm/functions-have-names@1.2.3, npm/get-caller-file@2.0.5, npm/get-symbol-description@1.0.0, npm/has-bigints@1.0.2, npm/has-property-descriptors@1.0.0, npm/has-tostringtag@1.0.0, npm/hash-base@3.1.0, npm/hash.js@1.1.7, npm/hmac-drbg@1.0.1, npm/http-errors@2.0.0, npm/ieee754@1.2.1, npm/is-bigint@1.0.4, npm/is-boolean-object@1.1.2, npm/is-negative-zero@2.0.2, npm/is-number-object@1.0.7, npm/is-plain-obj@1.1.0, npm/is-shared-array-buffer@1.0.2, npm/is-weakref@1.0.2, npm/md5.js@1.3.5, npm/media-typer@0.3.0, npm/merge-descriptors@1.0.1, npm/methods@1.1.2, npm/mime-db@1.52.0, npm/minimalistic-crypto-utils@1.0.1, npm/next-tick@1.1.0, npm/object-keys@1.1.1, npm/on-finished@2.4.1, npm/p-finally@1.0.0, npm/path-to-regexp@0.1.7, npm/pbkdf2@3.1.2, npm/performance-now@2.1.0, npm/process@0.11.10, npm/public-encrypt@4.0.3, npm/pump@3.0.0, npm/randombytes@2.1.0, npm/randomfill@1.0.4, npm/raw-body@2.5.1, npm/react-dom@17.0.2, npm/react@17.0.2, npm/require-directory@2.1.1, npm/scheduler@0.20.2, npm/serve-static@1.15.0, npm/setimmediate@1.0.5, npm/setprototypeof@1.2.0, npm/statuses@2.0.1, npm/strict-uri-encode@1.1.0, npm/toidentifier@1.0.1, npm/type-detect@4.0.8, npm/type-is@1.6.18, npm/type@1.2.0, npm/unbox-primitive@1.0.2, npm/utils-merge@1.0.1, npm/vary@1.1.2, npm/xtend@4.0.2

View full report↗︎

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 30bb5fe to af4717b Compare April 26, 2024 19:45
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from af4717b to 6780349 Compare December 5, 2024 20:05
@renovate renovate bot changed the title fix(deps): update react monorepo to v18 (major) fix(deps): update react monorepo to v19 (major) Dec 5, 2024
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