chore(deps): update dependency flow-parser to v0.233.0 #16179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.229.0
->0.233.0
Release Notes
facebook/flow (flow-parser)
v0.233.0
Compare Source
Likely to cause new Flow errors:
Notable bug fixes:
of bigint
during parsing. We were previously not correctly inferring that this was a bigint enum.Parser:
ReadOnlyTypeAnnotation
in parser output for annotations likereadonly string[]
. Now we output it asTypeOperator
with"operator": "readonly"
IDE:
as
oras const
has low precedenceLibrary Definitions:
v0.232.0
Compare Source
Likely to cause new Flow errors:
$Compose
and$ComposeReverse
types are removed. We recommend to use overloads to approximate their behavior instead. e.g.New Features:
isValid
Flow Enums method to use a type guard, allowing it to refine its input to the enum type in a conditional context.E.g.
export type Foo = ...
andexport interface Bar {...}
statements are now allowed indeclare module
anddeclare namespace
bodies.flow codemod remove-unnecessary-react-import
which can help remove unnecessary react imports underreact.runtime=automatic
Notable bug fixes:
as
oras const
has low precedenceLibrary Definitions:
window.showOpenFilePicker()
: MDN, WICGwindow.showSaveFilePicker()
: MDN, WICGwindow.showDirectoryPicker()
: MDN, WICGDataTransferItem.getAsFileSystemHandle()
: MDN, WICGStorageManager.getDirectory()
: MDN, WHATWGv0.231.0
Compare Source
Likely to cause new Flow errors:
New Features:
method-unbinding
errors with indexed access types.relay_integration.esmodules
option. When this option, along withrelay_integration
, is enabled, Flow will treatgraphql
fragments/queries/etc. asimport default
rather thanrequire
. Use this when you ouput ESM from Relay's codegen (e.g.eagerEsModules
).Notable bug fixes:
AsyncGenerator<T, void, void>
type is expected (e.g. try-Flow)IDE:
AUTO332
appeared in the result of string literal type completion.Library Definitions:
FileSystem
APIs (thanks @ZelJin).StorageManager
class (thanks @ZelJin).checkPropTypes
,DOM
,createClass
,ConcurrentMode
fromreact
module.import React from 'react'
, they can also be used without imports, e.g.type N = React.Node
.v0.230.0
Compare Source
Likely to cause new Flow errors:
Array = 3; $ReadOnlyArray = 2;
Now the latter is banned.value-as-type
orrecursive-definition
errors will no longer affect which branch to take in overload resolution.New Features:
type T = typeof foo<string>
. This syntax is supported in prettier since v3.1. If you previously enabled the flagtypeof_with_type_arguments=true
, you need to remove it.<Foo<string, _, number >propA='d' />
. Note that some type arguments can be inferred using the_
syntax.NoInfer
intrinsic that will be available in TypeScript 5.4.experimental.ts_syntax=true
, Flow will$ReadOnly<[...]>
and$ReadOnlyArray<...>
without error.$Keys
without error. Note that there are behavior differences between$Keys<>
andkeyof
right now (flow, TS), so use it with caution.unknown
never
andundefined
into Flow equivalentmixed
empty
andvoid
without error.readonly
in
out
,in out
without error.Misc:
experimental.ts_syntax
is now always on in https://flow.org/try.v0.229.2
Compare Source
Misc:
experimental.blocking_worker_communication=false
.Configuration
📅 Schedule: Branch creation - "after 01:00 on sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.