Likely to cause new Flow errors:
- Casting an enum to
emptywill now properly error, e.g.(E.A: empty).
New Features:
- Added a quick fix for the
unused-promise-in-async-scopelint 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-bigintlint to match the behavior of the othersketchy-null-*lints for bigints. - Added Flow Enums support for
declare enumanddeclare 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_parserOPAM package. Some modules insrc/parser/likeComment_utilsare newly available. - Decrease the size of
flow_parser.jsby roughly 25%, to 768kb. - Fix a bug where
declare opaque typewas parsed as anOpaqueTypewhen interned comments are disabled.