Skip to content

Commit

Permalink
Add referrerPolicy option to ReactDOM.preload() (#27096)
Browse files Browse the repository at this point in the history
DiffTrain build for [9377e10](9377e10)
  • Loading branch information
gnoff committed Jul 12, 2023
1 parent dd13f6d commit b7038da
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 48 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0a360642dcc08cab469da0a0e4f1050e56b0ef7e
9377e10105b41976c77c7f664f2363cb8c41ac8a
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-www-modern-4c77dfb7";
var ReactVersion = "18.3.0-www-modern-72e01e9a";

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

var ReactVersion = "18.3.0-www-modern-8b06a228";
var ReactVersion = "18.3.0-www-modern-943f2df7";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -9773,7 +9773,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-3093a806",
version: "18.3.0-www-modern-968fdb5d",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1286 = {
Expand Down Expand Up @@ -9804,7 +9804,7 @@ var internals$jscomp$inline_1286 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-3093a806"
reconcilerVersion: "18.3.0-www-modern-968fdb5d"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1287 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -33959,7 +33959,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-0088504d";
var ReactVersion = "18.3.0-www-classic-f72bc956";

function createPortal$1(
children,
Expand Down Expand Up @@ -43613,7 +43613,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -33804,7 +33804,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-8b06a228";
var ReactVersion = "18.3.0-www-modern-943f2df7";

function createPortal$1(
children,
Expand Down Expand Up @@ -44123,7 +44123,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
9 changes: 5 additions & 4 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15245,7 +15245,8 @@ function preload$1(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}),
preloadPropsMap.set(imageSrcSet, href),
null !== ownerDocument.querySelector(preloadSelector) ||
Expand Down Expand Up @@ -16587,7 +16588,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1803 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-70e759d7",
version: "18.3.0-www-classic-916922f2",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2162 = {
Expand Down Expand Up @@ -16617,7 +16618,7 @@ var internals$jscomp$inline_2162 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-70e759d7"
reconcilerVersion: "18.3.0-www-classic-916922f2"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2163 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16845,4 +16846,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-70e759d7";
exports.version = "18.3.0-www-classic-916922f2";
9 changes: 5 additions & 4 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15476,7 +15476,8 @@ function preload$1(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}),
preloadPropsMap.set(imageSrcSet, href),
null !== ownerDocument.querySelector(preloadSelector) ||
Expand Down Expand Up @@ -16117,7 +16118,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1762 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-3093a806",
version: "18.3.0-www-modern-968fdb5d",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2126 = {
Expand Down Expand Up @@ -16148,7 +16149,7 @@ var internals$jscomp$inline_2126 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-3093a806"
reconcilerVersion: "18.3.0-www-modern-968fdb5d"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2127 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16304,4 +16305,4 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-3093a806";
exports.version = "18.3.0-www-modern-968fdb5d";
9 changes: 5 additions & 4 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16019,7 +16019,8 @@ function preload$1(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}),
preloadPropsMap.set(imageSrcSet, href),
null !== ownerDocument.querySelector(preloadSelector) ||
Expand Down Expand Up @@ -17361,7 +17362,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1888 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-6909cf24",
version: "18.3.0-www-classic-ebef7616",
rendererPackageName: "react-dom"
};
(function (internals) {
Expand Down Expand Up @@ -17405,7 +17406,7 @@ var devToolsConfig$jscomp$inline_1888 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-6909cf24"
reconcilerVersion: "18.3.0-www-classic-ebef7616"
});
assign(Internals, {
ReactBrowserEventEmitter: {
Expand Down Expand Up @@ -17620,7 +17621,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-6909cf24";
exports.version = "18.3.0-www-classic-ebef7616";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
9 changes: 5 additions & 4 deletions compiled/facebook-www/ReactDOM-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16244,7 +16244,8 @@ function preload$1(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}),
preloadPropsMap.set(imageSrcSet, href),
null !== ownerDocument.querySelector(preloadSelector) ||
Expand Down Expand Up @@ -16885,7 +16886,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1847 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-f864898a",
version: "18.3.0-www-modern-d2fbfe61",
rendererPackageName: "react-dom"
};
(function (internals) {
Expand Down Expand Up @@ -16930,7 +16931,7 @@ var devToolsConfig$jscomp$inline_1847 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-f864898a"
reconcilerVersion: "18.3.0-www-modern-d2fbfe61"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function (children, container) {
Expand Down Expand Up @@ -17073,7 +17074,7 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-f864898a";
exports.version = "18.3.0-www-modern-d2fbfe61";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOMServer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");

var ReactVersion = "18.3.0-www-classic-59ab606e";
var ReactVersion = "18.3.0-www-classic-ee8ed08d";

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down Expand Up @@ -7564,7 +7564,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOMServer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");

var ReactVersion = "18.3.0-www-modern-dbe91128";
var ReactVersion = "18.3.0-www-modern-4ffe83e1";

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down Expand Up @@ -7564,7 +7564,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOMServer-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,8 @@ function preload(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}
}),
resources.preloadsMap.set(key, imageSizes),
Expand Down Expand Up @@ -4011,4 +4012,4 @@ exports.renderToString = function (children, options) {
'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'
);
};
exports.version = "18.3.0-www-classic-c58293ed";
exports.version = "18.3.0-www-classic-4b8ece22";
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOMServer-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,8 @@ function preload(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}
}),
resources.preloadsMap.set(key, imageSizes),
Expand Down Expand Up @@ -3909,4 +3910,4 @@ exports.renderToString = function (children, options) {
'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'
);
};
exports.version = "18.3.0-www-modern-c35c81e5";
exports.version = "18.3.0-www-modern-d39c47bb";
3 changes: 2 additions & 1 deletion compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -7571,7 +7571,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
3 changes: 2 additions & 1 deletion compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,8 @@ function preload(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}
}),
resources.preloadsMap.set(key, imageSizes),
Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOMTesting-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -34576,7 +34576,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-b2b9e4a6";
var ReactVersion = "18.3.0-www-classic-a531a795";

function createPortal$1(
children,
Expand Down Expand Up @@ -44362,7 +44362,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
5 changes: 3 additions & 2 deletions compiled/facebook-www/ReactDOMTesting-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -34421,7 +34421,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-20a09ab9";
var ReactVersion = "18.3.0-www-modern-65b5d253";

function createPortal$1(
children,
Expand Down Expand Up @@ -44872,7 +44872,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
};
}

Expand Down
9 changes: 5 additions & 4 deletions compiled/facebook-www/ReactDOMTesting-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15574,7 +15574,8 @@ function preload$1(href, options) {
nonce: options.nonce,
fetchPriority: options.fetchPriority,
imageSrcSet: options.imageSrcSet,
imageSizes: options.imageSizes
imageSizes: options.imageSizes,
referrerPolicy: options.referrerPolicy
}),
preloadPropsMap.set(imageSrcSet, href),
null !== ownerDocument.querySelector(preloadSelector) ||
Expand Down Expand Up @@ -16916,7 +16917,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1832 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-050fa36f",
version: "18.3.0-www-classic-e6783962",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2196 = {
Expand Down Expand Up @@ -16946,7 +16947,7 @@ var internals$jscomp$inline_2196 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-050fa36f"
reconcilerVersion: "18.3.0-www-classic-e6783962"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2197 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17325,4 +17326,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-050fa36f";
exports.version = "18.3.0-www-classic-e6783962";
Loading

0 comments on commit b7038da

Please sign in to comment.