Skip to content

v0.231.0

Compare
Choose a tag to compare
@facebook-github-bot facebook-github-bot released this 13 Mar 22:45
· 416 commits to main since this release

Likely to cause new Flow errors:

  • Fixed subtyping of inline interfaces, e.g. try-flow.

New Features:

  • No longer trigger method-unbinding errors with indexed access types.
  • Add relay_integration.esmodules option. When this option, along with relay_integration, is enabled, Flow will treat graphql fragments/queries/etc. as import default rather than require. Use this when you ouput ESM from Relay's codegen (e.g. eagerEsModules).

Notable bug fixes:

  • Don't error when returning an array, map, etc when an AsyncGenerator<T, void, void> type is expected (e.g. try-Flow)

IDE:

  • Fixed a bug where AUTO332 appeared in the result of string literal type completion.

Library Definitions:

  • Added definitions for FileSystem APIs (thanks @ZelJin).
  • Added constructor to the StorageManager class (thanks @ZelJin).
  • Removed checkPropTypes, DOM, createClass, ConcurrentMode from react module.
  • Types in react module can now also be used when React is default imported like import React from 'react', they can also be used without imports, e.g. type N = React.Node.