Likely to cause new Flow errors:
- Uses of
React$AbstractComponentoutside library definitions will now triggerinternal-typelint error, which is on by default.React.AbstractComponentis also marked as deprecated. We recommend replacing them with component types. We have provided a codemod via theflow-upgradepackage to aid larger codebases with this conversion:yarn run flow-codemod eliminateAbstractComponent path/to/src.
Notable bug fixes:
- Fixed issue with
StringPrefixandStringSuffixwhen used as a component syntax prop. - Fixed an issue that causes type argument inference on component type to be incorrectly under-constrained. (example)
- Fixed
ascast support inflow-remove-types.
Library Definitions:
- React string refs are no longer supported in
React.cloneElement. e.g.React.cloneElement(e, {ref: 'foo'})will be an error. - The deprecated
React$Reftype and various aliases of it are removed.