Repository navigation
v0.164.0
·
10611 commits
to main
since this release
New Features:
exports/module.exportscan no longer be read from in a module (e.g.exports.foo) to eliminate this usage of unsealed objects - you can refactor your code to directly referencefooinstead, or just use ES modules (e.g.export const foo = ...)- Improved autocomplete for the targets of
typeoftype annotations. - Support for finding references and renaming has been removed. While these features often worked well, they also caused extremely bad performance and crashes. We hope to reimplement these features as soon as we can.
- When displaying types, always use indexed access types for
$ElementTypeand$PropertyTypeutilities. - Remove
indexed_accessoption, it's always enabled now (was on by default before if the option was omitted).
Notable bug fixes:
- Fix an issue where the
refactorcode-action would hang on large inputs. - The exports of a file with no value exports are typed as an exact empty object rather than an unsealed object. Common errors which resulted from this are accidentally doing
import typeof Foorather thanimport type {Foo} - Fix error causing LSP requests to fail.
- Fix calling
watchmanon Windows. - Fix soundness issue when comparing polymorphic types (example try-Flow).
- Fix handling of duplicate bindings in signature builder.
- Improve error messages and type-at-pos results around
$ExactT<...>type annotations. - Fix referencing
thisin a JSX title member. flow coveragenow returns 0% for non-@flow files; pass--allto also check non-@flow files.- No longer attempt to provide definition or
flow get-defon non-Flow files. - No longer attempt to provide hover or
flow type-at-poson non-Flow files - Update to latest LSP 3.17 beta definition of
CompletionItemLabelDetail
Library Definitions:
- Fix
navigator.clipboard.writetype and addClipboardItem(thanks @Egrodo). - Add node.js
fs.copyFileoverload to support the case where themodeparam is not specified (thanks @Brianzchen).
Misc:
- Removed the
flow suggestcommand. - Improve codemod CLI error handling (Thanks @gnprice).
- Changed scheduling of LSP commands in parallel with typechecking, to prioritize commands.
- Removed
flow find-refscommand. - Removed the
--expand-type-aliasesflag from all Flow commands, it has caused several performance and non-termination issues without providing much value. - Improved codebase quality (thanks @gnprice).
Parser:
- Invalid
typeoftype annotations, where the argument totypeofis a not a variable or member expression, are now parse errors rather than type errors.