github facebook/flow 0.192.0

latest releases: v0.252.0, v0.251.1, v0.251.0...
2 years ago

Notable changes:

Likely to cause new Flow errors:

  • Unknown computed properties assignments are now completely banned. Previously, they were still allowed if the object is inexact.
  • cannot-resolve-name errors now are emitted for every use of an undefined variable, not just the first.

New Features:

  • Added an experimental flow lint for unused promises in async scope. You can enable it by adding unused-promise-in-async-scope in the lint section of your flowconfig.

Misc:

  • annotate-use-state and annotate-use-callback codemod commands have been merged into annotate-react-hooks4
  • Added an experimental "scm" saved state fetcher, which selects a saved state based on your currently source control revision.

Library Definitions:

  • Added support for Array.prototype.at
  • Fixed WeakSet type parameter bound to be interface {}

Don't miss a new flow release

NewReleases is sending notifications on new releases.