Releases: facebook/flow
Releases · facebook/flow
Release list
v0.307.1
- Misc: Store exports index in saved state
[flow][ezFixUp] v0.307.0
Notable bug fixes:
- Support numeric literal object keys when importing/exporting object literals
- Allow type keywords like
inferto appear as member names in qualified type access (e.g.type S = O.infer;). - Allow type keywords (
readonly,keyof,infer, etc.) as function type parameter names
Parser:
- It is now a parse error to have a
?optional modifier in various places this does not make sense, e.g.const x? = 1;
Misc:
- API change:
flow checkbecomes an alias offlow status. You can useflow full-checkto trigger a full foreground check of a Flow root.
v0.306.1
- Fix in Meta-internal saved state logic
v0.306.0
New Features:
- Support for using well-known symbols as property names in types - the form should be exactly
Symbol.iterator.
Notable bug fixes:
- Report prop-missing errors for unbound module properties in explicit type args used with implicit instantiation (e.g. try-Flow)
Library Definitions:
- Updated core.js library definitions to accept readonly tuples in Map constructor
v0.305.1
- Fix in saved state on projects including files outside the project root.
v0.305.0
Misc:
- Add autofix for colon-style type parameter bounds to extends-style type parameter bounds
v0.304.0
Notable bug fixes:
- Fixed analysis of number literal keys in object destructuring rest type computation
v0.303.0
New Features:
- Adds a new
stylex_shorthand_propflowconfig option that enables syntactic sugar for StyleX on lowercase (intrinsic) JSX elements. When set to a prop name (e.g.stylex_shorthand_prop=sx),<div sx={[styles.foo, styles.bar]} />desugars to<div {...stylex.props(styles.foo, styles.bar)} />.
v0.302.0
v0.301.0
IDE:
- For
Reactautoimport, it will now always be in the form ofimport * as React from 'react'