Skip to content

v0.244.0

Compare
Choose a tag to compare
@facebook-github-bot facebook-github-bot released this 17 Aug 22:29
· 531 commits to main since this release

Likely to cause new Flow errors:

  • The inexact_tuple_types_syntax option (which was on by default) is now deleted. Make sure you are using hermes-parser and related packages at version >= 0.23.0
  • Render types will no longer allow specific renders wrapping more general renders like renders React.Element<React.AbstractComponent<{}, mixed, renders* A>>. Invalid render types will behave like any.
  • Some previously allowed generic render types are no longer allowed (example). This ensures that generic render types are only used to model transparent components like React.Fragment.
  • renders* T where T is generic is now banned.

Notable bug fixes:

  • Render type with union type arguments will be correctly wrapped with parentheses.