Likely to cause new Flow errors:
- Overriding already defined names and modules in library definitions will now error with code
[libdef-override]. The error cannot be suppressed without specific error code like$FlowFixMe[libdef-override]. It can be turned off by turning off thelibdef-overridelint.
New Features:
- The
Numberstatic methodsNumber.isFinite,Number.isInteger,Number.isNaN, andNumber.isSafeIntegernow apply a refinement that their input is anumber. Note that the top levelisNaNandisFinitefunctions (not off ofNumber) do not apply the same refinement as they first coerce their input to number.
Notable bug fixes:
- Fix a potential crash in libdef files with illegal import export. Thanks @techieshark for the repro.