Skip to content

Commit

Permalink
Update React from 09285d5a7 to d900fadbf.
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Sep 29, 2023
1 parent d664f9a commit b8445db
Show file tree
Hide file tree
Showing 84 changed files with 11,568 additions and 8,465 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@
"random-seed": "0.3.0",
"react": "18.2.0",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@18.3.0-canary-09285d5a7-20230925",
"react-builtin": "npm:react@18.3.0-canary-d900fadbf-20230929",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@18.3.0-canary-09285d5a7-20230925",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-09285d5a7-20230925",
"react-experimental-builtin": "npm:react@0.0.0-experimental-09285d5a7-20230925",
"react-server-dom-webpack": "18.3.0-canary-09285d5a7-20230925",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-09285d5a7-20230925",
"react-dom-builtin": "npm:react-dom@18.3.0-canary-d900fadbf-20230929",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-d900fadbf-20230929",
"react-experimental-builtin": "npm:react@0.0.0-experimental-d900fadbf-20230929",
"react-server-dom-webpack": "18.3.0-canary-d900fadbf-20230929",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-d900fadbf-20230929",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
Expand All @@ -209,8 +209,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.6",
"scheduler-builtin": "npm:scheduler@0.24.0-canary-09285d5a7-20230925",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-09285d5a7-20230925",
"scheduler-builtin": "npm:scheduler@0.24.0-canary-d900fadbf-20230929",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-d900fadbf-20230929",
"seedrandom": "3.0.5",
"selenium-webdriver": "4.0.0-beta.4",
"semver": "7.3.7",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (process.env.NODE_ENV !== "production") {

var React = require("next/dist/compiled/react-experimental");

var ReactVersion = '18.3.0-experimental-09285d5a7-20230925';
var ReactVersion = '18.3.0-experimental-d900fadbf-20230929';

var Internals = {
usingClientEntryPoint: false,
Expand Down Expand Up @@ -65,6 +65,25 @@ function printWarning(level, format, args) {
}
}

function getCrossOriginString(input) {
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}

return undefined;
}
function getCrossOriginStringAs(as, input) {
if (as === 'font') {
return '';
}

if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}

return undefined;
}

var Dispatcher = Internals.Dispatcher;
function prefetchDNS(href) {
{
Expand Down Expand Up @@ -104,7 +123,7 @@ function preconnect(href, options) {
var dispatcher = Dispatcher.current;

if (dispatcher && typeof href === 'string') {
var crossOrigin = options ? getCrossOrigin('preconnect', options.crossOrigin) : null;
var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
dispatcher.preconnect(href, crossOrigin);
} // We don't error because preconnect needs to be resilient to being called in a variety of scopes
// and the runtime may not be capable of responding. The function is optimistic and not critical
Expand Down Expand Up @@ -135,7 +154,7 @@ function preload(href, options) {
if (dispatcher && typeof href === 'string' && // We check existence because we cannot enforce this function is actually called with the stated type
typeof options === 'object' && options !== null && typeof options.as === 'string') {
var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
dispatcher.preload(href, as, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
Expand Down Expand Up @@ -174,7 +193,7 @@ function preloadModule(href, options) {

if (dispatcher && typeof href === 'string') {
if (options) {
var crossOrigin = getCrossOrigin(options.as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preloadModule(href, {
as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,
crossOrigin: crossOrigin,
Expand Down Expand Up @@ -203,7 +222,7 @@ function preinit(href, options) {

if (dispatcher && typeof href === 'string' && options && typeof options.as === 'string') {
var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;
var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;

Expand Down Expand Up @@ -265,23 +284,24 @@ function preinitModule(href, options) {
var dispatcher = Dispatcher.current;

if (dispatcher && typeof href === 'string') {
if (options == null || typeof options === 'object' && (options.as == null || options.as === 'script')) {
var crossOrigin = options ? getCrossOrigin(undefined, options.crossOrigin) : undefined;
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: options && typeof options.integrity === 'string' ? options.integrity : undefined
});
if (typeof options === 'object' && options !== null) {
if (options.as == null || options.as === 'script') {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} else if (options == null) {
dispatcher.preinitModuleScript(href);
}
} // We don't error because preinit needs to be resilient to being called in a variety of scopes
// and the runtime may not be capable of responding. The function is optimistic and not critical
// so we favor silent bailout over warning or erroring.

}

function getCrossOrigin(as, crossOrigin) {
return as === 'font' ? '' : typeof crossOrigin === 'string' ? crossOrigin === 'use-credentials' ? 'use-credentials' : '' : undefined;
}

function getValueDescriptorExpectingObjectForWarning(thing) {
return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8445db

Please sign in to comment.