Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build(deps): Bump flow-parser from 0.136.0 to 0.198.1 #1193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 23, 2023

Bumps flow-parser from 0.136.0 to 0.198.1.

Release notes

Sourced from flow-parser's releases.

v0.198.1

  • Fix a regression in 0.198.0 that can lead to a crash

v0.198.0

Likely to cause new Flow errors:

  • Implicit coercion of booleans to numbers is consistently disallowed. Previously, booleans could be implicitly coerced to numbers in addition expressions. Prefer explicitly converting booleans to numbers.
  • Binary arithmetic errors are now reported on the expression rather than the operands, and use error code unsafe-arithmetic.
  • keyof, undefined, never, unknown, and readonly are now reserved types. If you have a user-defined types of these names, rename them to something else.

New Features:

  • TypeScript syntax helpers. To help people familiar with TypeScript syntax ramp up on similar Flow syntax:
    • Parse and error on keyof type operator, recommending $Keys<...> instead.
    • Parse and error on undefined type, recommending void instead.
    • Parse and error on never type, recommending empty instead.
    • Parse and error on unknown type, recommending mixed instead.
    • Parse and error on readonly applied to tuple and array type syntax.
    • Parse and error on usage of in/out/in out variance annotations.
    • Parse and error on as, as const, and satisfies cast expressions.
  • Add a codemod to fix underconstrained-implicit-instantiation errors only detectable under LTI. You can run flow codemod annotate-implicit-instantiations --include-lti --ignore-suppressed --write .

Notable bug fixes:

  • Fix a bug in LTI mode where some errors were hidden in implicit instantiation calls (e.g. Try Flow)
  • Fix unsound behavior of sentinel refinement with unions of numeric types as tags (e.g. Try Flow)
  • No annotation is required in LTI for callback parameters when the callee is a refined object member (e.g. Try Flow)

IDE:

  • When typing in an object literal, entire method signatures from the object type will be suggested.
  • Method signature autocomplete items are now visually distinguished from other kinds of autocomplete items.
  • Fix manually triggering autocomplete on the last empty line of a file giving no results.
  • Members from Object.prototype are no longer included in autocomplete results.

Parser:

  • Fix parsing of for await (async of ...) (regressed in 0.197.0)
  • Fix parsing of for (let in x) in non-strict mode
  • Fix parsing of class fields named static
  • Fix missing parse errors on keywords containing escape sequences (regressed in 0.180.0)
  • Fix missing parse error when using await as a parameter in an async arrow function
  • Fix missing parse error for export { ReservedWord as ... }
  • Fix incorrect parse error on export * as ReservedWord from ..., which is now allowed
  • Treat && and || as tokens when parsing types to improve error messages
  • Parse the argument of the typeof type argument as a value, not a type, as it is a value

Library Definitions:

  • Add Element.getAttributeNames(): Array<string>

v0.197.0

Local Type Inference:

We are releasing a new inference mode called local type inference. You can enable this new mode in your codebase by adding inference_mode=lti to the [options] section in the flowconfig. We will describe more details on this inference mode in an upcoming blog post.

... (truncated)

Changelog

Sourced from flow-parser's changelog.

0.198.1

  • Fix a regression in 0.198.0 that can lead to a crash

0.198.0

Likely to cause new Flow errors:

  • Implicit coercion of booleans to numbers is consistently disallowed. Previously, booleans could be implicitly coerced to numbers in addition expressions. Prefer explicitly converting booleans to numbers.
  • Binary arithmetic errors are now reported on the expression rather than the operands, and use error code unsafe-arithmetic.
  • keyof, undefined, never, unknown, and readonly are now reserved types. If you have a user-defined types of these names, rename them to something else.

New Features:

  • TypeScript syntax helpers. To help people familiar with TypeScript syntax ramp up on similar Flow syntax:
    • Parse and error on keyof type operator, recommending $Keys<...> instead.
    • Parse and error on undefined type, recommending void instead.
    • Parse and error on never type, recommending empty instead.
    • Parse and error on unknown type, recommending mixed instead.
    • Parse and error on readonly applied to tuple and array type syntax.
    • Parse and error on usage of in/out/in out variance annotations.
    • Parse and error on as, as const, and satisfies cast expressions.
  • Add a codemod to fix underconstrained-implicit-instantiation errors only detectable under LTI. You can run flow codemod annotate-implicit-instantiations --include-lti --ignore-suppressed --write .

Notable bug fixes:

  • Fix a bug in LTI mode where some errors were hidden in implicit instantiation calls (e.g. Try Flow)
  • Fix unsound behavior of sentinel refinement with unions of numeric types as tags (e.g. Try Flow)
  • No annotation is required in LTI for callback parameters when the callee is a refined object member (e.g. Try Flow)

IDE:

  • When typing in an object literal, entire method signatures from the object type will be suggested.
  • Method signature autocomplete items are now visually distinguished from other kinds of autocomplete items.
  • Fix manually triggering autocomplete on the last empty line of a file giving no results.
  • Members from Object.prototype are no longer included in autocomplete results.

Parser:

  • Fix parsing of for await (async of ...) (regressed in 0.197.0)
  • Fix parsing of for (let in x) in non-strict mode
  • Fix parsing of class fields named static
  • Fix missing parse errors on keywords containing escape sequences (regressed in 0.180.0)
  • Fix missing parse error when using await as a parameter in an async arrow function
  • Fix missing parse error for export { ReservedWord as ... }
  • Fix incorrect parse error on export * as ReservedWord from ..., which is now allowed
  • Treat && and || as tokens when parsing types to improve error messages
  • Parse the argument of the typeof type argument as a value, not a type, as it is a value

Library Definitions:

  • Add Element.getAttributeNames(): Array<string>

0.197.0

Local Type Inference:

... (truncated)

Commits
  • 1e7955d v0.198.1
  • b0d54fb fix VisitorsRuntime.StructuralMismatch exception
  • 0f9a755 v0.198.0
  • 1dc2274 handle intersections as static class callees
  • c51022a restore errors properly in in_sandbox_cx
  • 859bc5f refactor: flatten out PolyT cases in Flow_js
  • fe87b8f [ts-syntax] Quick fix to convert readonly on array/tuple type syntax to app...
  • 66a3d98 [ts-syntax] Parse and error on readonly applied to tuple and array type syntax
  • eb54ab5 [ts-syntax] Treat readonly as a token when parsing types
  • ba2b5f3 [ts-syntax] Add more parser tests for readonly variance
  • 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)

Bumps [flow-parser](https://github.com/facebook/flow) from 0.136.0 to 0.198.1.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md)
- [Commits](facebook/flow@v0.136.0...v0.198.1)

---
updated-dependencies:
- dependency-name: flow-parser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
0 participants