Skip to content

Commit 5b89848

Browse files
committed
1 parent 0a7dd4a commit 5b89848

File tree

112 files changed

+4499
-3753
lines changed

Some content is hidden

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

112 files changed

+4499
-3753
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,16 @@
194194
"random-seed": "0.3.0",
195195
"react": "18.2.0",
196196
"react-17": "npm:[email protected]",
197-
"react-builtin": "npm:[email protected]a41957507-20231017",
197+
"react-builtin": "npm:[email protected]d803f519e-20231020",
198198
"react-dom": "18.2.0",
199199
"react-dom-17": "npm:[email protected]",
200-
"react-dom-builtin": "npm:[email protected]a41957507-20231017",
201-
"react-dom-experimental-builtin": "npm:[email protected]a41957507-20231017",
202-
"react-experimental-builtin": "npm:[email protected]a41957507-20231017",
203-
"react-server-dom-turbopack": "18.3.0-canary-a41957507-20231017",
204-
"react-server-dom-turbopack-experimental": "npm:[email protected]a41957507-20231017",
205-
"react-server-dom-webpack": "18.3.0-canary-a41957507-20231017",
206-
"react-server-dom-webpack-experimental": "npm:[email protected]a41957507-20231017",
200+
"react-dom-builtin": "npm:[email protected]d803f519e-20231020",
201+
"react-dom-experimental-builtin": "npm:[email protected]d803f519e-20231020",
202+
"react-experimental-builtin": "npm:[email protected]d803f519e-20231020",
203+
"react-server-dom-turbopack": "18.3.0-canary-d803f519e-20231020",
204+
"react-server-dom-turbopack-experimental": "npm:[email protected]d803f519e-20231020",
205+
"react-server-dom-webpack": "18.3.0-canary-d803f519e-20231020",
206+
"react-server-dom-webpack-experimental": "npm:[email protected]d803f519e-20231020",
207207
"react-ssr-prepass": "1.0.8",
208208
"react-virtualized": "9.22.3",
209209
"relay-compiler": "13.0.2",
@@ -213,8 +213,8 @@
213213
"resolve-from": "5.0.0",
214214
"sass": "1.54.0",
215215
"satori": "0.10.6",
216-
"scheduler-builtin": "npm:[email protected]a41957507-20231017",
217-
"scheduler-experimental-builtin": "npm:[email protected]a41957507-20231017",
216+
"scheduler-builtin": "npm:[email protected]d803f519e-20231020",
217+
"scheduler-experimental-builtin": "npm:[email protected]d803f519e-20231020",
218218
"seedrandom": "3.0.5",
219219
"selenium-webdriver": "4.0.0-beta.4",
220220
"semver": "7.3.7",

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
1717
var React = require("next/dist/compiled/react-experimental");
1818
var ReactDOM = require('react-dom');
1919

20-
var ReactVersion = '18.3.0-experimental-a41957507-20231017';
20+
var ReactVersion = '18.3.0-experimental-d803f519e-20231020';
2121

2222
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2323

@@ -11256,7 +11256,10 @@ function flushCompletedQueues(request, destination) {
1125611256
} // We're done.
1125711257

1125811258

11259-
close(destination);
11259+
close(destination); // We need to stop flowing now because we do not want any async contexts which might call
11260+
// float methods to initiate any flushes after this point
11261+
11262+
stopFlowing(request);
1126011263
}
1126111264
}
1126211265
}
@@ -11276,10 +11279,17 @@ function enqueueFlush(request) {
1127611279
request.pingedTasks.length === 0 && // If there is no destination there is nothing we can flush to. A flush will
1127711280
// happen when we start flowing again
1127811281
request.destination !== null) {
11279-
var destination = request.destination;
1128011282
request.flushScheduled = true;
1128111283
scheduleWork(function () {
11282-
return flushCompletedQueues(request, destination);
11284+
// We need to existence check destination again here because it might go away
11285+
// in between the enqueueFlush call and the work execution
11286+
var destination = request.destination;
11287+
11288+
if (destination) {
11289+
flushCompletedQueues(request, destination);
11290+
} else {
11291+
request.flushScheduled = false;
11292+
}
1128311293
});
1128411294
}
1128511295
}
@@ -11309,6 +11319,9 @@ function startFlowing(request, destination) {
1130911319
fatalError(request, error);
1131011320
}
1131111321
}
11322+
function stopFlowing(request) {
11323+
request.destination = null;
11324+
} // This is called to early terminate a request. It puts all pending boundaries in client rendered state.
1131211325

1131311326
function abort(request, reason) {
1131411327
try {

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var React = require("next/dist/compiled/react-experimental");
1818
var ReactDOM = require('react-dom');
1919
var stream = require('stream');
2020

21-
var ReactVersion = '18.3.0-experimental-a41957507-20231017';
21+
var ReactVersion = '18.3.0-experimental-d803f519e-20231020';
2222

2323
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2424

@@ -11257,7 +11257,10 @@ function flushCompletedQueues(request, destination) {
1125711257
} // We're done.
1125811258

1125911259

11260-
close(destination);
11260+
close(destination); // We need to stop flowing now because we do not want any async contexts which might call
11261+
// float methods to initiate any flushes after this point
11262+
11263+
stopFlowing(request);
1126111264
}
1126211265
}
1126311266
}
@@ -11277,10 +11280,17 @@ function enqueueFlush(request) {
1127711280
request.pingedTasks.length === 0 && // If there is no destination there is nothing we can flush to. A flush will
1127811281
// happen when we start flowing again
1127911282
request.destination !== null) {
11280-
var destination = request.destination;
1128111283
request.flushScheduled = true;
1128211284
scheduleWork(function () {
11283-
return flushCompletedQueues(request, destination);
11285+
// We need to existence check destination again here because it might go away
11286+
// in between the enqueueFlush call and the work execution
11287+
var destination = request.destination;
11288+
11289+
if (destination) {
11290+
flushCompletedQueues(request, destination);
11291+
} else {
11292+
request.flushScheduled = false;
11293+
}
1128411294
});
1128511295
}
1128611296
}
@@ -11310,6 +11320,9 @@ function startFlowing(request, destination) {
1131011320
fatalError(request, error);
1131111321
}
1131211322
}
11323+
function stopFlowing(request) {
11324+
request.destination = null;
11325+
} // This is called to early terminate a request. It puts all pending boundaries in client rendered state.
1131311326

1131411327
function abort(request, reason) {
1131511328
try {

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function printWarning(level, format, args) {
5555
}
5656
}
5757

58-
var ReactVersion = '18.3.0-experimental-a41957507-20231017';
58+
var ReactVersion = '18.3.0-experimental-d803f519e-20231020';
5959

6060
var Internals = {
6161
usingClientEntryPoint: false,

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
1717
var React = require("next/dist/compiled/react-experimental");
1818
var ReactDOM = require('react-dom');
1919

20-
var ReactVersion = '18.3.0-experimental-a41957507-20231017';
20+
var ReactVersion = '18.3.0-experimental-d803f519e-20231020';
2121

2222
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2323

@@ -11312,7 +11312,10 @@ function flushCompletedQueues(request, destination) {
1131211312
} // We're done.
1131311313

1131411314

11315-
close(destination);
11315+
close(destination); // We need to stop flowing now because we do not want any async contexts which might call
11316+
// float methods to initiate any flushes after this point
11317+
11318+
stopFlowing(request);
1131611319
} else {
1131711320
completeWriting(destination);
1131811321
}
@@ -11334,10 +11337,17 @@ function enqueueFlush(request) {
1133411337
request.pingedTasks.length === 0 && // If there is no destination there is nothing we can flush to. A flush will
1133511338
// happen when we start flowing again
1133611339
request.destination !== null) {
11337-
var destination = request.destination;
1133811340
request.flushScheduled = true;
1133911341
scheduleWork(function () {
11340-
return flushCompletedQueues(request, destination);
11342+
// We need to existence check destination again here because it might go away
11343+
// in between the enqueueFlush call and the work execution
11344+
var destination = request.destination;
11345+
11346+
if (destination) {
11347+
flushCompletedQueues(request, destination);
11348+
} else {
11349+
request.flushScheduled = false;
11350+
}
1134111351
});
1134211352
}
1134311353
}
@@ -11458,7 +11468,7 @@ function renderToReadableStream(children, options) {
1145811468
},
1145911469
cancel: function (reason) {
1146011470
stopFlowing(request);
11461-
abort(request);
11471+
abort(request, reason);
1146211472
}
1146311473
}, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams.
1146411474
{
@@ -11516,7 +11526,7 @@ function resume(children, postponedState, options) {
1151611526
},
1151711527
cancel: function (reason) {
1151811528
stopFlowing(request);
11519-
abort(request);
11529+
abort(request, reason);
1152011530
}
1152111531
}, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams.
1152211532
{
@@ -11568,7 +11578,7 @@ function prerender(children, options) {
1156811578
},
1156911579
cancel: function (reason) {
1157011580
stopFlowing(request);
11571-
abort(request);
11581+
abort(request, reason);
1157211582
}
1157311583
}, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams.
1157411584
{

0 commit comments

Comments
 (0)