github facebook/flow v0.112.0

latest releases: v0.254.2, v0.254.1, v0.254.0...
5 years ago

Likely to cause new Flow errors:

  • JSX expressions now use the new spread semantics added in v0.111.0
  • Attempting to write to or update a read-only property using operator assignment is now a type error

New Features:

  • New ambiguous-object-type lint warning against use of {} object types (prefer {||} or {...} instead, even when exact-by-default is enabled).
  • Improved support for optional chaining

Notable bug fixes:

  • Malformed type annotations no longer trigger the unclear-type lint error
  • Builtin classes can no longer be extended

Misc:

  • Improved performance for utility types and refinements in unions
  • Various improvements to autocomplete and get-def IDE services
  • Add useDeferredValue and useTransition to React library definitions
  • Add bytesWritten funciton to library definition (thanks @farzonl)

Don't miss a new flow release

NewReleases is sending notifications on new releases.