github facebook/flow v0.107.0

latest releases: v0.235.1, v0.234.0, v0.233.0...
4 years ago

New Features:

  • Implement type refinements for property accesses through brackets (#7597, thanks @goodmind).

Notable bug fixes:

  • Fix several issues with autocomplete that prevented optional properties, type aliases to utility types, types with default type arguments, and several other edge cases from being autocompleted.
  • Fix Not_expects_bounds crash with %checks (#7863).

Misc:

  • Make the LSP textDocument/documentHighlight request serviceable while Flow is in the middle of a recheck.
  • Fix minor off-by-one error which caused some parts of traces to be pruned when using the --traces flag.
  • A minor improvement in error messages when undefined is involved.
  • Reduce memory usage slightly when abstract locations are enabled.
  • Prevent log spew when flow lsp is started while the server is initializing.
  • Improve completeness of sighashing. We recently observed an incremental bug caused by incomplete sighashing. This speculatively addresses similar potentially problematic cases.

Library Definitions:

  • Add webkitGetAsEntry to DataTransferItem.
  • Switch several properties to optional in Notification and NotificationOptions (#8032, thanks @pauldijou).
  • Map/Set fix symbols (#7560, thanks @goodmind).
  • Fix Array#reduce and Array#reduceRight (#7902, thanks @goodmind).

Don't miss a new flow release

NewReleases is sending notifications on new releases.