Skip to content

Releases: facebook/flow

v0.223.2

01 Dec 21:07
Compare
Choose a tag to compare

Notable bug fixes:

  • Fixed issue with saved state generation used to power auto imports.
  • (from v0.223.1) Improved precision of server states, that are visible either in vscode status bar, or through the flow status command.

v0.223.0

29 Nov 21:22
Compare
Choose a tag to compare

Notable bug fixes:

  • Mitigates a bug in Linked Editing Range where typing characters quickly on one side would throw off sync on the other side. With this fix, even if some characters are skipped Flow will be able to later recover the matching of open and close tag.
  • Fixed an issue that will cause some nested conditional types to be evaluated to any. (Example: Issue #9107)

IDE:

  • Auto-import for default-exported values will prefer the name of the exported value over the name inferred from the module.

Misc:

  • Error collation is incremental only. The incremental_error_collation flowconfig option is not recognized anymore.

Library Definitions:

  • Remove status global from dom.js
  • Delete declared React module. You should always import react with lowercase like require('react') or import React from 'react'

v0.222.0

16 Nov 04:00
Compare
Choose a tag to compare

New Features:

  • Go-to-definition now works for private names
  • Find references and rename now work for private names

Notable bug fixes:

  • Documentation will now show up for declare export statements in hover and autocomplete. This means that jsdoc for exports in declare module will finally show up in IDE services.

Library Definitions:

  • Added USBConnectionEvent
  • Added SecurityPolicyViolationEvent
  • Added crypto.randomUUID, http$Server.closeAllConnections, http$Server.closeIdleConnections

v0.221.0

09 Nov 21:33
Compare
Choose a tag to compare

Likely to cause new Flow errors:

  • Changed the signature of React.Fragment to only accept children and the key prop.
  • Changed the signature of React.useRef to return an opaque type.
  • Fixed a case where, in some cases, contextually-typed callbacks being passed as props would be typed as any rather than producing underconstrained-implicit-instantiation errors. This will result in new underconstrained errors, but removes a source of untracked unsoundness.
  • Banned non-tuple arrays from being spread into tuple types. It previously resulted in any without error.

Notable bug fixes:

  • Improved signature help support for optional chaining calls and intersection types. Now we will show all possible signature possibilities for overloaded functions.

Performance:

  • Incremental error collation, which helps IDE performance when you have a lot of suppressed errors, is now the default.
  • Optimized the way we generate global types for normal source files. You might see a reduction in checking times (3-9% as measured internally at Meta).
  • Optimized the way we analyze syntactic environment required for type checking. On a large file like this, it improves the checking time from 4s to 2s.
  • Optimized substitution performance when conditional type and mapped types are operating on large and deep objects.

Library Definitions:

  • Updated IntersectionObserver types.
  • IndexedDB transaction now allows consuming storeNames as DOMStringList.
  • Added options to IndexedDB transaction.
  • Added durability to IDBTransaction.

v0.220.1

03 Nov 17:05
Compare
Choose a tag to compare

Notable bug fixes:

  • We will now provide auto type import for default-exported classes.
  • We no longer suggest defined values when doing auto complete in object keys when we are under a type annotation.

v0.220.0

27 Oct 13:33
Compare
Choose a tag to compare

Likely to cause new Flow errors:

  • Fixed an issue where access of optional tuple element was not considered | void
  • We rewrote how we generate types for library definitions, which makes the validation of libdef files stricter. You might see more errors as a result of the stricter validation. e.g. all unbound names in libdef files will cause an error, instead of the first reference of the unbound name.

Notable bug fixes:

  • Fixed a bug in "refactor to react component" code actions. Previously, it would incorrectly replace all jsx children with the newly refactored JSX elements
  • Fixed signature help when the function called is typed as an alias (e.g. try-Flow)
  • Fixed some spurious errors in generic calls when the solution involves unions (e.g. try-Flow)
  • Fixed a bug that caused weird errors when you try to use indexed access in export positions. example

v0.219.5

25 Oct 15:12
Compare
Choose a tag to compare

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.4

24 Oct 04:54
Compare
Choose a tag to compare

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.3

20 Oct 23:33
Compare
Choose a tag to compare

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.2

19 Oct 00:04
Compare
Choose a tag to compare

Misc:

  • Bug fixes in preparation of new feature rollout