Repository navigation
v0.196.0
·
8155 commits
to main
since this release
Likely to cause new Flow errors:
- Instead of
mixed, type the result ofObject.valuesandObject.entrieson a dictionary to be the dictionary values, andObject.entrieskeys to behave likeObject.keys. Closes #2174, #2221, #4771, #4997, #5838. - Ban array inputs to
Object.valuesandObject.entries. - Function's
nameandlengthproperty are now not writable. - Fix
Object.keys,$Values, and$Keyson interfaces with indexers. - Delete
$Subtypeand$SuperTypeutilities. - Delete
deprecated-utilityFlow lint.
New Features:
- An annotation is no longer required when exporting + expressions (e.g.,
export default (3 + 3 : number)can now just beexport default 3 + 3;).
Notable bug fixes:
- Fix unary and binary arithmetic operations on bigints being exported/imported across modules as
anyornumber. - 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
1ortrueto be truthy. Before, anything other than0andfalsewas 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
ReactSetStateFunctiontype alias in react. This is the type ofsetValinconst [val, setVal] = React.useState(...).