From 6a65c1e8ba252a97e17fe942da925df499f8b310 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:44:21 +0000 Subject: [PATCH] chore(deps): update dependency expect-type to v0.20.0 ##### [`v0.20.0](https://github.com/mmkal/expect-type/releases/tag/v0.20.0) #### Breaking changes - improve overloads support, attempt 2 by [@mmkal](https://github.com/mmkal) in https://github.com/mmkal/expect-type/pull/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: ```ts type Factorize = { (input: number): number[] (input: bigint): bigint[] } ``` Behvaiour before: ```ts expectTypeOf().parameters.toEqualTypeOf<[bigint]>() ``` Behaviour now: ```ts expectTypeOf().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](https://github.com/mmkal/expect-type/issues/83) for more details or look at the updated docs (including a new section called "[Overloaded functions](https://github.com/mmkal/expect-type#overloaded-functions)", which has more info on how this behaviour differs for TypeScript versions before 5.3). #### What's Changed - Fix rendering issue in readme by [@mrazauskas](https://github.com/mrazauskas) in https://github.com/mmkal/expect-type/pull/69 - Fix minor issues in docs by [@aryaemami59](https://github.com/aryaemami59) in https://github.com/mmkal/expect-type/pull/91 - create utils file by [@mmkal](https://github.com/mmkal) in https://github.com/mmkal/expect-type/pull/93 - branding.ts and messages.ts by [@mmkal](https://github.com/mmkal) in https://github.com/mmkal/expect-type/pull/95 - improve overloads support, attempt 2 by [@mmkal](https://github.com/mmkal) in https://github.com/mmkal/expect-type/pull/83 - Extends: explain myself [`1e37116`](https://github.com/mmkal/expect-type/commit/1e37116) - Mark internal APIs with `@internal` JSDoc tag ([#104](https://github.com/mmkal/expect-type/issues/104)) [`4c40b07`](https://github.com/mmkal/expect-type/commit/4c40b07) - Re-export everything in `overloads.ts` file ([#107](https://github.com/mmkal/expect-type/issues/107)) [`5ee0181`](https://github.com/mmkal/expect-type/commit/5ee0181) - JSDoc improvements ([#100](https://github.com/mmkal/expect-type/issues/100)) [`0bbeffa`](https://github.com/mmkal/expect-type/commit/0bbeffa) **Full Changelog**: https://github.com/mmkal/expect-type/compare/v0.19.0...v0.20.0 --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 2d38310..80b66d1 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@types/node": "20.16.1", "eslint-plugin-mmkal": "0.9.0", "execa": "9.3.1", - "expect-type": "0.19.0", + "expect-type": "0.20.0", "fs-syncer": "0.5.3", "np": "10.0.7", "pkg-pr-new": "^0.0.20", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f733e14..b855d50 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -37,8 +37,8 @@ importers: specifier: 9.3.1 version: 9.3.1 expect-type: - specifier: 0.19.0 - version: 0.19.0 + specifier: 0.20.0 + version: 0.20.0 fs-syncer: specifier: 0.5.3 version: 0.5.3 @@ -1777,8 +1777,8 @@ packages: resolution: {integrity: sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ==} engines: {node: '>=18'} - expect-type@0.19.0: - resolution: {integrity: sha512-piv9wz3IrAG4Wnk2A+n2VRCHieAyOSxrRLU872Xo6nyn39kYXKDALk4OcqnvLRnFvkz659CnWC8MWZLuuQnoqg==} + expect-type@0.20.0: + resolution: {integrity: sha512-uHaC9LYNv6BcW+8SvXcwUUDCrrUxt3GSa61DFvTHj8JC+M0hekMFBwMlCarLQDk5bbpZ2vStpnQPIwRuV98YMw==} engines: {node: '>=12.0.0'} expect@29.7.0: @@ -5664,7 +5664,7 @@ snapshots: exit-hook@4.0.0: {} - expect-type@0.19.0: {} + expect-type@0.20.0: {} expect@29.7.0: dependencies: