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-override
lint.
New Features:
- The
Number
static methodsNumber.isFinite
,Number.isInteger
,Number.isNaN
, andNumber.isSafeInteger
now apply a refinement that their input is anumber
. Note that the top levelisNaN
andisFinite
functions (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.