github facebook/flow v0.139.0

latest releases: v0.236.0, v0.235.1, v0.234.0...
3 years ago

New Features:

  • Support for this annotations in functions, like function f(this: {foo: string}, param1: string): string { return this.foo; }
  • The experimental.abstract_locations config option is now true by default, as it enables significant performance improvements. This option is now deprecated and will be removed in a coming version.

Notable bug fixes:

  • Fixed a false positive when a bounded generic like K: string flows into $Keys<{[K]: ...}>
  • Fixed a false positive when a bounded generic like K: 'literal' is checked against itself like k === 'literal'
  • Fixed autocomplete inside of JSX attribute values
  • Fixed autocomplete of properties of interfaces

Misc:

  • Updated flow-remove-types to support this parameters
  • Added SpeechRecognition definitions (thanks @ayshiff)

Don't miss a new flow release

NewReleases is sending notifications on new releases.