Releases: facebook/flow
Releases · facebook/flow
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
[flow] v0.296.0
Declarations:
- The
declarekeyword can be omitted fordeclare const/let/var variable: typeanddeclare componentunder a declaration context (libdef file, .js.flow file, declare module, declare namespace) declare componentnow requires the rest props to be named - matching normalcomponentdeclarations
Misc:
- The
Omit<O, K>utility type will no longer enforce that the provided keysKneed to be part ofO
v0.295.0
New Features:
- Support 4 well-known symbols (
Symbol.iterator,Symbol.asyncIterator,Symbol.dispose,Symbol.asyncDispose) in class methods. For now, the computed method name needs to be exactly in the form ofSymbol.iterator(or other 3 names) to be recognized.
Notable bug fixes:
- Flow will now error when a function parameter appears in the default expression for the same binding. (e.g. try-Flow)
Misc:
- Introduced a codemod for migrating legacy utility types to modern equivalents (
yarn run flow-codemod convertLegacyUtilityTypes)
Parser:
- Flow now parses import attributes. For now, we don't do any semantic validation yet