v0.35.0
Likely to cause new Flow errors:
- Flow now knows that calling
addEventListener()
with'click' and 'dblclick'
will pass aMouseEvent
to the listener. This means you might need to updatefoo.addEventListener('click', (e) => bar())
tofoo.addEventListener('click', (e: MouseEvent) => bar())
.
New Features:
- Better error messages in a bunch of situations
- flowtype.org/try now has an AST tab that shows the parsed AST of the example
Notable bug fixes:
- Bindings that come from imports are now treated as const
- Found and fixed a few situations where Flow was emitting redundant errors
- Some if statement refinements were sticking around after the if statement in some situations when they should not have.
Misc:
- Various libdef fixes and improvements
- Various docs fixes and improvements
- If
foo
has the typedmixed
, we now allowfoo.bar
if you check thatfoo
is notnull
orundefined
.
Parser:
- Better error message if you try to make a class property optional (currently unsupported)
- Dropped support for
let
statements, which never made it into the spec (thanks @andreypopp)