Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Releases: facebook/flow

v0.301.0

12 Feb 20:55

Choose a tag to compare

IDE:

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

v0.300.0

10 Feb 21:53

Choose a tag to compare

Misc:

  • Minor changes to the flow-upgrade script

v0.299.0

28 Jan 21:32

Choose a tag to compare

Parser:

  • Support export declare, like declare export
  • For component in implicit declare context, the ast we produce will include implicitDeclare: true

v0.298.0

23 Jan 00:03

Choose a tag to compare

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 filename in the option object

v0.297.0

16 Jan 19:36

Choose a tag to compare

New Features:

  • declare keyword can be omitted for declare function under declaration context (.flow file, declare module, declare namespace)

v0.296.1

10 Jan 22:31

Choose a tag to compare

Parser:

  • Fix parsing of experimental record expressions that are multiline

[flow] v0.296.0

09 Jan 23:16

Choose a tag to compare

Declarations:

  • The declare keyword can be omitted for declare const/let/var variable: type and declare component under a declaration context (libdef file, .js.flow file, declare module, declare namespace)
  • declare component now requires the rest props to be named - matching normal component declarations

Misc:

  • The Omit<O, K> utility type will no longer enforce that the provided keys K need to be part of O

v0.295.0

18 Dec 23:54

Choose a tag to compare

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 of Symbol.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

v0.294.0

10 Dec 21:02

Choose a tag to compare

Parser:

  • Support second argument of import expressions

Bug Fixes:

v0.293.0

05 Dec 10:54

Choose a tag to compare

Config:

  • use_mixed_in_catch_variables option was renamed use_unknown_in_catch_variables because mixed is being renamed to unknown