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 ofX
: ifX
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