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 withrelay_integration
, is enabled, Flow will treatgraphql
fragments/queries/etc. asimport default
rather thanrequire
. 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
fromreact
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
.