Releases: facebook/flow
Releases · facebook/flow
v0.301.0
v0.300.0
Misc:
- Minor changes to the flow-upgrade script
v0.299.0
Parser:
- Support
export declare, likedeclare export - For
componentin implicit declare context, the ast we produce will includeimplicitDeclare: true
v0.298.0
Likely to cause new Flow errors:
- Imported functions that conform to hook naming conventions will always be treated like hooks. As a result, new errors might be surfaced. e.g. conditional hook call
Parser:
- flow_parser.js now allows you to pass in
filenamein the option object
v0.297.0
New Features:
declarekeyword can be omitted fordeclare functionunder declaration context (.flow file, declare module, declare namespace)
v0.296.1
Parser:
- Fix parsing of experimental record expressions that are multiline
[flow] v0.296.0
Declarations:
- The
declarekeyword can be omitted fordeclare const/let/var variable: typeanddeclare componentunder a declaration context (libdef file, .js.flow file, declare module, declare namespace) declare componentnow requires the rest props to be named - matching normalcomponentdeclarations
Misc:
- The
Omit<O, K>utility type will no longer enforce that the provided keysKneed to be part ofO
v0.295.0
New Features:
- Support 4 well-known symbols (
Symbol.iterator,Symbol.asyncIterator,Symbol.dispose,Symbol.asyncDispose) in class methods. For now, the computed method name needs to be exactly in the form ofSymbol.iterator(or other 3 names) to be recognized.
Notable bug fixes:
- Flow will now error when a function parameter appears in the default expression for the same binding. (e.g. try-Flow)
Misc:
- Introduced a codemod for migrating legacy utility types to modern equivalents (
yarn run flow-codemod convertLegacyUtilityTypes)
Parser:
- Flow now parses import attributes. For now, we don't do any semantic validation yet
v0.294.0
Parser:
- Support second argument of import expressions
Bug Fixes:
- Fixed bug in computing type hints under JSX expressions (Example of bug fixed)
v0.293.0
Config:
use_mixed_in_catch_variablesoption was renameduse_unknown_in_catch_variablesbecausemixedis being renamed tounknown