Skip to content

[Snyk] Upgrade expect-type from 0.19.0 to 0.20.0#2

Open
hashim21223445 wants to merge 1 commit intomainfrom
snyk-upgrade-2288af7ab05c195ff0e2d9625ea55e17
Open

[Snyk] Upgrade expect-type from 0.19.0 to 0.20.0#2
hashim21223445 wants to merge 1 commit intomainfrom
snyk-upgrade-2288af7ab05c195ff0e2d9625ea55e17

Conversation

@hashim21223445
Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to upgrade expect-type from 0.19.0 to 0.20.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 2 versions ahead of your current version.

  • The recommended version was released 4 months ago.

Release notes
Package name: expect-type
  • 0.20.0 - 2024-08-20

    Breaking changes

    • improve overloads support, attempt 2 by @ mmkal in #83

    This change updates how overloaded functions are treated. Now, .parameters gives you a union of the parameter-tuples that a function can take. For example, given the following type:

    type Factorize = {
      (input: number): number[]
      (input: bigint): bigint[]
    }

    Behvaiour before:

    expectTypeOf<Factorize>().parameters.toEqualTypeOf<[bigint]>()

    Behaviour now:

    expectTypeOf<Factorize>().parameters.toEqualTypeOf<[number] | [bigint]>()

    There were similar changes for .returns, .parameter(...), and .toBeCallableWith. Also, overloaded functions are now differentiated properly when using .branded.toEqualTypeOf (this was a bug that it seems nobody found).

    See #83 for more details or look at the updated docs (including a new section called "Overloaded functions", which has more info on how this behaviour differs for TypeScript versions before 5.3).

    What's Changed

    Full Changelog: v0.19.0...v0.20.0

  • 0.20.0-0 - 2024-08-13

    Breaking changes

    • improve overloads support, attempt 2 by @ mmkal in #83

    This change updates how overloaded functions are treated. Now, .parameters gives you a union of the parameter-tuples that a function can take. For example, given the following type:

    type Factorize = {
      (input: number): number[]
      (input: bigint): bigint[]
    }

    Behvaiour before:

    expectTypeOf<Factorize>().parameters.toEqualTypeOf<[bigint]>()

    Behaviour now:

    expectTypeOf<Factorize>().parameters.toEqualTypeOf<[number] | [bigint]>()

    There were similar changes for .returns, .parameter(...), and .toBeCallableWith. Also, overloaded functions are now differentiated properly when using .branded.toEqualTypeOf (this was a bug that it seems nobody found).

    See #83 for more details or look at the updated docs (including a new section called "Overloaded functions", which has more info on how this behaviour differs for TypeScript versions before 5.3.

    What's Changed

    New Contributors

    Full Changelog: v0.17.3...v0.20.0-0

  • 0.19.0 - 2024-03-21

    What's Changed

    Full Changelog: 0.18.0...0.19.0

from expect-type GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade expect-type from 0.19.0 to 0.20.0.

See this package in npm:
expect-type

See this project in Snyk:
https://app.snyk.io/org/hashim21223445/project/a3075975-483e-45fe-801c-246b39b92b4a?utm_source=github&utm_medium=referral&page=upgrade-pr
@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com bot commented Dec 31, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  package.json  0% smaller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants