Skip to content

@facebook-github-bot facebook-github-bot released this Jun 21, 2018 · 2141 commits to master since this release

Likely to cause new Flow errors:

  • Added return type to RegExp.prototype.match() (thanks @peter-leonov!)
  • Fixed callable property lookup rules to no longer walk the prototype chain
  • Made it an error to import a type via destructuring on a require call (use import type instead)
  • Made the type of Array.of stricter (thanks @wchargin!)

New Features:

  • Added typing rules to support {| |} as a subtype of { +p?: T }
  • Added support for optional catch bindings (thanks @cpojer!)
  • Improved performance of enum equality checks
  • Added support for [[call]] syntax in objects and interfaces
  • Many improvements to flow find-refs command
  • Many improvements to LSP support

Notable bug fixes:

  • Fixed crash when refining a non-value


  • Updated node.js libdefs (thanks @hcz!)
  • Fixed some flakiness in the LSP tests
  • Added libdefs for ECDH class (thanks @eleith!)
  • Added --check flag to flow ast command
  • Added filter property to CanvasRenderingContext2D libdef
  • Added timingSafeEqual method to node crypto module (thanks @n-johnson!)


  • Added Decorator node, matching estree
Assets 7
You can’t perform that action at this time.