🎁 This is (hopefully) our last release of the year. Happy holidays! 🎁
Improve performance when unions flow to intersections
Fix a crash when using the experimental saved_state.allow_reinit option
v0.196.1
Fix some missing autocomplete results (regression in 0.196.0)
v0.196.0
Likely to cause new Flow errors:
Instead of mixed, type the result of Object.values and Object.entries on a dictionary to be the dictionary values, and Object.entries keys to behave like Object.keys. Closes #2174, #2221, #4771, #4997, #5838.
Ban array inputs to Object.values and Object.entries.
Function's name and length property are now not writable.
Fix Object.keys, $Values, and $Keys on interfaces with indexers.
Delete $Subtype and $SuperType utilities.
Delete deprecated-utility Flow lint.
New Features:
An annotation is no longer required when exporting + expressions (e.g., export default (3 + 3 : number) can now just be export default 3 + 3;).
Notable bug fixes:
Fix unary and binary arithmetic operations on bigints being exported/imported across modules as any or number.
Fix autocomplete of string literals in bracket syntax, after a quote has already been typed.
Improve sorting of results when autocompleting types.
Boolean CLI flags must now be 1 or true to be truthy. Before, anything other than 0 and false was considered truthy.
Misc:
Autocomplete results are now sorted case-insensitively.
Autocomplete results are now sorted using a fuzzy score, in the same manner as VSCode.
Library Definitions:
Add ReactSetStateFunction type alias in react. This is the type of setVal in const [val, setVal] = React.useState(...).
🎁 This is (hopefully) our last release of the year. Happy holidays! 🎁
Improve performance when unions flow to intersections
Fix a crash when using the experimental saved_state.allow_reinit option
0.196.1
Fix some missing autocomplete results (regression in 0.196.0)
0.196.0
Likely to cause new Flow errors:
Instead of mixed, type the result of Object.values and Object.entries on a dictionary to be the dictionary values, and Object.entries keys to behave like Object.keys. Closes #2174, #2221, #4771, #4997, #5838.
Ban array inputs to Object.values and Object.entries.
Function's name and length property are now not writable.
Fix Object.keys, $Values, and $Keys on interfaces with indexers.
Delete $Subtype and $SuperType utilities.
Delete deprecated-utility Flow lint.
New Features:
An annotation is no longer required when exporting + expressions (e.g., export default (3 + 3 : number) can now just be export default 3 + 3;).
Notable bug fixes:
Fix unary and binary arithmetic operations on bigints being exported/imported across modules as any or number.
Fix autocomplete of string literals in bracket syntax, after a quote has already been typed.
Improve sorting of results when autocompleting types.
Boolean CLI flags must now be 1 or true to be truthy. Before, anything other than 0 and false was considered truthy.
Misc:
Autocomplete results are now sorted case-insensitively.
Autocomplete results are now sorted using a fuzzy score, in the same manner as VSCode.
Library Definitions:
Add ReactSetStateFunction type alias in react. This is the type of setVal in const [val, setVal] = React.useState(...).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps flow-parser from 0.195.2 to 0.196.2.
Release notes
Sourced from flow-parser's releases.
Changelog
Sourced from flow-parser's changelog.
Commits
882b3ad
v0.196.2d6bf6b7
Break up intersections instead of unions inUnionT ~> IntersectionT
c3fd3e4
remove useless LSP stack traces6fc23cd
fix crash from unchecked deps during reinitf2d9650
v0.196.15b58200
restore sorting of unranked autoimportsf6fa610
add tests for unranked autoimports811c1c2
fix fuzzy scores of 05a44d51
v0.196.0c567aeb
Upgrade js_of_ocaml versionDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)