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.jsonto have a valid Flow extension for the file to be considered. - Fall back to
.jsextensions even when a module name looks like a resource file (e.g../a.svgwill look to./a.svg.js). - Fix a crash that occurred when checking a
thisparameter with a generic. - Make
$NonMaybeType<empty>evaluate toempty. - Honor format config options in more cases in code actions and codemods.
- Fix
PointerCapturelibrary definitions (thanks @malectro!).
Misc:
- Remove experimental
observedBitsparam to React'suseContextlibdef. - Add caching to live errors and signature help, to speed up IDE interactions (currently behind temporary flags).
- Introduce
format.bracket_spacingoption 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.