benjamn / recast

JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator
MIT License
4.95k stars 346 forks source link

Bump flow-parser from 0.195.0 to 0.210.2 #1331

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps flow-parser from 0.195.0 to 0.210.2.

Release notes

Sourced from flow-parser's releases.

v0.210.2

Notable bug fixes:

  • Fix a bug where autocompleting a keyword deleted the next 7 characters on the same line
  • "Fix" sorting of autoimports. An experimental option (autoimports_ranked_by_usage=true) to sort autoimports by how often they are imported was influencing the sorting even when the option was not enabled. This was likely an improvement, but it was a bug to not obey the option.

v0.210.1

Misc:

  • Improvements in preparation of new feature rollout

v0.210.0

Likely to cause new Flow errors:

  • We further strictified React.Element and React refs related typing. You might also see some existing errors related to React.Element and React ref moved around. Example

New Features:

  • Added Pick, Omit, and Record utility types. [try-flow]

Notable bug fixes:

  • Fixed a bug where void would appear in autocomplete suggestions more than once

Misc:

  • Improved keyword autocomplete ordering

Parser:

Library Definitions:

  • Added missing CSSOM replace and replaceSync
  • Added arrayBuffers to Node libdefs for process.memoryUsage()'s return type

v0.209.1

Misc:

  • Bug fixes in preparation of new feature rollout

v0.209.0

Likely to cause new Flow errors:

  • We removed support for React PropTypes. All related Flow builtin types like React$PropType$Primitive are deleted. React has deprecated PropTypes since v15.5.
  • We will now catch errors related to generic indexed access types. Example
  • Fixed issues with indexed access on interfaces/instances. Access with string literals will now access named properties. example
  • We now require annotation for computed access of instances, when that access is directly exported.
  • The return annotation of a function can now reference a parameter name (e.g try-Flow). This may cause new errors if the return type used to reference a name that aliases a parameter name. This will now be captured by the parameter and cause a [value-as-type] error.
  • We now error when using the name of a variable in its own annotation (e.g. const x: typeof x = ...). An exception is when the name of the variable appears under an object type constructor. For example, the annotation const o: { f: typeof o } = ... is allowed.

Notable bug fixes:

  • Fix a bug in the previous version that makes declare let/const function scoped. We fixed it to be lexically scoped again.

Library Definitions:

  • Array.flat will now have better typing support for flattening heterogeneous inputs. e.g. [1, [1,2]].flat() will now correctly have inferred type of Array<number>.
  • We added support for the following builtin types that are also found in TypeScript:

... (truncated)

Changelog

Sourced from flow-parser's changelog.

0.210.2

Notable bug fixes:

  • Fix a bug where autocompleting a keyword deleted the next 7 characters on the same line
  • "Fix" sorting of autoimports. An experimental option (autoimports_ranked_by_usage=true) to sort autoimports by how often they are imported was influencing the sorting even when the option was not enabled. This was likely an improvement, but it was a bug to not obey the option.

0.210.1

Misc:

  • Improvements in preparation of new feature rollout

0.210.0

Likely to cause new Flow errors:

  • We further strictified React.Element and React refs related typing. You might also see some existing errors related to React.Element and React ref moved around. Example

New Features:

  • Added Pick, Omit, and Record utility types. [try-flow]

Notable bug fixes:

  • Fixed a bug where void would appear in autocomplete suggestions more than once

Misc:

  • Improved keyword autocomplete ordering

Parser:

Library Definitions:

  • Added missing CSSOM replace and replaceSync
  • Added arrayBuffers to Node libdefs for process.memoryUsage()'s return type

0.209.1

Misc:

  • Bug fixes in preparation of new feature rollout

0.209.0

Likely to cause new Flow errors:

  • We removed support for React PropTypes. All related Flow builtin types like React$PropType$Primitive are deleted. React has deprecated PropTypes since v15.5.
  • We will now catch errors related to generic indexed access types. Example
  • Fixed issues with indexed access on interfaces/instances. Access with string literals will now access named properties. example
  • We now require annotation for computed access of instances, when that access is directly exported.
  • The return annotation of a function can now reference a parameter name (e.g try-Flow). This may cause new errors if the return type used to reference a name that aliases a parameter name. This will now be captured by the parameter and cause a [value-as-type] error.
  • We now error when using the name of a variable in its own annotation (e.g. const x: typeof x = ...). An exception is when the name of the variable appears under an object type constructor. For example, the annotation const o: { f: typeof o } = ... is allowed.

Notable bug fixes:

  • Fix a bug in the previous version that makes declare let/const function scoped. We fixed it to be lexically scoped again.

... (truncated)

Commits
  • 805c858 v0.210.2
  • a0c76d1 sort autofix-import code actions by usage
  • 3ed0631 fix sorting of ranked autocomplete
  • 6569c58 don't rank autoimports by usage when ranking by usage is off
  • c6d080f add test for weighted autoimports
  • cb4d450 improve test for autoimport sorting
  • 0a74015 fix order of autocomplete for types
  • 4103566 fix autocomplete ranking by usage
  • 6822ccb add test for autoimported types
  • 7790589 fix autocompleting keywords eating text
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #1335.