github facebook/flow v0.150.0

latest releases: v0.237.1, v0.237.0, v0.236.0...
3 years ago

New Features:

  • Suggest string literals in autocomplete in positions where string literal unions are expected.

Notable bug fixes:

  • Use bracket syntax for autocomplete when autocompleting a property name that is not a valid identifier.
  • Require the "main" property of package.json to have a valid Flow extension for the file to be considered.
  • Fall back to .js extensions even when a module name looks like a resource file (e.g. ./a.svg will look to ./a.svg.js).
  • Fix a crash that occurred when checking a this parameter with a generic.
  • Make $NonMaybeType<empty> evaluate to empty.
  • Honor format config options in more cases in code actions and codemods.
  • Fix PointerCapture library definitions (thanks @malectro!).

Misc:

  • Remove experimental observedBits param to React's useContext libdef.
  • Add caching to live errors and signature help, to speed up IDE interactions (currently behind temporary flags).
  • Introduce format.bracket_spacing option which affects code output (such as code actions).
  • Improve the sorting of autoimport suggestions that have the same name, so that the module's file extension is not considered.

Don't miss a new flow release

NewReleases is sending notifications on new releases.