github facebook/flow v0.289.0

2 days ago

Likely to cause new Flow errors:

  • For a poorly bounded generic indexed access types, we will no longer generate an error for it when it's being first subtyped against. Instead, we will make it opaque so that when it's being subtyped against, it will error. example
  • Flow will error when you are trying to redefine the following reserved types: $NonMaybeType, NonNullable, $ReadOnly, Readonly, $Keys, $Values, Values, $ReadOnlyMap, ReadonlyMap, $ReadOnlySet, ReadonlySet.

Notable bug fixes:

  • We no longer incorrectly report conditional hook call for loops with a break. example
  • Fixed a potential crash when evaluating a conditional type. example
  • Flow will now allow computed keys of type StringPrefix/StringSuffix to be included in object initializers with other non-overlapping keys (example try-Flow)

Library Definitions:

  • Update React API types from recent releases
    Added

Don't miss a new flow release

NewReleases is sending notifications on new releases.