Skip to content

Commit d74d9c4

Browse files
Upgrade React from f0edf41e-20250115 to b158439a-20250115 (#74936)
1 parent 0031496 commit d74d9c4

File tree

62 files changed

+536
-377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+536
-377
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,16 @@
213213
"pretty-ms": "7.0.0",
214214
"random-seed": "0.3.0",
215215
"react": "19.0.0",
216-
"react-builtin": "npm:react@19.1.0-canary-f0edf41e-20250115",
216+
"react-builtin": "npm:react@19.1.0-canary-b158439a-20250115",
217217
"react-dom": "19.0.0",
218-
"react-dom-builtin": "npm:react-dom@19.1.0-canary-f0edf41e-20250115",
219-
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-f0edf41e-20250115",
220-
"react-experimental-builtin": "npm:react@0.0.0-experimental-f0edf41e-20250115",
221-
"react-is-builtin": "npm:react-is@19.1.0-canary-f0edf41e-20250115",
222-
"react-server-dom-turbopack": "19.1.0-canary-f0edf41e-20250115",
223-
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-f0edf41e-20250115",
224-
"react-server-dom-webpack": "19.1.0-canary-f0edf41e-20250115",
225-
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-f0edf41e-20250115",
218+
"react-dom-builtin": "npm:react-dom@19.1.0-canary-b158439a-20250115",
219+
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-b158439a-20250115",
220+
"react-experimental-builtin": "npm:react@0.0.0-experimental-b158439a-20250115",
221+
"react-is-builtin": "npm:react-is@19.1.0-canary-b158439a-20250115",
222+
"react-server-dom-turbopack": "19.1.0-canary-b158439a-20250115",
223+
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-b158439a-20250115",
224+
"react-server-dom-webpack": "19.1.0-canary-b158439a-20250115",
225+
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-b158439a-20250115",
226226
"react-ssr-prepass": "1.0.8",
227227
"react-virtualized": "9.22.3",
228228
"relay-compiler": "13.0.2",
@@ -232,8 +232,8 @@
232232
"resolve-from": "5.0.0",
233233
"sass": "1.54.0",
234234
"satori": "0.10.9",
235-
"scheduler-builtin": "npm:scheduler@0.26.0-canary-f0edf41e-20250115",
236-
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-f0edf41e-20250115",
235+
"scheduler-builtin": "npm:scheduler@0.26.0-canary-b158439a-20250115",
236+
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-b158439a-20250115",
237237
"seedrandom": "3.0.5",
238238
"semver": "7.3.7",
239239
"shell-quote": "1.7.3",
@@ -274,10 +274,10 @@
274274
"@types/react": "19.0.0",
275275
"@types/react-dom": "19.0.0",
276276
"jest-snapshot": "30.0.0-alpha.6",
277-
"react": "19.1.0-canary-f0edf41e-20250115",
278-
"react-dom": "19.1.0-canary-f0edf41e-20250115",
279-
"react-is": "19.1.0-canary-f0edf41e-20250115",
280-
"scheduler": "0.26.0-canary-f0edf41e-20250115"
277+
"react": "19.1.0-canary-b158439a-20250115",
278+
"react-dom": "19.1.0-canary-b158439a-20250115",
279+
"react-is": "19.1.0-canary-b158439a-20250115",
280+
"scheduler": "0.26.0-canary-b158439a-20250115"
281281
},
282282
"patchedDependencies": {
283283
"webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch",

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26794,11 +26794,11 @@
2679426794
};
2679526795
(function () {
2679626796
var isomorphicReactPackageVersion = React.version;
26797-
if ("19.1.0-experimental-f0edf41e-20250115" !== isomorphicReactPackageVersion)
26797+
if ("19.1.0-experimental-b158439a-20250115" !== isomorphicReactPackageVersion)
2679826798
throw Error(
2679926799
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2680026800
(isomorphicReactPackageVersion +
26801-
"\n - react-dom: 19.1.0-experimental-f0edf41e-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
26801+
"\n - react-dom: 19.1.0-experimental-b158439a-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
2680226802
);
2680326803
})();
2680426804
("function" === typeof Map &&
@@ -26835,10 +26835,10 @@
2683526835
!(function () {
2683626836
var internals = {
2683726837
bundleType: 1,
26838-
version: "19.1.0-experimental-f0edf41e-20250115",
26838+
version: "19.1.0-experimental-b158439a-20250115",
2683926839
rendererPackageName: "react-dom",
2684026840
currentDispatcherRef: ReactSharedInternals,
26841-
reconcilerVersion: "19.1.0-experimental-f0edf41e-20250115"
26841+
reconcilerVersion: "19.1.0-experimental-b158439a-20250115"
2684226842
};
2684326843
internals.overrideHookState = overrideHookState;
2684426844
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26982,7 +26982,7 @@
2698226982
listenToAllSupportedEvents(container);
2698326983
return new ReactDOMHydrationRoot(initialChildren);
2698426984
};
26985-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
26985+
exports.version = "19.1.0-experimental-b158439a-20250115";
2698626986
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2698726987
"function" ===
2698826988
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16373,14 +16373,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1637316373
};
1637416374
var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version;
1637516375
if (
16376-
"19.1.0-experimental-f0edf41e-20250115" !==
16376+
"19.1.0-experimental-b158439a-20250115" !==
1637716377
isomorphicReactPackageVersion$jscomp$inline_1799
1637816378
)
1637916379
throw Error(
1638016380
formatProdErrorMessage(
1638116381
527,
1638216382
isomorphicReactPackageVersion$jscomp$inline_1799,
16383-
"19.1.0-experimental-f0edf41e-20250115"
16383+
"19.1.0-experimental-b158439a-20250115"
1638416384
)
1638516385
);
1638616386
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16402,10 +16402,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1640216402
};
1640316403
var internals$jscomp$inline_2330 = {
1640416404
bundleType: 0,
16405-
version: "19.1.0-experimental-f0edf41e-20250115",
16405+
version: "19.1.0-experimental-b158439a-20250115",
1640616406
rendererPackageName: "react-dom",
1640716407
currentDispatcherRef: ReactSharedInternals,
16408-
reconcilerVersion: "19.1.0-experimental-f0edf41e-20250115"
16408+
reconcilerVersion: "19.1.0-experimental-b158439a-20250115"
1640916409
};
1641016410
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1641116411
var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16511,4 +16511,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1651116511
listenToAllSupportedEvents(container);
1651216512
return new ReactDOMHydrationRoot(initialChildren);
1651316513
};
16514-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
16514+
exports.version = "19.1.0-experimental-b158439a-20250115";

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26847,11 +26847,11 @@
2684726847
};
2684826848
(function () {
2684926849
var isomorphicReactPackageVersion = React.version;
26850-
if ("19.1.0-experimental-f0edf41e-20250115" !== isomorphicReactPackageVersion)
26850+
if ("19.1.0-experimental-b158439a-20250115" !== isomorphicReactPackageVersion)
2685126851
throw Error(
2685226852
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2685326853
(isomorphicReactPackageVersion +
26854-
"\n - react-dom: 19.1.0-experimental-f0edf41e-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
26854+
"\n - react-dom: 19.1.0-experimental-b158439a-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
2685526855
);
2685626856
})();
2685726857
("function" === typeof Map &&
@@ -26888,10 +26888,10 @@
2688826888
!(function () {
2688926889
var internals = {
2689026890
bundleType: 1,
26891-
version: "19.1.0-experimental-f0edf41e-20250115",
26891+
version: "19.1.0-experimental-b158439a-20250115",
2689226892
rendererPackageName: "react-dom",
2689326893
currentDispatcherRef: ReactSharedInternals,
26894-
reconcilerVersion: "19.1.0-experimental-f0edf41e-20250115"
26894+
reconcilerVersion: "19.1.0-experimental-b158439a-20250115"
2689526895
};
2689626896
internals.overrideHookState = overrideHookState;
2689726897
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27365,7 +27365,7 @@
2736527365
exports.useFormStatus = function () {
2736627366
return resolveDispatcher().useHostTransitionStatus();
2736727367
};
27368-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
27368+
exports.version = "19.1.0-experimental-b158439a-20250115";
2736927369
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2737027370
"function" ===
2737127371
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17805,14 +17805,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1780517805
};
1780617806
var isomorphicReactPackageVersion$jscomp$inline_1947 = React.version;
1780717807
if (
17808-
"19.1.0-experimental-f0edf41e-20250115" !==
17808+
"19.1.0-experimental-b158439a-20250115" !==
1780917809
isomorphicReactPackageVersion$jscomp$inline_1947
1781017810
)
1781117811
throw Error(
1781217812
formatProdErrorMessage(
1781317813
527,
1781417814
isomorphicReactPackageVersion$jscomp$inline_1947,
17815-
"19.1.0-experimental-f0edf41e-20250115"
17815+
"19.1.0-experimental-b158439a-20250115"
1781617816
)
1781717817
);
1781817818
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17834,10 +17834,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1783417834
};
1783517835
var internals$jscomp$inline_2471 = {
1783617836
bundleType: 0,
17837-
version: "19.1.0-experimental-f0edf41e-20250115",
17837+
version: "19.1.0-experimental-b158439a-20250115",
1783817838
rendererPackageName: "react-dom",
1783917839
currentDispatcherRef: ReactSharedInternals,
17840-
reconcilerVersion: "19.1.0-experimental-f0edf41e-20250115"
17840+
reconcilerVersion: "19.1.0-experimental-b158439a-20250115"
1784117841
};
1784217842
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1784317843
var hook$jscomp$inline_2472 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18104,7 +18104,7 @@ exports.useFormState = function (action, initialState, permalink) {
1810418104
exports.useFormStatus = function () {
1810518105
return ReactSharedInternals.H.useHostTransitionStatus();
1810618106
};
18107-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
18107+
exports.version = "19.1.0-experimental-b158439a-20250115";
1810818108
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1810918109
"function" ===
1811018110
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4003,6 +4003,9 @@
40034003
index
40044004
);
40054005
}
4006+
function unsupportedRefresh() {
4007+
throw Error("Cache cannot be refreshed during server rendering.");
4008+
}
40064009
function noop$1() {}
40074010
function disabledLog() {}
40084011
function disableLogs() {
@@ -9215,6 +9218,9 @@
92159218
data[i] = REACT_MEMO_CACHE_SENTINEL;
92169219
return data;
92179220
},
9221+
useCacheRefresh: function () {
9222+
return unsupportedRefresh;
9223+
},
92189224
useEffectEvent: function () {
92199225
return throwOnUseEffectEventCall;
92209226
}
@@ -9297,5 +9303,5 @@
92979303
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
92989304
);
92999305
};
9300-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
9306+
exports.version = "19.1.0-experimental-b158439a-20250115";
93019307
})();

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3246,6 +3246,9 @@ function readPreviousThenableFromState() {
32463246
index
32473247
);
32483248
}
3249+
function unsupportedRefresh() {
3250+
throw Error(formatProdErrorMessage(393));
3251+
}
32493252
function noop$1() {}
32503253
var HooksDispatcher = {
32513254
readContext: function (context) {
@@ -3332,6 +3335,9 @@ var HooksDispatcher = {
33323335
data[i] = REACT_MEMO_CACHE_SENTINEL;
33333336
return data;
33343337
},
3338+
useCacheRefresh: function () {
3339+
return unsupportedRefresh;
3340+
},
33353341
useEffectEvent: function () {
33363342
return throwOnUseEffectEventCall;
33373343
}
@@ -6062,4 +6068,4 @@ exports.renderToString = function (children, options) {
60626068
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
60636069
);
60646070
};
6065-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
6071+
exports.version = "19.1.0-experimental-b158439a-20250115";

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4003,6 +4003,9 @@
40034003
index
40044004
);
40054005
}
4006+
function unsupportedRefresh() {
4007+
throw Error("Cache cannot be refreshed during server rendering.");
4008+
}
40064009
function noop$1() {}
40074010
function disabledLog() {}
40084011
function disableLogs() {
@@ -9215,6 +9218,9 @@
92159218
data[i] = REACT_MEMO_CACHE_SENTINEL;
92169219
return data;
92179220
},
9221+
useCacheRefresh: function () {
9222+
return unsupportedRefresh;
9223+
},
92189224
useEffectEvent: function () {
92199225
return throwOnUseEffectEventCall;
92209226
}
@@ -9297,5 +9303,5 @@
92979303
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
92989304
);
92999305
};
9300-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
9306+
exports.version = "19.1.0-experimental-b158439a-20250115";
93019307
})();

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3292,6 +3292,9 @@ function readPreviousThenableFromState() {
32923292
index
32933293
);
32943294
}
3295+
function unsupportedRefresh() {
3296+
throw Error("Cache cannot be refreshed during server rendering.");
3297+
}
32953298
function noop$1() {}
32963299
var HooksDispatcher = {
32973300
readContext: function (context) {
@@ -3383,6 +3386,9 @@ var HooksDispatcher = {
33833386
data[i] = REACT_MEMO_CACHE_SENTINEL;
33843387
return data;
33853388
},
3389+
useCacheRefresh: function () {
3390+
return unsupportedRefresh;
3391+
},
33863392
useEffectEvent: function () {
33873393
return throwOnUseEffectEventCall;
33883394
}
@@ -6153,4 +6159,4 @@ exports.renderToString = function (children, options) {
61536159
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
61546160
);
61556161
};
6156-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
6162+
exports.version = "19.1.0-experimental-b158439a-20250115";

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4179,6 +4179,9 @@
41794179
index
41804180
);
41814181
}
4182+
function unsupportedRefresh() {
4183+
throw Error("Cache cannot be refreshed during server rendering.");
4184+
}
41824185
function noop$1() {}
41834186
function disabledLog() {}
41844187
function disableLogs() {
@@ -8201,11 +8204,11 @@
82018204
}
82028205
function ensureCorrectIsomorphicReactVersion() {
82038206
var isomorphicReactPackageVersion = React.version;
8204-
if ("19.1.0-experimental-f0edf41e-20250115" !== isomorphicReactPackageVersion)
8207+
if ("19.1.0-experimental-b158439a-20250115" !== isomorphicReactPackageVersion)
82058208
throw Error(
82068209
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
82078210
(isomorphicReactPackageVersion +
8208-
"\n - react-dom: 19.1.0-experimental-f0edf41e-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
8211+
"\n - react-dom: 19.1.0-experimental-b158439a-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
82098212
);
82108213
}
82118214
var React = require("next/dist/compiled/react-experimental"),
@@ -9659,6 +9662,9 @@
96599662
data[i] = REACT_MEMO_CACHE_SENTINEL;
96609663
return data;
96619664
},
9665+
useCacheRefresh: function () {
9666+
return unsupportedRefresh;
9667+
},
96629668
useEffectEvent: function () {
96639669
return throwOnUseEffectEventCall;
96649670
}
@@ -9979,5 +9985,5 @@
99799985
startWork(request);
99809986
});
99819987
};
9982-
exports.version = "19.1.0-experimental-f0edf41e-20250115";
9988+
exports.version = "19.1.0-experimental-b158439a-20250115";
99839989
})();

0 commit comments

Comments
 (0)