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/StringSuffixto be included in object initializers with other non-overlapping keys (example try-Flow)
Library Definitions:
- Update React API types from recent releases
Added
act: 19.0: https://react.dev/reference/react/actcaptureOwnerStack: 19.1: See https://react.dev/reference/react/captureOwnerStackuseEffectEvent: 19.2: https://react.dev/reference/react/useEffectEvent<Activity />: 19.2: See https://react.dev/reference/react/Activity
UpdateduseDeferredValue: 19.0: Accepts a second argument for initial valueuseTransition: 19.0: Accepts an async action functionstartTransition: 19.0: Accepts an async action function