Skip to content

Commit ee61e4a

Browse files
committed
[Float] support fetchpriority on ReactDOM.preload() and ReactDOM.preinit() (#26880)
exposes fetchPriority as an option for `ReactDOM.preload()` and `ReactDOM.preinit()` the typings should be `'high' | 'low' | 'auto'` DiffTrain build for [042d8f6](042d8f6)
1 parent d6f9de5 commit ee61e4a

21 files changed

+128
-80
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
811022232efed62a3c943701bc99d18655bc78b3
1+
042d8f606ce643d2eca955badbf07ea5b8ac266c

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-modern-a6d62651";
30+
var ReactVersion = "18.3.0-www-modern-c2caceb8";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-classic-3fed7141";
72+
var ReactVersion = "18.3.0-www-classic-173d7c2e";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-modern-a6d62651";
72+
var ReactVersion = "18.3.0-www-modern-c2caceb8";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10193,7 +10193,7 @@ var slice = Array.prototype.slice,
1019310193
return null;
1019410194
},
1019510195
bundleType: 0,
10196-
version: "18.3.0-www-classic-b3787f70",
10196+
version: "18.3.0-www-classic-808eab78",
1019710197
rendererPackageName: "react-art"
1019810198
};
1019910199
var internals$jscomp$inline_1318 = {
@@ -10224,7 +10224,7 @@ var internals$jscomp$inline_1318 = {
1022410224
scheduleRoot: null,
1022510225
setRefreshHandler: null,
1022610226
getCurrentFiber: null,
10227-
reconcilerVersion: "18.3.0-www-classic-b3787f70"
10227+
reconcilerVersion: "18.3.0-www-classic-808eab78"
1022810228
};
1022910229
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1023010230
var hook$jscomp$inline_1319 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34188,7 +34188,7 @@ function createFiberRoot(
3418834188
return root;
3418934189
}
3419034190

34191-
var ReactVersion = "18.3.0-www-classic-c483cedc";
34191+
var ReactVersion = "18.3.0-www-classic-632e744f";
3419234192

3419334193
function createPortal$1(
3419434194
children,
@@ -43845,7 +43845,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
4384543845
as: as,
4384643846
crossOrigin: as === "font" ? "" : options.crossOrigin,
4384743847
integrity: options.integrity,
43848-
type: options.type
43848+
type: options.type,
43849+
fetchPriority: options.fetchPriority
4384943850
};
4385043851
}
4385143852

@@ -43982,7 +43983,8 @@ function stylesheetPropsFromPreinitOptions(href, precedence, options) {
4398243983
href: href,
4398343984
"data-precedence": precedence,
4398443985
crossOrigin: options.crossOrigin,
43985-
integrity: options.integrity
43986+
integrity: options.integrity,
43987+
fetchPriority: options.fetchPriority
4398643988
};
4398743989
}
4398843990

@@ -43992,7 +43994,8 @@ function scriptPropsFromPreinitOptions(src, options) {
4399243994
async: true,
4399343995
crossOrigin: options.crossOrigin,
4399443996
integrity: options.integrity,
43995-
nonce: options.nonce
43997+
nonce: options.nonce,
43998+
fetchPriority: options.fetchPriority
4399643999
};
4399744000
} // This function is called in begin work and we should always have a currentDocument set
4399844001

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34033,7 +34033,7 @@ function createFiberRoot(
3403334033
return root;
3403434034
}
3403534035

34036-
var ReactVersion = "18.3.0-www-modern-675a1233";
34036+
var ReactVersion = "18.3.0-www-modern-c632da18";
3403734037

3403834038
function createPortal$1(
3403934039
children,
@@ -44355,7 +44355,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
4435544355
as: as,
4435644356
crossOrigin: as === "font" ? "" : options.crossOrigin,
4435744357
integrity: options.integrity,
44358-
type: options.type
44358+
type: options.type,
44359+
fetchPriority: options.fetchPriority
4435944360
};
4436044361
}
4436144362

@@ -44492,7 +44493,8 @@ function stylesheetPropsFromPreinitOptions(href, precedence, options) {
4449244493
href: href,
4449344494
"data-precedence": precedence,
4449444495
crossOrigin: options.crossOrigin,
44495-
integrity: options.integrity
44496+
integrity: options.integrity,
44497+
fetchPriority: options.fetchPriority
4449644498
};
4449744499
}
4449844500

@@ -44502,7 +44504,8 @@ function scriptPropsFromPreinitOptions(src, options) {
4450244504
async: true,
4450344505
crossOrigin: options.crossOrigin,
4450444506
integrity: options.integrity,
44505-
nonce: options.nonce
44507+
nonce: options.nonce,
44508+
fetchPriority: options.fetchPriority
4450644509
};
4450744510
} // This function is called in begin work and we should always have a currentDocument set
4450844511

compiled/facebook-www/ReactDOM-prod.classic.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15314,7 +15314,8 @@ function preload$1(href, options) {
1531415314
as: as,
1531515315
crossOrigin: "font" === as ? "" : options.crossOrigin,
1531615316
integrity: options.integrity,
15317-
type: options.type
15317+
type: options.type,
15318+
fetchPriority: options.fetchPriority
1531815319
}),
1531915320
preloadPropsMap.set(key, href),
1532015321
null !== ownerDocument.querySelector(limitedEscapedHref) ||
@@ -15356,7 +15357,8 @@ function preinit$1(href, options) {
1535615357
href: href,
1535715358
"data-precedence": precedence,
1535815359
crossOrigin: options.crossOrigin,
15359-
integrity: options.integrity
15360+
integrity: options.integrity,
15361+
fetchPriority: options.fetchPriority
1536015362
};
1536115363
(options = preloadPropsMap.get(key)) &&
1536215364
adoptPreloadPropsForStylesheet(href, options);
@@ -15396,7 +15398,8 @@ function preinit$1(href, options) {
1539615398
async: !0,
1539715399
crossOrigin: options.crossOrigin,
1539815400
integrity: options.integrity,
15399-
nonce: options.nonce
15401+
nonce: options.nonce,
15402+
fetchPriority: options.fetchPriority
1540015403
}),
1540115404
(options = preloadPropsMap.get(key)) &&
1540215405
adoptPreloadPropsForScript(href, options),
@@ -16652,7 +16655,7 @@ Internals.Events = [
1665216655
var devToolsConfig$jscomp$inline_1822 = {
1665316656
findFiberByHostInstance: getClosestInstanceFromNode,
1665416657
bundleType: 0,
16655-
version: "18.3.0-www-classic-3fed7141",
16658+
version: "18.3.0-www-classic-173d7c2e",
1665616659
rendererPackageName: "react-dom"
1665716660
};
1665816661
var internals$jscomp$inline_2196 = {
@@ -16682,7 +16685,7 @@ var internals$jscomp$inline_2196 = {
1668216685
scheduleRoot: null,
1668316686
setRefreshHandler: null,
1668416687
getCurrentFiber: null,
16685-
reconcilerVersion: "18.3.0-www-classic-3fed7141"
16688+
reconcilerVersion: "18.3.0-www-classic-173d7c2e"
1668616689
};
1668716690
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1668816691
var hook$jscomp$inline_2197 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16925,4 +16928,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
1692516928
);
1692616929
};
1692716930
exports.unstable_runWithPriority = runWithPriority;
16928-
exports.version = "18.3.0-www-classic-3fed7141";
16931+
exports.version = "18.3.0-www-classic-173d7c2e";

compiled/facebook-www/ReactDOM-prod.modern.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15542,7 +15542,8 @@ function preload$1(href, options) {
1554215542
as: as,
1554315543
crossOrigin: "font" === as ? "" : options.crossOrigin,
1554415544
integrity: options.integrity,
15545-
type: options.type
15545+
type: options.type,
15546+
fetchPriority: options.fetchPriority
1554615547
}),
1554715548
preloadPropsMap.set(key, href),
1554815549
null !== ownerDocument.querySelector(limitedEscapedHref) ||
@@ -15584,7 +15585,8 @@ function preinit$1(href, options) {
1558415585
href: href,
1558515586
"data-precedence": precedence,
1558615587
crossOrigin: options.crossOrigin,
15587-
integrity: options.integrity
15588+
integrity: options.integrity,
15589+
fetchPriority: options.fetchPriority
1558815590
};
1558915591
(options = preloadPropsMap.get(key)) &&
1559015592
adoptPreloadPropsForStylesheet(href, options);
@@ -15624,7 +15626,8 @@ function preinit$1(href, options) {
1562415626
async: !0,
1562515627
crossOrigin: options.crossOrigin,
1562615628
integrity: options.integrity,
15627-
nonce: options.nonce
15629+
nonce: options.nonce,
15630+
fetchPriority: options.fetchPriority
1562815631
}),
1562915632
(options = preloadPropsMap.get(key)) &&
1563015633
adoptPreloadPropsForScript(href, options),
@@ -16179,7 +16182,7 @@ Internals.Events = [
1617916182
var devToolsConfig$jscomp$inline_1781 = {
1618016183
findFiberByHostInstance: getClosestInstanceFromNode,
1618116184
bundleType: 0,
16182-
version: "18.3.0-www-modern-bef260c7",
16185+
version: "18.3.0-www-modern-dfc97c3e",
1618316186
rendererPackageName: "react-dom"
1618416187
};
1618516188
var internals$jscomp$inline_2160 = {
@@ -16210,7 +16213,7 @@ var internals$jscomp$inline_2160 = {
1621016213
scheduleRoot: null,
1621116214
setRefreshHandler: null,
1621216215
getCurrentFiber: null,
16213-
reconcilerVersion: "18.3.0-www-modern-bef260c7"
16216+
reconcilerVersion: "18.3.0-www-modern-dfc97c3e"
1621416217
};
1621516218
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1621616219
var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16381,4 +16384,4 @@ exports.unstable_createEventHandle = function (type, options) {
1638116384
return eventHandle;
1638216385
};
1638316386
exports.unstable_runWithPriority = runWithPriority;
16384-
exports.version = "18.3.0-www-modern-bef260c7";
16387+
exports.version = "18.3.0-www-modern-dfc97c3e";

compiled/facebook-www/ReactDOM-profiling.classic.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16089,7 +16089,8 @@ function preload$1(href, options) {
1608916089
as: as,
1609016090
crossOrigin: "font" === as ? "" : options.crossOrigin,
1609116091
integrity: options.integrity,
16092-
type: options.type
16092+
type: options.type,
16093+
fetchPriority: options.fetchPriority
1609316094
}),
1609416095
preloadPropsMap.set(key, href),
1609516096
null !== ownerDocument.querySelector(limitedEscapedHref) ||
@@ -16131,7 +16132,8 @@ function preinit$1(href, options) {
1613116132
href: href,
1613216133
"data-precedence": precedence,
1613316134
crossOrigin: options.crossOrigin,
16134-
integrity: options.integrity
16135+
integrity: options.integrity,
16136+
fetchPriority: options.fetchPriority
1613516137
};
1613616138
(options = preloadPropsMap.get(key)) &&
1613716139
adoptPreloadPropsForStylesheet(href, options);
@@ -16171,7 +16173,8 @@ function preinit$1(href, options) {
1617116173
async: !0,
1617216174
crossOrigin: options.crossOrigin,
1617316175
integrity: options.integrity,
16174-
nonce: options.nonce
16176+
nonce: options.nonce,
16177+
fetchPriority: options.fetchPriority
1617516178
}),
1617616179
(options = preloadPropsMap.get(key)) &&
1617716180
adoptPreloadPropsForScript(href, options),
@@ -17427,7 +17430,7 @@ Internals.Events = [
1742717430
var devToolsConfig$jscomp$inline_1907 = {
1742817431
findFiberByHostInstance: getClosestInstanceFromNode,
1742917432
bundleType: 0,
17430-
version: "18.3.0-www-classic-b3787f70",
17433+
version: "18.3.0-www-classic-808eab78",
1743117434
rendererPackageName: "react-dom"
1743217435
};
1743317436
(function (internals) {
@@ -17471,7 +17474,7 @@ var devToolsConfig$jscomp$inline_1907 = {
1747117474
scheduleRoot: null,
1747217475
setRefreshHandler: null,
1747317476
getCurrentFiber: null,
17474-
reconcilerVersion: "18.3.0-www-classic-b3787f70"
17477+
reconcilerVersion: "18.3.0-www-classic-808eab78"
1747517478
});
1747617479
assign(Internals, {
1747717480
ReactBrowserEventEmitter: {
@@ -17701,7 +17704,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
1770117704
);
1770217705
};
1770317706
exports.unstable_runWithPriority = runWithPriority;
17704-
exports.version = "18.3.0-www-classic-b3787f70";
17707+
exports.version = "18.3.0-www-classic-808eab78";
1770517708

1770617709
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
1770717710
if (

0 commit comments

Comments
 (0)