chore(deps): update dependency flow-parser to v0.221.0 #15637
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.217.0
->0.221.0
Release Notes
facebook/flow (flow-parser)
v0.221.0
Compare Source
Likely to cause new Flow errors:
React.Fragment
to only accept children and the key prop.React.useRef
to return an opaque type.any
without error.Notable bug fixes:
Performance:
D510558
samzhou19815)D508506
samzhou19815)Library Definitions:
IntersectionObserver
types.IndexedDB
transaction now allows consumingstoreNames
asDOMStringList
.options
to IndexedDB transaction.durability
to IDBTransaction.v0.220.1
Compare Source
Notable bug fixes:
v0.220.0
Compare Source
Likely to cause new Flow errors:
| void
Notable bug fixes:
v0.219.5
Compare Source
Misc:
v0.219.4
Compare Source
Misc:
v0.219.3
Compare Source
Misc:
v0.219.2
Compare Source
Misc:
v0.219.0
Compare Source
Likely to cause new Flow errors:
React.Element
to be an inexact empty object, effectively making it opaque.React doesn't recommend inspecting children and React.Element, so we make the change to increase friction. See https://react.dev/reference/react/Children#alternatives for alternatives.
To keep existing code type safe, you can add a function like the following to explicitly expose the internal of
React.Element
:A
inA extends B ? C : D
is a generic type. This is a behavior change that might cause new errors (example). Previously, we distribute over unions in more cases, which contradicts what we said in the docs, and caused some weird behavior that's fixed in this version.propTypes
, Flow will now emitsignature-verification-failure
.New Features:
casting_syntax
option which can becolon
(current),as
, orboth
. If setting isboth
, both(x: T)
andx as T
are allowed. If set tocolon
oras
, only(x: T)
andx as T
are allowed respectively.Notable bug fixes:
Misc:
React.Element
types. Instead, it will insert general types likeReact.MixedElement
.Library Definitions:
CanvasRenderingContext2D.roundRect
.tagName
to DOM element declarations (thanks @aselbie).v0.218.1
Compare Source
New Features:
--incremental-error-collation
.)v0.218.0
Compare Source
Likely to cause new Flow errors:
$ReadOnly
, which is previously completely unchecked. It also results in Flow complaining about some incorrect bounds. exampleNew Features:
Notable bug fixes:
obj[m](arg)
.Misc:
Library Definitions:
Array.prototype.findLastIndex()
,String.prototype.at()
,TypedArray.prototype.at()
andObject.hasOwn()
(thanks @pascalduez).URL
defintions (thanks @pascalduez).v0.217.2
Compare Source
This is same as 0.217.1, but we have some issue publishing 0.217.1 to npm, so we will publish this new version instead.
v0.217.1
Compare Source
Notable bug fixes:
experimental.global_find_ref=true
/experimental.global_rename=true
) is ongoing, all other IDE services will be blocked. We fixed it so that other IDE requests can still be served.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.