v0.280.0
·
448 commits
to main
since this release
Likely to cause new Flow errors:
- Accessing missing exports on namespaced import will now trigger
missing-exporterror instead ofprop-missingerror. (example) - The only supported
suppress_type$FlowFixMeis now just a type alias ofany. For most of the code, there will be no functional differences. However, you might see new errors if you have any local definitions of$FlowFixMe, or you used the undocumented$FlowFixMe<arbitrary type arguments>. - Support for
suppress_typeconfig has been removed. The only supportedsupress_typenow is$FlowFixMe. If you want other variants, you can add
type MySuppressType = any
in your global library definitions.
- Many subtyping type errors' error codes have been standardized into
incompatible-type, so some previously suppressed errors will reappear until you change the suppression error code intoincompatible-type. The change was announced in the previous version, with option to enable it viaexperimental.error_code_migration=new. Now the only valid option toexperimental.error_code_migrationisnew. You can runflow codemod error-code-migration --write .with the previous version of Flow to help migrate, since the codemod is removed in this version.