github facebook/flow v0.186.0

latest releases: v0.247.1, v0.247.0, v0.246.0...
2 years ago

Notable breaking changes:

  • Support for inference_mode=classic has been removed. The default is now inference_mode=constrain_writes. Please refer to the blog post for migration paths. Additionally we have removed all codemod commands that depend on the classic inference mode. This includes the annotate-declarations, rename-redefinitions and annotate-escaped-generics codemods.

Likely to cause new Flow errors:

  • Exported functions can only have properties assigned in the same scope as the function.
  • Improve behavior of index property access with union types (try-Flow example). May cause new errors in interaction with computed properties.
  • Referencing this in object getters and setters are now banned. Referencing this in object methods are already banned, and this change makes Flow's behavior more consistent.

Notable bug fixes:

  • Fixed a regression in destructuring checking with computed properties (issue).

Library Definitions:

  • Added PerformanceServerTiming definition and the serverTiming attribute to PerformanceResourceTiming.

Don't miss a new flow release

NewReleases is sending notifications on new releases.