A selection of interesting updates:
- 0.56.0: Added support for
null
prototypes, a laObject.create(null)
- 0.57.0: Flow will now only check the files in
node_modules/
which are direct or transitive dependencies of the non-node_modules
code. - 0.59.0: Adds a
$ReadOnly<T>
utility type which makes all properties on objects read-only.$ReadOnly<{ a: number, b: string }>
behaves as if you wrote{ +a: number, +b: string }
. Read more about property variance on our blog. - 0.60.0:
- New linters:
unclear-type
warns about uses ofany
,Object
andFunction
, since they unsafely circumvent the type system.untyped-import
warns whenimport
ing orrequire
ing a module that does not have@flow
.
- Fixed
Object.keys
and$Keys
on a dictionary of string literal keys, such that the result is now an array of the string literals instead of a generic string:
- New linters: