Likely to cause new Flow errors:
- Casting an enum to
empty
will now properly error, e.g.(E.A: empty)
.
New Features:
- Added a quick fix for the
unused-promise-in-async-scope
lint which will insertawait
. - Added support for a number of additional bigint features. These include allowing comparison (
<
,>
,<=
,>=
), update (++
,--
) and arithmetic operators (+
,-
,~
,*
) to be used with bigints. - Added
sketchy-null-bigint
lint to match the behavior of the othersketchy-null-*
lints for bigints. - Added Flow Enums support for
declare enum
anddeclare export enum
. Keep in mind that users need to have enabled Flow Enums if you wish to create library definitions that use them.
Parser:
- Switch to dune to build and install the
flow_parser
OPAM package. Some modules insrc/parser/
likeComment_utils
are newly available. - Decrease the size of
flow_parser.js
by roughly 25%, to 768kb. - Fix a bug where
declare opaque type
was parsed as anOpaqueType
when interned comments are disabled.