github facebook/flow v0.295.0

13 hours ago

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

Don't miss a new flow release

NewReleases is sending notifications on new releases.