New Features:
- In the next release (0.280.0) of Flow, we intend to standardize the error code for various subtyping errors into
incompatible-type. You can addexperimental.error_code_migration=newin your flowconfig to enable the new behavior now. We also provide a codemodflow codemod error-code-migration --write .that you can run over your codebase to automatically change the error code. Both the flowconfig option and the codemod will be removed in the next version.
Notable bug fixes:
- Improved precision of error messages when inferred primitive types are checked against other incompatible primitive types (e.g. try-Flow)
Misc:
- Thanks @JamBalaya56562 for fixing various typos across the codebase!