Notable breaking changes:
- Support for
inference_mode=classichas 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-redefinitionsandannotate-escaped-genericscodemods.
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
thisin object getters and setters are now banned. Referencingthisin 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
PerformanceServerTimingdefinition and theserverTimingattribute toPerformanceResourceTiming.