Likely to cause new Flow errors:
enforce_local_inference_annotationsis 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
thisis not typed explicitly.
Notable bug fixes:
- We will now consistently emit
object-this-referenceerrors. 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.readFiletype definition when theencodingconfig option is supplied.