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.0 #1328

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps flow-parser from 0.195.0 to 0.210.0.

Release notes

Sourced from flow-parser's releases.

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:

v0.208.1

Notable bug fixes:

  • Fixed a crash when we are trying to produce a quick fix for missing imports. The autofix for missing imports broken in the previous release would be working again now.

... (truncated)

Changelog

Sourced from flow-parser's changelog.

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.

Library Definitions:

0.208.1

... (truncated)

Commits
  • 1813b0a Back out "[flow] Update to ppxlib 0.26.0 and core to 0.15.0"
  • 3518a70 v0.210.0
  • 8047645 Update to ppxlib 0.26.0 and core to 0.15.0 (#9037)
  • 81c263e Use more maintained ocaml-opam/opam-repository-mingw in CI (#9038)
  • b28958a Fork sedlex_ppx to remove dependency on sedlex (#9036)
  • c749e3d [refactor] Rename modules to avoid collision with builtin OCaml modules
  • eb6fdb4 [tuples] Improve ty_debug output for TupleElements
  • 0e94974 [tuples] Add reason to TupleElement
  • d151388 [tuples] Add label name (if it exists) to tuple element reason
  • da70188 [tuples] Add 'optional' field to TupleElement
  • 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 #1330.