Skip to content

Commit 4548674

Browse files
committed
Upgrade flow to 0.234.0
See [Flow changelog](https://github.com/facebook/flow/blob/main/Changelog.md) for changes in this version.
1 parent a827548 commit 4548674

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
6464
"fbjs-scripts": "^3.0.1",
6565
"filesize": "^6.0.1",
66-
"flow-bin": "^0.233.0",
67-
"flow-remove-types": "^2.233.0",
66+
"flow-bin": "^0.234.0",
67+
"flow-remove-types": "^2.234.0",
6868
"glob": "^7.1.6",
6969
"glob-stream": "^6.1.0",
7070
"google-closure-compiler": "^20230206.0.0",

packages/react-reconciler/src/ReactFiberThenable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function trackUsedThenable<T>(
214214
}
215215

216216
// Check one more time in case the thenable resolved synchronously.
217-
switch (thenable.status) {
217+
switch ((thenable as Thenable<T>).status) {
218218
case 'fulfilled': {
219219
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
220220
return fulfilledThenable.value;

packages/react-server/src/ReactFizzThenable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function trackUsedThenable<T>(
107107
}
108108

109109
// Check one more time in case the thenable resolved synchronously
110-
switch (thenable.status) {
110+
switch ((thenable as Thenable<T>).status) {
111111
case 'fulfilled': {
112112
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
113113
return fulfilledThenable.value;

packages/react-server/src/ReactFlightThenable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function trackUsedThenable<T>(
107107
}
108108

109109
// Check one more time in case the thenable resolved synchronously
110-
switch (thenable.status) {
110+
switch ((thenable as Thenable<T>).status) {
111111
case 'fulfilled': {
112112
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
113113
return fulfilledThenable.value;

packages/react/src/ReactChildren.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function resolveThenable<T>(thenable: Thenable<T>): T {
127127
}
128128

129129
// Check one more time in case the thenable resolved synchronously.
130-
switch (thenable.status) {
130+
switch ((thenable as Thenable<T>).status) {
131131
case 'fulfilled': {
132132
const fulfilledThenable: FulfilledThenable<T> = (thenable: any);
133133
return fulfilledThenable.value;

packages/react/src/ReactLazy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ function lazyInitializer<T>(payload: Payload<T>): T {
6161
// end up fixing it if the resolution was a concurrency bug.
6262
thenable.then(
6363
moduleObject => {
64-
if (payload._status === Pending || payload._status === Uninitialized) {
64+
if ((payload as Payload<T>)._status === Pending || payload._status === Uninitialized) {
6565
// Transition to the next state.
6666
const resolved: ResolvedPayload<T> = (payload: any);
6767
resolved._status = Resolved;
6868
resolved._result = moduleObject;
6969
}
7070
},
7171
error => {
72-
if (payload._status === Pending || payload._status === Uninitialized) {
72+
if ((payload as Payload<T>)._status === Pending || payload._status === Uninitialized) {
7373
// Transition to the next state.
7474
const rejected: RejectedPayload = (payload: any);
7575
rejected._status = Rejected;

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8320,12 +8320,12 @@ flatted@^3.2.9:
83208320
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
83218321
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
83228322

8323-
flow-bin@^0.233.2:
8324-
version "0.233.0"
8325-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.233.0.tgz#e31951c81d3ec590e1cbfd96e540f6dd2459554c"
8326-
integrity sha512-BInTgW8v6xdWzVcItgKKUYCacheMw78Xrrn0Ziii5lN+vf/RKmvVX9mFHuOSN1zawZuq7GpqmT6oIS/oQuOAQg==
8323+
flow-bin@^0.234.0:
8324+
version "0.234.0"
8325+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.234.0.tgz#17dfc5aac1d928b6d7194f93bd0bf742d735c77d"
8326+
integrity sha512-uLmvfFRW6yEcz2wSJ2H6192RwknBpzAHBezDcXzmxJASxB6QzjKadhPxZvsJ74uJ+9Th1hDNuRB4mGrVUeneyA==
83278327

8328-
flow-remove-types@^2.233.2:
8328+
flow-remove-types@^2.234.0:
83298329
version "2.238.2"
83308330
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.238.2.tgz#85c9d26e83ba395f0206a23bce438223bc035609"
83318331
integrity sha512-WJXRomjPiZ34nG14y7AceoPxg1L00FxjPSA3TDBTG2OPt8QFNtiYEmO4/3WG58n3C4wjxyVuoE6KjxQIvCDyjw==

0 commit comments

Comments
 (0)