chore(deps): update flow-parser #16835
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.250.0->0.254.20.25.0->0.25.1Release Notes
facebook/flow (flow-parser)
v0.254.2Compare Source
Misc:
v0.254.1Compare Source
Notable bug fixes:
v0.254.0Compare Source
Likely to cause new Flow errors:
Library Definitions:
toSplicedmethod type (thanks @aph!)v0.253.0Compare Source
Likely to cause new Flow errors:
React$ElementRefis now implemented with a conditional type instead of a builtin Flow utility type. You might see new errors with genericReact$ElementRef. Most of the times, you should replaceReact.ElementRef<T>with justTif there are no other uses of genericT.New Features:
@flowtypedlike directories viamodule.declaration_dirnamesconfig. e.g.Please note that when you set this,
@flowtypedat the root will no longer be considered special, and you will need to explicitly add it likeNotable bug fixes:
empty.IDE:
includeDeclarationfrom LSP request for find-references command. In practice, this means that "find all references" in vscode will continue to return both declaration and all uses, while "go to references" will exclude the declaration.v0.252.0Compare Source
Likely to cause new Flow errors:
$ReadOnlyapplied, which might cause new errors.New Features:
Notable bug fixes:
[declarations]section will have all lint errors silenced.v0.251.1Compare Source
Misc:
v0.251.0Compare Source
Likely to cause new Flow errors:
React.AbstractComponenttype. We recommend replacing them with component types. Since v0.249.0, we have provided a codemod via theflow-upgradepackage to aid larger codebases with this conversion:yarn run flow-codemod eliminateAbstractComponent path/to/src.React.AbstractComponenttype, we also removed support for the internalReact$AbstractComponentwhen more than 1 type argument has been passed. Similarly, you should migrate to use component types if you want to specify ref props and renders.New Features:
@flowtypeddirectory at the root, they can be resolved by the relative path without leading./relative to@flowtyped. e.g.<PROJECT_ROOT>/@​flowtyped/react.js.flowcan be used to type thereactpackage, and<PROJECT_ROOT>/@​flowtyped/react/jsx-runtime.js.flowcan be used to typereact/jsx-runtimemodule. We now recommend using this approach instead of usingdeclare modulein global libdef.Notable bug fixes:
anywill now correctly propagate to inferred render type. example.Library Definitions:
React.AbstractComponent. Most of the code won't be affected, but you might have to sometimes make the Props readonly.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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.