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 dependency react to v18 #54

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 1, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (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.


Configuration

📅 Schedule: Branch creation - "every weekend" in timezone Asia/Shanghai, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 305f853 to d15cb00 Compare April 5, 2022 18:14
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from d15cb00 to 1f6dec1 Compare April 16, 2022 15:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1f6dec1 to 48a0aff Compare April 26, 2022 23:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 48a0aff to c0aece0 Compare May 12, 2022 12:03
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 7cac3dd to b995396 Compare June 20, 2022 21:35
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from b995396 to 3ba2372 Compare June 25, 2022 21:00
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3ba2372 to bb873ae Compare July 5, 2022 02:20
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from bb873ae to 7a3d4d6 Compare July 24, 2022 00:05
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 7a3d4d6 to 0c264f7 Compare July 31, 2022 16:40
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 0c264f7 to 129be3e Compare August 12, 2022 17:43
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 129be3e to 1ee0f78 Compare August 30, 2022 01:10
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1ee0f78 to c54d68a Compare September 11, 2022 18:08
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from c54d68a to 95c45d8 Compare September 18, 2022 18:31
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 95c45d8 to 7623ad3 Compare October 18, 2022 22:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from bd230ab to 2a72495 Compare October 30, 2022 15:24
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 45558a8 to 0ba205e Compare November 6, 2022 14:20
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 0ba205e to b241df5 Compare November 11, 2022 17:51
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from b241df5 to 7a7a647 Compare November 18, 2022 22:35
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from c672b54 to ec6d1a5 Compare December 2, 2022 21:07
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from f44f078 to 933c488 Compare December 10, 2022 19:37
@renovate renovate bot changed the title chore(deps): update dependency react to v18 Update dependency react to v18 Dec 17, 2022
@renovate renovate bot changed the title Update dependency react to v18 chore(deps): update dependency react to v18 Dec 17, 2022
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 555dffb to 8726535 Compare December 25, 2022 13:34
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8726535 to 3e16128 Compare January 7, 2023 18:41
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3e16128 to afb9e26 Compare January 13, 2023 21:39
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 377983b to 7cc687d Compare January 27, 2023 21:43
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 72c9a74 to e2054f1 Compare February 11, 2023 13:02
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e2054f1 to 78f69ff Compare February 17, 2023 20:37
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 78f69ff to 0ceaefa Compare March 4, 2023 08:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 0ceaefa to 953d5ee Compare April 28, 2024 18:28
Copy link
Contributor Author

renovate bot commented Apr 28, 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: pnpm-lock.yaml
 WARN  The "store" setting has been renamed to "store-dir". Please use the new name.
Scope: all 2 projects
 WARN  GET https://registry.npmjs.org/@babel%2Fcore error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel%2Fruntime error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/babel-plugin-module-resolver error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/metro-react-native-babel-preset error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/react error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/react-native error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@types/react/-/react-17.0.17.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@types/react-native/-/react-native-0.64.13.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@youjinbu/eslint-config/-/eslint-config-0.10.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@youjinbu/prettier-config/-/prettier-config-0.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/pod-install/-/pod-install-0.1.38.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/react-native/-/react-native-0.71.3.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/react-native-builder-bob/-/react-native-builder-bob-0.20.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel%2Fcore error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@babel%2Fruntime error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/babel-plugin-module-resolver error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/metro-react-native-babel-preset error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/react error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/react-native error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@types/react/-/react-17.0.17.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@types/react-native/-/react-native-0.64.13.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@youjinbu/eslint-config/-/eslint-config-0.10.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@youjinbu/prettier-config/-/prettier-config-0.0.1.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/pod-install/-/pod-install-0.1.38.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/react-native/-/react-native-0.71.3.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/react-native-builder-bob/-/react-native-builder-bob-0.20.4.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
undefined
/tmp/renovate/repos/github/youjinbu/react-native-baidu-mtj/example:
 ERR_PNPM_META_FETCH_FAIL  GET https://registry.npmjs.org/@babel%2Fcore: Value of "this" must be of type URLSearchParams
undefined

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 953d5ee to 08eb3c2 Compare April 29, 2024 20:46
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.

None yet

0 participants