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