Likely to cause new Flow errors:
- Modified the behavior of
instanceofchecks 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:
- Add bindings for NodeJS
util.types