github facebook/flow v0.231.0

latest releases: v0.252.0, v0.251.1, v0.251.0...
8 months ago

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.

Don't miss a new flow release

NewReleases is sending notifications on new releases.