Skip to content

@facebook-github-bot facebook-github-bot released this Aug 6, 2020 · 34 commits to master since this release

  • "Go to Definition" on a JSX attribute name now jumps to the prop's type.
  • Improved error messages for non-strict equality checks
  • Fixed a bug that prevented the use of module in ES modules when well_formed_exports is enabled.
  • Fixed an issue that allowed types-first mode to be enabled (types_first=true) when using well_formed_exports.include. For types-first to function properly, the entire project's exports must be well-formed, not just specific paths.
  • Fixed a similar issue so that --types-first on the command line overrides well_formed_exports=false in .flowconfig. This makes it easier to test types-first mode.
  • The unsafe-addition lint now defaults to being an error. It will be converted from a lint to a type error in the future.
  • Removed dynamic-export lint which does not work in types-first mode
  • Improved initialization performance
Assets 7

@facebook-github-bot facebook-github-bot released this Jul 23, 2020 · 76 commits to master since this release

New Features:

  • Improved IDE get definition behavior of imported names by jumping past module.exports = ... to the actual definition.

Library Definitions:

  • Made offset an optional argument for the sized Buffer read/writes (thanks @isker!)

Misc:

  • Removed deprecated blacklist/whitelist aliases for config options, use includes/excludes instead (see updated docs: for Types First and flowconfig options).
Assets 7

@facebook-github-bot facebook-github-bot released this Jul 8, 2020 · 97 commits to master since this release

Likely to cause new Flow errors:

  • $Keys<...> will no longer include non-own instance properties, matching the behavior of Object.keys.

Notable bug fixes:

  • Fixed an incremental rechecking issue caused by the hashes of type destructors

Misc:

  • Updated the type of cast and isValid to take in optional representation type for enums
  • Added missing links to Medium articles from flow.org (thanks @jamesisaac)
Assets 7

@facebook-github-bot facebook-github-bot released this Jun 27, 2020 · 127 commits to master since this release

New Features:

  • Enable LSP support for autofix exports by default.
  • Added a lint rule to ensure exports named default were exported with export default syntax.
  • Enabled support for JSDoc in some LSP results.

Library Definitions:

  • Add parameter to MediaStreamTrack.applyConstraints()

Parser:

  • Fix parsing async arrow functions with multiple type parameters

Config:

  • Remove types-first flag aliases prefixed with "experimental"
  • Replace well_formed_exports.whitelist with well_formed_exports.includes
Assets 7

@facebook-github-bot facebook-github-bot released this Jun 12, 2020 · 201 commits to master since this release

Misc:

  • Improvements to editor in flow.org/try, including syntax highlighting
  • Fix broken links in docs
  • Standardized error suppression syntax, added ability to suppress errors based on error codes

Library Definitions:

  • Add KD functions
  • Add onended callback to OscillatorNode
  • Make 3rd parameter of node.js symlinkSync optional
Assets 7

@facebook-github-bot facebook-github-bot released this Jun 2, 2020 · 252 commits to master since this release

  • Fixed an issue where changing .flowconfig or package.json and then running flow status would get stuck in a restart loop, if using lazy mode with Watchman and Mercurial.
Assets 7

@facebook-github-bot facebook-github-bot released this Jun 2, 2020 · 252 commits to master since this release

  • Allow indexers in exact object annotations
  • Fixed type-at-pos in flow.org/try
  • Improved language of LSP window/showStatus responses
  • Improved control flow handing in logical expressions
  • Allow applying utility types to opaque types in the defining module
  • Added HeadersInit and signal to Fetch API (thanks @andretshurotshka!)
  • Added replace method to DOMTokenList (thanks @w01fgang!)
Assets 7

@facebook-github-bot facebook-github-bot released this May 15, 2020 · 312 commits to master since this release

Publishing of flow-bin v0.125.0 failed to include the binaries. Oops!

Assets 7

@facebook-github-bot facebook-github-bot released this May 15, 2020 · 312 commits to master since this release

Likely to cause new Flow errors:

  • Fixed signatures generated in types-first for classes with non-trivial expressions
    in their extends clauses, which were before treated like extending any.

New features:

  • Types-first is no longer an experimental mode, but is now fully supported!

Notable bug fixes:

  • Fixed a soundness bug that allowed refined property expressions to be treated as
    empty in some circumstances.

Misc:

  • Added $FlowIssue and $FlowExpectedError as default suppression comments.
  • Improved quality of AST and comment printing and layout.
  • Improved quality of type printing for type-at-pos and friends.
  • Added '.cjs' to default extensions list.

Parser:

  • Fixed ranges of sequence and assignment expressions that contain grouping parentheses.
  • Disallowed newline after type keyword in type aliases.

Library definitions:

  • Added headers timeout to http & https server (thanks, @mattconde!)
  • Added flushHeaders to http$ServerResponse (thanks, @gajus!)
  • Changed thisArg parameter for array callback functions (e.g. map, reduce) to mixed.
  • Added more precise typing for common cases of Array.flat.
Assets 7

@facebook-github-bot facebook-github-bot released this May 5, 2020 · 391 commits to master since this release

Library Definitions:

  • Add StorageEvent overloads.

Misc:

  • Use textEdit in identifier completion item responses over the LSP, to avoid possible behavior differences with different LSP clients.
  • Various improvements to the pretty-printer.
  • A small improvement in completeness when handling the "not" operation in the presence of unions of literal types.
  • Wrap the usage message to 100 chars.
  • Fix a poorly-positioned error related to polymorphic function types.

Parser:

  • Improved some parser error messages by treating the end of file as a valid end of object property.
  • Updated ESTree output for import expressions to match the spec.

flow-dev-tools:

  • Add the update-suppressions subcommand.
Assets 7
You can’t perform that action at this time.