Likely to cause new Flow errors:
enforce_local_inference_annotations
is now on by default. 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.
New Features:
- Class members can be suggested by autocomplete even if
this
is not typed explicitly.
Notable bug fixes:
- We will now consistently emit
object-this-reference
errors. Previously these errors were missing when the object is an argument ofObject.freeze()
,Object.defineProperties()
orObject.create()
. - Fix crash when walking directories that can't be accessed.
- Fixed a potential crash when two type identifiers are declared in the same block.
Library Definitions:
- Improve
fs.readFile
type definition when theencoding
config option is supplied.