Skip to content

Releases: facebook/flow

v0.307.1

Choose a tag to compare

@facebook-github-tools facebook-github-tools released this 31 Mar 02:57
  • Misc: Store exports index in saved state

[flow][ezFixUp] v0.307.0

Choose a tag to compare

@facebook-github-tools facebook-github-tools released this 26 Mar 07:33

Notable bug fixes:

  • Support numeric literal object keys when importing/exporting object literals
  • Allow type keywords like infer to 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 check becomes an alias of flow status. You can use flow full-check to trigger a full foreground check of a Flow root.

v0.306.1

Choose a tag to compare

@facebook-github-tools facebook-github-tools released this 23 Mar 21:29
  • Fix in Meta-internal saved state logic

v0.306.0

Choose a tag to compare

@facebook-github-tools facebook-github-tools released this 19 Mar 19:45

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

Choose a tag to compare

@facebook-github-tools facebook-github-tools released this 16 Mar 18:15
  • Fix in saved state on projects including files outside the project root.

v0.305.0

Choose a tag to compare

@facebook-github-tools facebook-github-tools released this 12 Mar 23:03

Misc:

  • Add autofix for colon-style type parameter bounds to extends-style type parameter bounds

v0.304.0

Choose a tag to compare

@facebook-github-bot facebook-github-bot released this 05 Mar 19:48

Notable bug fixes:

  • Fixed analysis of number literal keys in object destructuring rest type computation

v0.303.0

Choose a tag to compare

@facebook-github-bot facebook-github-bot released this 26 Feb 19:03

New Features:

  • Adds a new stylex_shorthand_prop flowconfig 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

Choose a tag to compare

@facebook-github-bot facebook-github-bot released this 18 Feb 23:21

Notable bug fixes:

Misc:

  • Flow no longer errors on colon-style extends and now supports extends by default, previously gated by the ts_syntax option.
  • Add format, and test commands to LLM rules

IDE:

v0.301.0

Choose a tag to compare

@facebook-github-bot facebook-github-bot released this 12 Feb 20:55

IDE:

  • For React autoimport, it will now always be in the form of import * as React from 'react'