Releases: facebook/flow
Releases · facebook/flow
v0.305.0
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'
v0.300.0
Misc:
- Minor changes to the flow-upgrade script
v0.299.0
Parser:
- Support
export declare, likedeclare export - For
componentin implicit declare context, the ast we produce will includeimplicitDeclare: true
v0.298.0
Likely to cause new Flow errors:
- Imported functions that conform to hook naming conventions will always be treated like hooks. As a result, new errors might be surfaced. e.g. conditional hook call
Parser:
- flow_parser.js now allows you to pass in
filenamein the option object
v0.297.0
New Features:
declarekeyword can be omitted fordeclare functionunder declaration context (.flow file, declare module, declare namespace)
v0.296.1
Parser:
- Fix parsing of experimental record expressions that are multiline