github facebook/flow v0.104.0

latest releases: v0.251.1, v0.251.0, v0.250.0...
5 years ago

Likely to cause new Flow errors:

  • Fixed the definition of Function.prototype.apply to only accept array-like objects, not any iterable.
  • Improved error positioning, which may cause previously-suppressed errors to become unsuppressed.

New Features:

  • non-array-spread lint rule: Fires when a non-array iterable is spread. This is useful for modeling the loose: true mode of @babel/plugin-transform-spread, where such code causes a runtime error.

Notable Bug Fixes:

  • Fixed a performance regression when computing dependencies in large projects
  • Fixed built-in library definitions that needed to be explicitly inexact to pass the implicit-inexact-object linter.
  • Improved libdefs for many browser APIs (e.g. Media Streams, MIDI, Permissions, Workers) (#7737, #7805, #7806, thanks @goodmind!)

Misc:

  • Various improvements to the types-first signature generator
  • Improved the name of the server master process in ps
  • Improved the output of flow check --profile

flow-remove-types:

  • Remove opaque types and declare export

Parser:

  • Fixed a bug allowing await to be a parameter in async functions
  • Several improvements to the experimental comment attachment algorithm

Don't miss a new flow release

NewReleases is sending notifications on new releases.