Unverified Commit 6df87707 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Upgrade to latest React experimental (#40672)

Only upgrade react-exp.


## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
parent dc11d77b
......@@ -179,8 +179,8 @@
"react-17": "npm:react@17.0.2",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-exp": "npm:react-dom@0.0.0-experimental-e6a062bd2-20220913",
"react-exp": "npm:react@0.0.0-experimental-e6a062bd2-20220913",
"react-dom-exp": "npm:react-dom@0.0.0-experimental-8951c5fc9-20220915",
"react-exp": "npm:react@0.0.0-experimental-8951c5fc9-20220915",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
......
......@@ -57,9 +57,13 @@ function resolveModuleReference(bundlerConfig, moduleData) {
// replicate it in user space. null means that it has already loaded.
var chunkCache = new Map();
var asyncModuleCache = new Map(); // Start preloading the modules since we might need them soon.
var asyncModuleCache = new Map();
function ignoreReject() {// We rely on rejected promises to be handled by another listener.
} // Start preloading the modules since we might need them soon.
// This function doesn't suspend.
function preloadModule(moduleData) {
var chunks = moduleData.chunks;
var promises = [];
......@@ -73,9 +77,10 @@ function preloadModule(moduleData) {
promises.push(thenable);
var resolve = chunkCache.set.bind(chunkCache, chunkId, null);
var reject = chunkCache.set.bind(chunkCache, chunkId);
thenable.then(resolve, reject);
thenable.then(resolve, ignoreReject);
chunkCache.set(chunkId, thenable);
} else if (entry !== null) {
promises.push(entry);
}
}
......
......@@ -244,7 +244,7 @@
"raw-body": "2.4.1",
"react-is": "17.0.2",
"react-refresh": "0.12.0",
"react-server-dom-webpack": "0.0.0-experimental-975b64464-20220914",
"react-server-dom-webpack": "0.0.0-experimental-8951c5fc9-20220915",
"regenerator-runtime": "0.13.4",
"sass-loader": "12.4.0",
"schema-utils2": "npm:schema-utils@2.7.1",
......
......@@ -140,8 +140,8 @@ importers:
react-17: npm:react@17.0.2
react-dom: 18.2.0
react-dom-17: npm:react-dom@17.0.2
react-dom-exp: npm:react-dom@0.0.0-experimental-e6a062bd2-20220913
react-exp: npm:react@0.0.0-experimental-e6a062bd2-20220913
react-dom-exp: npm:react-dom@0.0.0-experimental-8951c5fc9-20220915
react-exp: npm:react@0.0.0-experimental-8951c5fc9-20220915
react-ssr-prepass: 1.0.8
react-virtualized: 9.22.3
relay-compiler: 13.0.2
......@@ -295,8 +295,8 @@ importers:
react-17: /react/17.0.2
react-dom: 18.2.0_react@18.2.0
react-dom-17: /react-dom/17.0.2_react@18.2.0
react-dom-exp: /react-dom/0.0.0-experimental-e6a062bd2-20220913_react@18.2.0
react-exp: /react/0.0.0-experimental-e6a062bd2-20220913
react-dom-exp: /react-dom/0.0.0-experimental-8951c5fc9-20220915_react@18.2.0
react-exp: /react/0.0.0-experimental-8951c5fc9-20220915
react-ssr-prepass: 1.0.8_qncsgtzehe3fgiqp6tr7lwq6fm
react-virtualized: 9.22.3_biqbaboplfbrettd7655fr4n2y
relay-compiler: 13.0.2
......@@ -548,7 +548,7 @@ importers:
raw-body: 2.4.1
react-is: 17.0.2
react-refresh: 0.12.0
react-server-dom-webpack: 0.0.0-experimental-975b64464-20220914
react-server-dom-webpack: 0.0.0-experimental-8951c5fc9-20220915
regenerator-runtime: 0.13.4
sass-loader: 12.4.0
schema-utils2: npm:schema-utils@2.7.1
......@@ -737,7 +737,7 @@ importers:
raw-body: 2.4.1
react-is: 17.0.2
react-refresh: 0.12.0
react-server-dom-webpack: 0.0.0-experimental-975b64464-20220914_webpack@5.74.0
react-server-dom-webpack: 0.0.0-experimental-8951c5fc9-20220915_webpack@5.74.0
regenerator-runtime: 0.13.4
sass-loader: 12.4.0_webpack@5.74.0
schema-utils2: /schema-utils/2.7.1
......@@ -24369,17 +24369,17 @@ packages:
strip-json-comments: 2.0.1
dev: true
/react-dom/0.0.0-experimental-e6a062bd2-20220913_react@18.2.0:
/react-dom/0.0.0-experimental-8951c5fc9-20220915_react@18.2.0:
resolution:
{
integrity: sha512-4e/0ZV5I4gUWRw6EohI9lEglfGYcSxPWoUcAXVLvRxzLTfFqnuLFplu33Z6Bvrs9Jnr6skDdskyyzFn0rRSJnQ==,
integrity: sha512-zRK9YAhohnYYJ4WhtZ1MyfR1w2XA+yiaAJAqx5Zg6Wyi0tHE1tQfhmoF7wdI4k3ZTvPjQO+IxkI+/sfOcu6OTA==,
}
peerDependencies:
react: 0.0.0-experimental-e6a062bd2-20220913
react: 0.0.0-experimental-8951c5fc9-20220915
dependencies:
loose-envify: 1.4.0
react: 18.2.0
scheduler: 0.0.0-experimental-e6a062bd2-20220913
scheduler: 0.0.0-experimental-8951c5fc9-20220915
dev: true
/react-dom/17.0.2_react@18.2.0:
......@@ -24444,14 +24444,14 @@ packages:
engines: { node: '>=0.10.0' }
dev: true
/react-server-dom-webpack/0.0.0-experimental-975b64464-20220914_webpack@5.74.0:
/react-server-dom-webpack/0.0.0-experimental-8951c5fc9-20220915_webpack@5.74.0:
resolution:
{
integrity: sha512-RU8yWstn6EpbprfOEnpCpp4fzSTgRLIjvWjJYZq2AiVrXXaAl54stVC1LlZ5Ox4hNXBc6K/FAuQqF4nopXx5Aw==,
integrity: sha512-gIz7hb0Sp8v3y66K5sETigHSC1VS2k/w2UvJ5vuIr+oXsp30M3QzINxHKVuausgIP+2X8c5J9BZukh3fMutiyw==,
}
engines: { node: '>=0.10.0' }
peerDependencies:
react: 0.0.0-experimental-975b64464-20220914
react: 0.0.0-experimental-8951c5fc9-20220915
webpack: ^5.59.0
dependencies:
acorn: 6.4.2
......@@ -24493,10 +24493,10 @@ packages:
react-lifecycles-compat: 3.0.4
dev: true
/react/0.0.0-experimental-e6a062bd2-20220913:
/react/0.0.0-experimental-8951c5fc9-20220915:
resolution:
{
integrity: sha512-osFjPYWDSg98xRjj0RDMF9gLczBcixdsC3vb1+vq6tw99Po31KgkiIfLtLMYGjD6qmASXlMVKZgFDbYDNGGC9Q==,
integrity: sha512-/pGYDqlIZAF4UMSTvlTU1Gd9etFqsUAT51vebc9Az13tE0hV0dmFdHa4T79Qx1JJ6Bd146X2RjScBhbx/ROmQA==,
}
engines: { node: '>=0.10.0' }
dependencies:
......@@ -25838,10 +25838,10 @@ packages:
xmlchars: 2.2.0
dev: true
/scheduler/0.0.0-experimental-e6a062bd2-20220913:
/scheduler/0.0.0-experimental-8951c5fc9-20220915:
resolution:
{
integrity: sha512-Rv+woqQhdMt6JaiDCHpRsbG0f3LxIYKX/eo3tK+KIqi4TiTYZAYTxO5HJXvJgKPHegAtKMcjm2D3HXDWl2m/nw==,
integrity: sha512-3ar+dNPu8yBC0DK1aEgT+dPUwEFoVQjVmsjcqKuYK7inTwsgQkDeTlGVQV1ELULf9vUwyuodHjGBFQI+XBQ0bg==,
}
dependencies:
loose-envify: 1.4.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment