Skip to content

v0.295.0

Latest

Choose a tag to compare

@facebook-github-bot facebook-github-bot released this 18 Dec 23:54
· 38 commits to main since this release

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 of Symbol.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