mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Upgrade flow to 0.234.0 (#30117)
See [Flow changelog](https://github.com/facebook/flow/blob/main/Changelog.md) for changes in this version.
This commit is contained in:
@@ -63,8 +63,8 @@
|
||||
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
|
||||
"fbjs-scripts": "^3.0.1",
|
||||
"filesize": "^6.0.1",
|
||||
"flow-bin": "^0.233.0",
|
||||
"flow-remove-types": "^2.233.0",
|
||||
"flow-bin": "^0.234.0",
|
||||
"flow-remove-types": "^2.234.0",
|
||||
"glob": "^7.1.6",
|
||||
"glob-stream": "^6.1.0",
|
||||
"google-closure-compiler": "^20230206.0.0",
|
||||
|
||||
@@ -214,7 +214,7 @@ export function trackUsedThenable<T>(
|
||||
}
|
||||
|
||||
// Check one more time in case the thenable resolved synchronously.
|
||||
switch (thenable.status) {
|
||||
switch ((thenable: Thenable<T>).status) {
|
||||
case 'fulfilled': {
|
||||
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
|
||||
return fulfilledThenable.value;
|
||||
|
||||
@@ -107,7 +107,7 @@ export function trackUsedThenable<T>(
|
||||
}
|
||||
|
||||
// Check one more time in case the thenable resolved synchronously
|
||||
switch (thenable.status) {
|
||||
switch ((thenable: Thenable<T>).status) {
|
||||
case 'fulfilled': {
|
||||
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
|
||||
return fulfilledThenable.value;
|
||||
|
||||
@@ -107,7 +107,7 @@ export function trackUsedThenable<T>(
|
||||
}
|
||||
|
||||
// Check one more time in case the thenable resolved synchronously
|
||||
switch (thenable.status) {
|
||||
switch ((thenable: Thenable<T>).status) {
|
||||
case 'fulfilled': {
|
||||
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
|
||||
return fulfilledThenable.value;
|
||||
|
||||
@@ -127,7 +127,7 @@ function resolveThenable<T>(thenable: Thenable<T>): T {
|
||||
}
|
||||
|
||||
// Check one more time in case the thenable resolved synchronously.
|
||||
switch (thenable.status) {
|
||||
switch ((thenable: Thenable<T>).status) {
|
||||
case 'fulfilled': {
|
||||
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
|
||||
return fulfilledThenable.value;
|
||||
|
||||
@@ -61,7 +61,10 @@ function lazyInitializer<T>(payload: Payload<T>): T {
|
||||
// end up fixing it if the resolution was a concurrency bug.
|
||||
thenable.then(
|
||||
moduleObject => {
|
||||
if (payload._status === Pending || payload._status === Uninitialized) {
|
||||
if (
|
||||
(payload: Payload<T>)._status === Pending ||
|
||||
payload._status === Uninitialized
|
||||
) {
|
||||
// Transition to the next state.
|
||||
const resolved: ResolvedPayload<T> = (payload: any);
|
||||
resolved._status = Resolved;
|
||||
@@ -69,7 +72,10 @@ function lazyInitializer<T>(payload: Payload<T>): T {
|
||||
}
|
||||
},
|
||||
error => {
|
||||
if (payload._status === Pending || payload._status === Uninitialized) {
|
||||
if (
|
||||
(payload: Payload<T>)._status === Pending ||
|
||||
payload._status === Uninitialized
|
||||
) {
|
||||
// Transition to the next state.
|
||||
const rejected: RejectedPayload = (payload: any);
|
||||
rejected._status = Rejected;
|
||||
|
||||
10
yarn.lock
10
yarn.lock
@@ -8321,12 +8321,12 @@ flatted@^3.2.9:
|
||||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
|
||||
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
|
||||
|
||||
flow-bin@^0.233.0:
|
||||
version "0.233.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.233.0.tgz#e31951c81d3ec590e1cbfd96e540f6dd2459554c"
|
||||
integrity sha512-BInTgW8v6xdWzVcItgKKUYCacheMw78Xrrn0Ziii5lN+vf/RKmvVX9mFHuOSN1zawZuq7GpqmT6oIS/oQuOAQg==
|
||||
flow-bin@^0.234.0:
|
||||
version "0.234.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.234.0.tgz#17dfc5aac1d928b6d7194f93bd0bf742d735c77d"
|
||||
integrity sha512-uLmvfFRW6yEcz2wSJ2H6192RwknBpzAHBezDcXzmxJASxB6QzjKadhPxZvsJ74uJ+9Th1hDNuRB4mGrVUeneyA==
|
||||
|
||||
flow-remove-types@^2.233.0:
|
||||
flow-remove-types@^2.234.0:
|
||||
version "2.238.2"
|
||||
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.238.2.tgz#85c9d26e83ba395f0206a23bce438223bc035609"
|
||||
integrity sha512-WJXRomjPiZ34nG14y7AceoPxg1L00FxjPSA3TDBTG2OPt8QFNtiYEmO4/3WG58n3C4wjxyVuoE6KjxQIvCDyjw==
|
||||
|
||||
Reference in New Issue
Block a user