Skip to content

Commit 0bca45a

Browse files
panagosg7meta-codesync[bot]
authored andcommitted
Deploy 0.341.0 to xplat (#60165)
Summary: X-link: meta/relay#5459 Pull Request resolved: #60165 X-link: react/metro#2255 [changelog](https://github.com/facebook/flow/blob/main/Changelog.md) ## Library definitions Flow 0.341.0 rejects the explicit exact object syntax `{| |}` and unnamed function type parameters, and checks type applications inside generic definitions. Relay's `flow-typed/` definitions for Babel, chalk and Jest now write exact objects as `{ }` (objects are exact by default, so the meaning is unchanged), and the second parameter of Babel's `traverse` is named. In the shared `child_process` definition used by Metro and React Native, `MaybeStream` infers `E` from the optional `stdio` option, so `E` includes `void`; its indexed accesses now read `NonNullable<E>[FD]`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D133315654
1 parent e7729f7 commit 0bca45a

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.flowconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ untyped-import
119119
untyped-type-import
120120

121121
[version]
122-
^0.340.0
122+
^0.341.0

‎flow-typed/environment/node.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,9 @@ declare module 'child_process' {
539539
? StreamForChannel<FD>
540540
: E extends string
541541
? null
542-
: E[FD] extends child_process$StdioPipe
542+
: NonNullable<E>[FD] extends child_process$StdioPipe
543543
? StreamForChannel<FD>
544-
: E[FD] extends string | number
544+
: NonNullable<E>[FD] extends string | number
545545
? null
546546
: null | StreamForChannel<FD>
547547
: PipeByDefault extends true

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"eslint-plugin-relay": "^1.8.3",
9999
"fb-dotslash": "0.5.8",
100100
"flow-api-translator": "0.340.0",
101-
"flow-bin": "^0.340.0",
101+
"flow-bin": "^0.341.0",
102102
"flow-eslint": "0.340.0",
103103
"flow-parser": "0.340.0",
104104
"flow-transform": "0.340.0",

‎yarn.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4855,10 +4855,10 @@ flow-api-translator@0.340.0:
48554855
flow-transform "0.340.0"
48564856
typescript "5.3.2"
48574857

4858-
flow-bin@^0.340.0:
4859-
version "0.340.0"
4860-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.340.0.tgz#f3edbe6f235c9bc9ff735e5cae1dc8b0a96d55f7"
4861-
integrity sha512-XourZh2487go6B2RTIssruf5iH1rVATg7IdE8CGfMbey/93RJR5HTsqQEgVK33lmGhew8fTRLZmeSEyMVubMpw==
4858+
flow-bin@^0.341.0:
4859+
version "0.341.0"
4860+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.341.0.tgz#e10bd44a3031f84d7c091f3380d3dcf53af26b40"
4861+
integrity sha512-NgsIhAk4TNRXRHro00uu+dI0fUsrL8w1jcdQOIXLVxU9YS6YyrwbvxGJr5RQXtRqeu2ScN+oXfJG7ooMH7HlXw==
48624862

48634863
flow-enums-runtime@^0.0.6:
48644864
version "0.0.6"

0 commit comments

Comments
 (0)