Notable breaking changes:
- Support for
inference_mode=classic
has been removed. The default is nowinference_mode=constrain_writes
. Please refer to the blog post for migration paths. Additionally we have removed all codemod commands that depend on the classic inference mode. This includes theannotate-declarations
,rename-redefinitions
andannotate-escaped-generics
codemods.
Likely to cause new Flow errors:
- Exported functions can only have properties assigned in the same scope as the function.
- Improve behavior of index property access with union types (try-Flow example). May cause new errors in interaction with computed properties.
- Referencing
this
in object getters and setters are now banned. Referencingthis
in object methods are already banned, and this change makes Flow's behavior more consistent.
Notable bug fixes:
- Fixed a regression in destructuring checking with computed properties (issue).
Library Definitions:
- Added
PerformanceServerTiming
definition and theserverTiming
attribute toPerformanceResourceTiming
.