Skip to content

v0.191.0

Choose a tag to compare

@facebook-github-bot facebook-github-bot released this 27 Oct 12:53
· 8702 commits to main since this release

Likely to cause new Flow errors:

  • The exact_empty_objects option is now enabled by default. Details about this change and how to update your codebase are covered on our blog.
  • The typeof X type annotation now respects the initialization state of X: if X hasn't been declared it will be an error to get its type.

Notable changes:

  • The enforce_local_inference_annotations config option was removed. To migrate your codebase, run the following codemod to add the required annotations: flow codemod annotate-lti. More details on the changes are explained in the Requiring More Annotations to Functions and Classes in Flow blog post.
  • Literals can be suggested by autocomplete in more cases
  • Fixed autocompleting specifiers in an import statement