benjamn / ast-types

Esprima-compatible implementation of the Mozilla JS Parser API
MIT License
1.13k stars 196 forks source link

Bump flow-parser from 0.195.2 to 0.196.1 #894

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps flow-parser from 0.195.2 to 0.196.1.

Release notes

Sourced from flow-parser's releases.

v0.196.1

  • Fix some missing autocomplete results (regression in 0.196.0)

v0.196.0

Likely to cause new Flow errors:

  • Instead of mixed, type the result of Object.values and Object.entries on a dictionary to be the dictionary values, and Object.entries keys to behave like Object.keys. Closes #2174, #2221, #4771, #4997, #5838.
  • Ban array inputs to Object.values and Object.entries.
  • Function's name and length property are now not writable.
  • Fix Object.keys, $Values, and $Keys on interfaces with indexers.
  • Delete $Subtype and $SuperType utilities.
  • Delete deprecated-utility Flow lint.

New Features:

  • An annotation is no longer required when exporting + expressions (e.g., export default (3 + 3 : number) can now just be export default 3 + 3;).

Notable bug fixes:

  • Fix unary and binary arithmetic operations on bigints being exported/imported across modules as any or number.
  • Fix autocomplete of string literals in bracket syntax, after a quote has already been typed.
  • Improve sorting of results when autocompleting types.
  • Boolean CLI flags must now be 1 or true to be truthy. Before, anything other than 0 and false was considered truthy.

Misc:

  • Autocomplete results are now sorted case-insensitively.
  • Autocomplete results are now sorted using a fuzzy score, in the same manner as VSCode.

Library Definitions:

  • Add ReactSetStateFunction type alias in react. This is the type of setVal in const [val, setVal] = React.useState(...).
Changelog

Sourced from flow-parser's changelog.

0.196.1

  • Fix some missing autocomplete results (regression in 0.196.0)

0.196.0

Likely to cause new Flow errors:

  • Instead of mixed, type the result of Object.values and Object.entries on a dictionary to be the dictionary values, and Object.entries keys to behave like Object.keys. Closes #2174, #2221, #4771, #4997, #5838.
  • Ban array inputs to Object.values and Object.entries.
  • Function's name and length property are now not writable.
  • Fix Object.keys, $Values, and $Keys on interfaces with indexers.
  • Delete $Subtype and $SuperType utilities.
  • Delete deprecated-utility Flow lint.

New Features:

  • An annotation is no longer required when exporting + expressions (e.g., export default (3 + 3 : number) can now just be export default 3 + 3;).

Notable bug fixes:

  • Fix unary and binary arithmetic operations on bigints being exported/imported across modules as any or number.
  • Fix autocomplete of string literals in bracket syntax, after a quote has already been typed.
  • Improve sorting of results when autocompleting types.
  • Boolean CLI flags must now be 1 or true to be truthy. Before, anything other than 0 and false was considered truthy.

Misc:

  • Autocomplete results are now sorted case-insensitively.
  • Autocomplete results are now sorted using a fuzzy score, in the same manner as VSCode.

Library Definitions:

  • Add ReactSetStateFunction type alias in react. This is the type of setVal in const [val, setVal] = React.useState(...).
Commits
  • f2d9650 v0.196.1
  • 5b58200 restore sorting of unranked autoimports
  • f6fa610 add tests for unranked autoimports
  • 811c1c2 fix fuzzy scores of 0
  • 5a44d51 v0.196.0
  • c567aeb Upgrade js_of_ocaml version
  • 538b30c support optimizing bigint unions
  • 2fc6d3e Add ReactSetStateFunction helper type alias
  • 3d74b1c Add Range. isPointInRange to dom.js
  • f7b52f3 [tests] Fix call_caching1 test to make it compatible with LTI
  • 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 #895.