github facebook/flow v0.173.0

latest releases: v0.239.0, v0.238.3, v0.238.2...
2 years ago

Likely to cause new Flow errors:

  • Modified the behavior of instanceof checks and other refinements to more consistently detect when impossible or invalid refinements are made. This will result in new errors in such cases.

New Features:

  • Improved error messages by providing a suggested property when properties are missing in a conditional context.

Notable bug fixes:

  • Fix "matching property" checks with generic inputs (try-Flow). Thanks @gnprice for bringing up this issue and exploring potential causes!
  • Fixed a bug where the use of certain utility types in polymorphic functions caused errors to not be reported (e.g. try-Flow)
  • Fix a bug where the [method-unbinding] error was reported twice

Misc:

  • OCaml version 4.12.1 is required to build Flow
  • React default exports are now inexact, as technically this can include unknown properties (experimental features)

Parser:

  • Fixed a bug where type parameter instantiations that start with < (e.g., f<<T>()=>S>()) would be incorrectly parsed as the left shift operator.

Library Definitions:

Don't miss a new flow release

NewReleases is sending notifications on new releases.