Unverified Commit 6dafc422 authored by Steven's avatar Steven Committed by GitHub

chore(deps): bump react to 7118f5dd7 (#52282)

Fixes #49409

### React upstream changes

- https://github.com/facebook/react/pull/27045
- https://github.com/facebook/react/pull/27051
- https://github.com/facebook/react/pull/27032
- https://github.com/facebook/react/pull/27031
- https://github.com/facebook/react/pull/27029
- https://github.com/facebook/react/pull/27028
- https://github.com/facebook/react/pull/27027
- https://github.com/facebook/react/pull/27019
- https://github.com/facebook/react/pull/26954
- https://github.com/facebook/react/pull/26987
- https://github.com/facebook/react/pull/26985
- https://github.com/facebook/react/pull/26933
- https://github.com/facebook/react/pull/26625
- https://github.com/facebook/react/pull/27011
- https://github.com/facebook/react/pull/27008
- https://github.com/facebook/react/pull/26997
- https://github.com/facebook/react/pull/26989
- https://github.com/facebook/react/pull/26955
- https://github.com/facebook/react/pull/26963
- https://github.com/facebook/react/pull/26983
- https://github.com/facebook/react/pull/26914
- https://github.com/facebook/react/pull/26951
- https://github.com/facebook/react/pull/26977
- https://github.com/facebook/react/pull/26958
- https://github.com/facebook/react/pull/26940
- https://github.com/facebook/react/pull/26939
- https://github.com/facebook/react/pull/26887
- https://github.com/facebook/react/pull/26947
- https://github.com/facebook/react/pull/26945
- https://github.com/facebook/react/pull/26942
- https://github.com/facebook/react/pull/26938
- https://github.com/facebook/react/pull/26844
- https://github.com/facebook/react/pull/25510
- https://github.com/facebook/react/pull/26932
- https://github.com/facebook/react/pull/26896
- https://github.com/facebook/react/pull/26913
- https://github.com/facebook/react/pull/26888
- https://github.com/facebook/react/pull/26827
- https://github.com/facebook/react/pull/26889
- https://github.com/facebook/react/pull/26877
- https://github.com/facebook/react/pull/26873
- https://github.com/facebook/react/pull/26880
- https://github.com/facebook/react/pull/26842
- https://github.com/facebook/react/pull/26858
- https://github.com/facebook/react/pull/26754
- https://github.com/facebook/react/pull/26753
- https://github.com/facebook/react/pull/26881

---------
Co-authored-by: 's avatarJiachi Liu <inbox@huozhi.im>
parent 37c40b79
...@@ -189,14 +189,14 @@ ...@@ -189,14 +189,14 @@
"random-seed": "0.3.0", "random-seed": "0.3.0",
"react": "18.2.0", "react": "18.2.0",
"react-17": "npm:react@17.0.2", "react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@18.3.0-canary-1cea38448-20230530", "react-builtin": "npm:react@18.3.0-canary-7118f5dd7-20230705",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2", "react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@18.3.0-canary-1cea38448-20230530", "react-dom-builtin": "npm:react-dom@18.3.0-canary-7118f5dd7-20230705",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-1cea38448-20230530", "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-7118f5dd7-20230705",
"react-experimental-builtin": "npm:react@0.0.0-experimental-1cea38448-20230530", "react-experimental-builtin": "npm:react@0.0.0-experimental-7118f5dd7-20230705",
"react-server-dom-webpack": "18.3.0-canary-1cea38448-20230530", "react-server-dom-webpack": "18.3.0-canary-7118f5dd7-20230705",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-1cea38448-20230530", "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-7118f5dd7-20230705",
"react-ssr-prepass": "1.0.8", "react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3", "react-virtualized": "9.22.3",
"relay-compiler": "13.0.2", "relay-compiler": "13.0.2",
...@@ -206,8 +206,8 @@ ...@@ -206,8 +206,8 @@
"resolve-from": "5.0.0", "resolve-from": "5.0.0",
"sass": "1.54.0", "sass": "1.54.0",
"satori": "0.9.1", "satori": "0.9.1",
"scheduler-builtin": "npm:scheduler@0.24.0-canary-1cea38448-20230530", "scheduler-builtin": "npm:scheduler@0.24.0-canary-7118f5dd7-20230705",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-1cea38448-20230530", "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-7118f5dd7-20230705",
"seedrandom": "3.0.5", "seedrandom": "3.0.5",
"selenium-webdriver": "4.0.0-beta.4", "selenium-webdriver": "4.0.0-beta.4",
"semver": "7.3.7", "semver": "7.3.7",
......
...@@ -5,7 +5,9 @@ import { useTestHarness } from '@turbo/pack-test-harness' ...@@ -5,7 +5,9 @@ import { useTestHarness } from '@turbo/pack-test-harness'
export default function Test() { export default function Test() {
useTestHarness(() => { useTestHarness(() => {
it('should have the correct link tags', () => { it('should have the correct link tags', () => {
let links = Array.from(document.querySelectorAll('link')) const links = Array.from(document.querySelectorAll('link')).filter(
(l) => l.rel !== 'preload'
)
expect( expect(
links.map((l) => ({ links.map((l) => ({
href: l.getAttribute('href'), href: l.getAttribute('href'),
......
...@@ -16,7 +16,7 @@ if (process.env.NODE_ENV !== "production") { ...@@ -16,7 +16,7 @@ if (process.env.NODE_ENV !== "production") {
var React = require("next/dist/compiled/react-experimental"); var React = require("next/dist/compiled/react-experimental");
var ReactVersion = '18.3.0-experimental-1cea38448-20230530'; var ReactVersion = '18.3.0-experimental-7118f5dd7-20230705';
var Internals = { var Internals = {
usingClientEntryPoint: false, usingClientEntryPoint: false,
...@@ -157,6 +157,13 @@ function createPortal() { ...@@ -157,6 +157,13 @@ function createPortal() {
} }
function flushSync() { function flushSync() {
throw new Error('flushSync was called on the server. This is likely caused by a' + ' function being called during render or in module scope that was' + ' intended to be called from an effect or event handler. Update your' + ' to not call flushSync no the server.'); throw new Error('flushSync was called on the server. This is likely caused by a' + ' function being called during render or in module scope that was' + ' intended to be called from an effect or event handler. Update your' + ' to not call flushSync no the server.');
} // on the server we just call the callback because there is
// not update mechanism. Really this should not be called on the
// server but since the semantics are generally clear enough we
// can provide this trivial implementation.
function batchedUpdates(fn, a) {
return fn(a);
} }
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
...@@ -167,6 +174,7 @@ exports.preconnect = preconnect; ...@@ -167,6 +174,7 @@ exports.preconnect = preconnect;
exports.prefetchDNS = prefetchDNS; exports.prefetchDNS = prefetchDNS;
exports.preinit = preinit; exports.preinit = preinit;
exports.preload = preload; exports.preload = preload;
exports.unstable_batchedUpdates = batchedUpdates;
exports.version = ReactVersion; exports.version = ReactVersion;
})(); })();
} }
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
'use strict';var d=require("next/dist/compiled/react-experimental"),e={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function f(c){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+c,a=1;a<arguments.length;a++)b+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+c+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g=e.Dispatcher,h=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher; 'use strict';var d=require("next/dist/compiled/react-experimental"),e={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function f(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g=e.Dispatcher,h=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e;exports.createPortal=function(){throw Error(f(448));};exports.experimental_useFormStatus=function(){return h.current.useHostTransitionStatus()};exports.flushSync=function(){throw Error(f(449));};exports.preconnect=function(c,b){var a=g.current;a&&a.preconnect(c,b)};exports.prefetchDNS=function(c){var b=g.current;b&&b.prefetchDNS(c)};exports.preinit=function(c,b){var a=g.current;a&&a.preinit(c,b)}; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e;exports.createPortal=function(){throw Error(f(448));};exports.experimental_useFormStatus=function(){return h.current.useHostTransitionStatus()};exports.flushSync=function(){throw Error(f(449));};exports.preconnect=function(b,a){var c=g.current;c&&c.preconnect(b,a)};exports.prefetchDNS=function(b){var a=g.current;a&&a.prefetchDNS(b)};exports.preinit=function(b,a){var c=g.current;c&&c.preinit(b,a)};
exports.preload=function(c,b){var a=g.current;a&&a.preload(c,b)};exports.version="18.3.0-experimental-1cea38448-20230530"; exports.preload=function(b,a){var c=g.current;c&&c.preload(b,a)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.version="18.3.0-experimental-7118f5dd7-20230705";
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
}, },
"dependencies": { "dependencies": {
"loose-envify": "^1.1.0", "loose-envify": "^1.1.0",
"scheduler": "0.0.0-experimental-1cea38448-20230530" "scheduler": "0.0.0-experimental-7118f5dd7-20230705"
}, },
"peerDependencies": { "peerDependencies": {
"react": "0.0.0-experimental-1cea38448-20230530" "react": "0.0.0-experimental-7118f5dd7-20230705"
}, },
"browser": { "browser": {
"./server.js": "./server.browser.js", "./server.js": "./server.browser.js",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,7 +14,7 @@ if (process.env.NODE_ENV !== "production") { ...@@ -14,7 +14,7 @@ if (process.env.NODE_ENV !== "production") {
(function() { (function() {
'use strict'; 'use strict';
var ReactVersion = '18.3.0-canary-1cea38448-20230530'; var ReactVersion = '18.3.0-canary-7118f5dd7-20230705';
var Internals = { var Internals = {
usingClientEntryPoint: false, usingClientEntryPoint: false,
...@@ -95,6 +95,13 @@ function createPortal() { ...@@ -95,6 +95,13 @@ function createPortal() {
} }
function flushSync() { function flushSync() {
throw new Error('flushSync was called on the server. This is likely caused by a' + ' function being called during render or in module scope that was' + ' intended to be called from an effect or event handler. Update your' + ' to not call flushSync no the server.'); throw new Error('flushSync was called on the server. This is likely caused by a' + ' function being called during render or in module scope that was' + ' intended to be called from an effect or event handler. Update your' + ' to not call flushSync no the server.');
} // on the server we just call the callback because there is
// not update mechanism. Really this should not be called on the
// server but since the semantics are generally clear enough we
// can provide this trivial implementation.
function batchedUpdates(fn, a) {
return fn(a);
} }
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
...@@ -105,6 +112,7 @@ exports.preconnect = preconnect; ...@@ -105,6 +112,7 @@ exports.preconnect = preconnect;
exports.prefetchDNS = prefetchDNS; exports.prefetchDNS = prefetchDNS;
exports.preinit = preinit; exports.preinit = preinit;
exports.preload = preload; exports.preload = preload;
exports.unstable_batchedUpdates = batchedUpdates;
exports.version = ReactVersion; exports.version = ReactVersion;
})(); })();
} }
...@@ -7,5 +7,6 @@ ...@@ -7,5 +7,6 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
'use strict';var d={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function e(c){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+c,a=1;a<arguments.length;a++)b+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+c+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=d.Dispatcher;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d; 'use strict';var d={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function e(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=d.Dispatcher;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;
exports.createPortal=function(){throw Error(e(448));};exports.experimental_useFormStatus=function(){throw Error(e(248));};exports.flushSync=function(){throw Error(e(449));};exports.preconnect=function(c,b){var a=f.current;a&&a.preconnect(c,b)};exports.prefetchDNS=function(c){var b=f.current;b&&b.prefetchDNS(c)};exports.preinit=function(c,b){var a=f.current;a&&a.preinit(c,b)};exports.preload=function(c,b){var a=f.current;a&&a.preload(c,b)};exports.version="18.3.0-canary-1cea38448-20230530"; exports.createPortal=function(){throw Error(e(448));};exports.experimental_useFormStatus=function(){throw Error(e(248));};exports.flushSync=function(){throw Error(e(449));};exports.preconnect=function(b,a){var c=f.current;c&&c.preconnect(b,a)};exports.prefetchDNS=function(b){var a=f.current;a&&a.prefetchDNS(b)};exports.preinit=function(b,a){var c=f.current;c&&c.preinit(b,a)};exports.preload=function(b,a){var c=f.current;c&&c.preload(b,a)};exports.unstable_batchedUpdates=function(b,a){return b(a)};
exports.version="18.3.0-canary-7118f5dd7-20230705";
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
}, },
"dependencies": { "dependencies": {
"loose-envify": "^1.1.0", "loose-envify": "^1.1.0",
"scheduler": "0.24.0-canary-1cea38448-20230530" "scheduler": "0.24.0-canary-7118f5dd7-20230705"
}, },
"peerDependencies": { "peerDependencies": {
"react": "18.3.0-canary-1cea38448-20230530" "react": "18.3.0-canary-7118f5dd7-20230705"
}, },
"browser": { "browser": {
"./server.js": "./server.browser.js" "./server.js": "./server.browser.js"
......
...@@ -433,7 +433,14 @@ function describeNativeComponentFrame(fn, construct) { ...@@ -433,7 +433,14 @@ function describeNativeComponentFrame(fn, construct) {
// in simple components too // in simple components too
fn(); var maybePromise = fn(); // If the function component returns a promise, it's likely an async
// component, which we don't yet support. Attach a noop catch handler to
// silence the error.
// TODO: Implement component stacks for async client components?
if (maybePromise && typeof maybePromise.catch === 'function') {
maybePromise.catch(function () {});
}
} }
} catch (sample) { } catch (sample) {
// This is inlined manually because closure doesn't do it for us. // This is inlined manually because closure doesn't do it for us.
......
...@@ -433,7 +433,14 @@ function describeNativeComponentFrame(fn, construct) { ...@@ -433,7 +433,14 @@ function describeNativeComponentFrame(fn, construct) {
// in simple components too // in simple components too
fn(); var maybePromise = fn(); // If the function component returns a promise, it's likely an async
// component, which we don't yet support. Attach a noop catch handler to
// silence the error.
// TODO: Implement component stacks for async client components?
if (maybePromise && typeof maybePromise.catch === 'function') {
maybePromise.catch(function () {});
}
} }
} catch (sample) { } catch (sample) {
// This is inlined manually because closure doesn't do it for us. // This is inlined manually because closure doesn't do it for us.
......
...@@ -23,7 +23,7 @@ if ( ...@@ -23,7 +23,7 @@ if (
) { ) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
} }
var ReactVersion = '18.3.0-experimental-1cea38448-20230530'; var ReactVersion = '18.3.0-experimental-7118f5dd7-20230705';
// ATTENTION // ATTENTION
// When adding new symbols to this file, // When adding new symbols to this file,
...@@ -2059,7 +2059,14 @@ function describeNativeComponentFrame(fn, construct) { ...@@ -2059,7 +2059,14 @@ function describeNativeComponentFrame(fn, construct) {
// in simple components too // in simple components too
fn(); var maybePromise = fn(); // If the function component returns a promise, it's likely an async
// component, which we don't yet support. Attach a noop catch handler to
// silence the error.
// TODO: Implement component stacks for async client components?
if (maybePromise && typeof maybePromise.catch === 'function') {
maybePromise.catch(function () {});
}
} }
} catch (sample) { } catch (sample) {
// This is inlined manually because closure doesn't do it for us. // This is inlined manually because closure doesn't do it for us.
......
...@@ -28,4 +28,4 @@ exports.experimental_useOptimistic=function(a,b){return W.current.useOptimistic( ...@@ -28,4 +28,4 @@ exports.experimental_useOptimistic=function(a,b){return W.current.useOptimistic(
exports.unstable_DebugTracingMode=aa;exports.unstable_Offscreen=ba;exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.unstable_getCacheForType=function(a){var b=U.current;return b?b.getCacheForType(a):a()};exports.unstable_getCacheSignal=function(){var a=U.current;return a?a.getCacheSignal():(a=new AbortController,a.abort(Error("This CacheSignal was requested outside React which means that it is immediately aborted.")),a.signal)}; exports.unstable_DebugTracingMode=aa;exports.unstable_Offscreen=ba;exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.unstable_getCacheForType=function(a){var b=U.current;return b?b.getCacheForType(a):a()};exports.unstable_getCacheSignal=function(){var a=U.current;return a?a.getCacheSignal():(a=new AbortController,a.abort(Error("This CacheSignal was requested outside React which means that it is immediately aborted.")),a.signal)};
exports.unstable_useCacheRefresh=function(){return W.current.useCacheRefresh()};exports.unstable_useMemoCache=function(a){return W.current.useMemoCache(a)};exports.use=function(a){return W.current.use(a)};exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return W.current.useDeferredValue(a)}; exports.unstable_useCacheRefresh=function(){return W.current.useCacheRefresh()};exports.unstable_useMemoCache=function(a){return W.current.useMemoCache(a)};exports.use=function(a){return W.current.use(a)};exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return W.current.useDeferredValue(a)};
exports.useEffect=function(a,b){return W.current.useEffect(a,b)};exports.useId=function(){return W.current.useId()};exports.useImperativeHandle=function(a,b,c){return W.current.useImperativeHandle(a,b,c)};exports.useInsertionEffect=function(a,b){return W.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return W.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.useReducer=function(a,b,c){return W.current.useReducer(a,b,c)}; exports.useEffect=function(a,b){return W.current.useEffect(a,b)};exports.useId=function(){return W.current.useId()};exports.useImperativeHandle=function(a,b,c){return W.current.useImperativeHandle(a,b,c)};exports.useInsertionEffect=function(a,b){return W.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return W.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.useReducer=function(a,b,c){return W.current.useReducer(a,b,c)};
exports.useRef=function(a){return W.current.useRef(a)};exports.useState=function(a){return W.current.useState(a)};exports.useSyncExternalStore=function(a,b,c){return W.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-experimental-1cea38448-20230530"; exports.useRef=function(a){return W.current.useRef(a)};exports.useState=function(a){return W.current.useState(a)};exports.useSyncExternalStore=function(a,b,c){return W.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-experimental-7118f5dd7-20230705";
...@@ -304,7 +304,7 @@ function generateCacheKey(request) { ...@@ -304,7 +304,7 @@ function generateCacheKey(request) {
} }
} }
var ReactVersion = '18.3.0-experimental-1cea38448-20230530'; var ReactVersion = '18.3.0-experimental-7118f5dd7-20230705';
// ATTENTION // ATTENTION
// When adding new symbols to this file, // When adding new symbols to this file,
...@@ -1999,7 +1999,14 @@ function describeNativeComponentFrame(fn, construct) { ...@@ -1999,7 +1999,14 @@ function describeNativeComponentFrame(fn, construct) {
// in simple components too // in simple components too
fn(); var maybePromise = fn(); // If the function component returns a promise, it's likely an async
// component, which we don't yet support. Attach a noop catch handler to
// silence the error.
// TODO: Implement component stacks for async client components?
if (maybePromise && typeof maybePromise.catch === 'function') {
maybePromise.catch(function () {});
}
} }
} catch (sample) { } catch (sample) {
// This is inlined manually because closure doesn't do it for us. // This is inlined manually because closure doesn't do it for us.
......
...@@ -27,4 +27,4 @@ key:e,ref:f,props:c,_owner:h}};exports.createElement=function(a,b,d){var c,e={}, ...@@ -27,4 +27,4 @@ key:e,ref:f,props:c,_owner:h}};exports.createElement=function(a,b,d){var c,e={},
exports.createServerContext=function(a,b){var d=!0;if(!Z[a]){d=!1;var c={$$typeof:z,_currentValue:b,_currentValue2:b,_defaultValue:b,_threadCount:0,Provider:null,Consumer:null,_globalName:a};c.Provider={$$typeof:y,_context:c};Z[a]=c}c=Z[a];if(c._defaultValue===D)c._defaultValue=b,c._currentValue===D&&(c._currentValue=b),c._currentValue2===D&&(c._currentValue2=b);else if(d)throw Error(F(429,a));return c};exports.forwardRef=function(a){return{$$typeof:A,render:a}};exports.isValidElement=Q; exports.createServerContext=function(a,b){var d=!0;if(!Z[a]){d=!1;var c={$$typeof:z,_currentValue:b,_currentValue2:b,_defaultValue:b,_threadCount:0,Provider:null,Consumer:null,_globalName:a};c.Provider={$$typeof:y,_context:c};Z[a]=c}c=Z[a];if(c._defaultValue===D)c._defaultValue=b,c._currentValue===D&&(c._currentValue=b),c._currentValue2===D&&(c._currentValue2=b);else if(d)throw Error(F(429,a));return c};exports.forwardRef=function(a){return{$$typeof:A,render:a}};exports.isValidElement=Q;
exports.lazy=function(a){return{$$typeof:ba,_payload:{_status:-1,_result:a},_init:fa}};exports.memo=function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.unstable_DebugTracingMode=ca;exports.unstable_getCacheForType=function(a){var b=n.current;return b?b.getCacheForType(a):a()}; exports.lazy=function(a){return{$$typeof:ba,_payload:{_status:-1,_result:a},_init:fa}};exports.memo=function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.unstable_DebugTracingMode=ca;exports.unstable_getCacheForType=function(a){var b=n.current;return b?b.getCacheForType(a):a()};
exports.unstable_getCacheSignal=function(){var a=n.current;if(!a){a=new AbortController;var b=Error(F(455));a.abort(b);return a.signal}return a.getCacheSignal()};exports.use=function(a){return W.current.use(a)};exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useId=function(){return W.current.useId()};exports.useMemo=function(a,b){return W.current.useMemo(a,b)}; exports.unstable_getCacheSignal=function(){var a=n.current;if(!a){a=new AbortController;var b=Error(F(455));a.abort(b);return a.signal}return a.getCacheSignal()};exports.use=function(a){return W.current.use(a)};exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useId=function(){return W.current.useId()};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};
exports.version="18.3.0-experimental-1cea38448-20230530"; exports.version="18.3.0-experimental-7118f5dd7-20230705";
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
"loose-envify": "^1.1.0" "loose-envify": "^1.1.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "0.0.0-experimental-1cea38448-20230530", "react": "0.0.0-experimental-7118f5dd7-20230705",
"react-dom": "0.0.0-experimental-1cea38448-20230530", "react-dom": "0.0.0-experimental-7118f5dd7-20230705",
"webpack": "^5.59.0" "webpack": "^5.59.0"
} }
} }
\ No newline at end of file
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
"loose-envify": "^1.1.0" "loose-envify": "^1.1.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "18.3.0-canary-1cea38448-20230530", "react": "18.3.0-canary-7118f5dd7-20230705",
"react-dom": "18.3.0-canary-1cea38448-20230530", "react-dom": "18.3.0-canary-7118f5dd7-20230705",
"webpack": "^5.59.0" "webpack": "^5.59.0"
} }
} }
\ No newline at end of file
...@@ -434,7 +434,14 @@ function describeNativeComponentFrame(fn, construct) { ...@@ -434,7 +434,14 @@ function describeNativeComponentFrame(fn, construct) {
// in simple components too // in simple components too
fn(); var maybePromise = fn(); // If the function component returns a promise, it's likely an async
// component, which we don't yet support. Attach a noop catch handler to
// silence the error.
// TODO: Implement component stacks for async client components?
if (maybePromise && typeof maybePromise.catch === 'function') {
maybePromise.catch(function () {});
}
} }
} catch (sample) { } catch (sample) {
// This is inlined manually because closure doesn't do it for us. // This is inlined manually because closure doesn't do it for us.
......
...@@ -27,4 +27,4 @@ exports.createServerContext=function(a,b){var c=!0;if(!Z[a]){c=!1;var d={$$typeo ...@@ -27,4 +27,4 @@ exports.createServerContext=function(a,b){var c=!0;if(!Z[a]){c=!1;var d={$$typeo
exports.isValidElement=P;exports.lazy=function(a){return{$$typeof:z,_payload:{_status:-1,_result:a},_init:ba}};exports.memo=function(a,b){return{$$typeof:y,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.unstable_useCacheRefresh=function(){return W.current.useCacheRefresh()};exports.use=function(a){return W.current.use(a)}; exports.isValidElement=P;exports.lazy=function(a){return{$$typeof:z,_payload:{_status:-1,_result:a},_init:ba}};exports.memo=function(a,b){return{$$typeof:y,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.unstable_useCacheRefresh=function(){return W.current.useCacheRefresh()};exports.use=function(a){return W.current.use(a)};
exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return W.current.useDeferredValue(a)};exports.useEffect=function(a,b){return W.current.useEffect(a,b)};exports.useId=function(){return W.current.useId()};exports.useImperativeHandle=function(a,b,c){return W.current.useImperativeHandle(a,b,c)}; exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return W.current.useDeferredValue(a)};exports.useEffect=function(a,b){return W.current.useEffect(a,b)};exports.useId=function(){return W.current.useId()};exports.useImperativeHandle=function(a,b,c){return W.current.useImperativeHandle(a,b,c)};
exports.useInsertionEffect=function(a,b){return W.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return W.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.useReducer=function(a,b,c){return W.current.useReducer(a,b,c)};exports.useRef=function(a){return W.current.useRef(a)};exports.useState=function(a){return W.current.useState(a)};exports.useSyncExternalStore=function(a,b,c){return W.current.useSyncExternalStore(a,b,c)}; exports.useInsertionEffect=function(a,b){return W.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return W.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.useReducer=function(a,b,c){return W.current.useReducer(a,b,c)};exports.useRef=function(a){return W.current.useRef(a)};exports.useState=function(a){return W.current.useState(a)};exports.useSyncExternalStore=function(a,b,c){return W.current.useSyncExternalStore(a,b,c)};
exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-canary-1cea38448-20230530"; exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-canary-7118f5dd7-20230705";
This diff is collapsed.
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