chore(deps): bump @types/chai to 5.0.1 (#7123)

Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
This commit is contained in:
nopeless 2025-03-01 04:56:42 +01:00 committed by GitHub
parent 63e89702c1
commit 80cd129f3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 68 additions and 24 deletions

View File

@ -82,7 +82,7 @@
]
},
"patchedDependencies": {
"@types/chai@4.3.6": "patches/@types__chai@4.3.6.patch",
"@types/chai@5.0.1": "patches/@types__chai@5.0.1.patch",
"@sinonjs/fake-timers@14.0.0": "patches/@sinonjs__fake-timers@14.0.0.patch",
"cac@6.7.14": "patches/cac@6.7.14.patch",
"@types/sinonjs__fake-timers@8.1.5": "patches/@types__sinonjs__fake-timers@8.1.5.patch",

View File

@ -40,7 +40,7 @@
"tinyrainbow": "^2.0.0"
},
"devDependencies": {
"@types/chai": "4.3.6",
"@types/chai": "5.0.1",
"@vitest/runner": "workspace:*",
"rollup-plugin-copy": "^3.5.0"
}

View File

@ -1,14 +0,0 @@
diff --git a/index.d.ts b/index.d.ts
index 9f5cb99cdc30c0ceee9c4bb2d866030cfe7b889e..7e231313ed85b703d70ec44778a96e7f3ff4f98e 100755
--- a/index.d.ts
+++ b/index.d.ts
@@ -1963,6 +1963,6 @@ declare module "chai" {
export = chai;
}
-interface Object {
- should: Chai.Assertion;
-}
+// interface Object {
+// should: Chai.Assertion;
+// }

View File

@ -0,0 +1,51 @@
diff --git a/index.d.ts b/index.d.ts
index 986e0d507d88bc033f0a0f0b4dcc40be0635df94..beab8eae28220a457950cdbf5c7f043424f4fa14 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,7 +1,7 @@
-import deepEqual = require("deep-eql");
+// import deepEqual = require("deep-eql");
-declare global {
- namespace Chai {
+// declare global {
+ declare namespace Chai {
type Message = string | (() => string);
type ObjectProperty = string | symbol | number;
@@ -73,7 +73,7 @@ declare global {
getPathInfo(obj: object, path: string): PathInfo;
getPathValue(obj: object, path: string): object | undefined;
- eql: typeof deepEqual;
+ // eql: typeof deepEqual;
}
type ChaiPlugin = (chai: ChaiStatic, utils: ChaiUtils) => void;
@@ -2104,8 +2104,9 @@ declare global {
stack: string;
}
}
-}
+// }
+declare module "chai" {
export function use(fn: Chai.ChaiPlugin): Chai.ChaiStatic;
export const util: Chai.ChaiUtils;
@@ -2115,9 +2116,10 @@ export function should(): Chai.Should;
export function Should(): Chai.Should;
export const assert: Chai.AssertStatic;
export const expect: Chai.ExpectStatic;
-
-declare global {
- interface Object {
- should: Chai.Assertion;
- }
}
+
+// declare global {
+// interface Object {
+// should: Chai.Assertion;
+// }
+// }

23
pnpm-lock.yaml generated
View File

@ -17,9 +17,9 @@ patchedDependencies:
'@sinonjs/fake-timers@14.0.0':
hash: 6f7091fcf11165157b4bfb8dde6b5b6b7697e3efd6e9b53bb4bdef442f60a278
path: patches/@sinonjs__fake-timers@14.0.0.patch
'@types/chai@4.3.6':
hash: bf8d3f0f9a8fa79fc18c6022699d05f01b3f60fe137b1b415d0ffe94c324413f
path: patches/@types__chai@4.3.6.patch
'@types/chai@5.0.1':
hash: d8a67f88e932ba6fd5a5cd04e3ed6474636e1b2a33a589695c5ae18676e23aaf
path: patches/@types__chai@5.0.1.patch
'@types/sinonjs__fake-timers@8.1.5':
hash: 0218b33f433e26861380c2b90c757bde6fea871cb988083c0bd4a9a1f6c00252
path: patches/@types__sinonjs__fake-timers@8.1.5.patch
@ -581,8 +581,8 @@ importers:
version: 2.0.0
devDependencies:
'@types/chai':
specifier: 4.3.6
version: 4.3.6(patch_hash=bf8d3f0f9a8fa79fc18c6022699d05f01b3f60fe137b1b415d0ffe94c324413f)
specifier: 5.0.1
version: 5.0.1(patch_hash=d8a67f88e932ba6fd5a5cd04e3ed6474636e1b2a33a589695c5ae18676e23aaf)
'@vitest/runner':
specifier: workspace:*
version: link:../runner
@ -3564,8 +3564,8 @@ packages:
'@types/braces@3.0.1':
resolution: {integrity: sha512-+euflG6ygo4bn0JHtn4pYqcXwRtLvElQ7/nnjDu7iYG56H0+OhCd7d6Ug0IE3WcFpZozBKW2+80FUbv5QGk5AQ==}
'@types/chai@4.3.6':
resolution: {integrity: sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw==}
'@types/chai@5.0.1':
resolution: {integrity: sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA==}
'@types/codemirror@5.60.15':
resolution: {integrity: sha512-dTOvwEQ+ouKJ/rE9LT1Ue2hmP6H1mZv5+CCnNWu2qtiOe2LQa9lCprEY20HxiDmV/Bxh+dXjywmy5aKvoGjULA==}
@ -3585,6 +3585,9 @@ packages:
'@types/debug@4.1.12':
resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}
'@types/deep-eql@4.0.2':
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
'@types/doctrine@0.0.9':
resolution: {integrity: sha512-eOIHzCUSH7SMfonMG1LsC2f8vxBFtho6NGBznK41R84YzPuvSBzrhEps33IsQiOW9+VL6NQ9DbjQJznk/S4uRA==}
@ -11694,7 +11697,9 @@ snapshots:
'@types/braces@3.0.1': {}
'@types/chai@4.3.6(patch_hash=bf8d3f0f9a8fa79fc18c6022699d05f01b3f60fe137b1b415d0ffe94c324413f)': {}
'@types/chai@5.0.1(patch_hash=d8a67f88e932ba6fd5a5cd04e3ed6474636e1b2a33a589695c5ae18676e23aaf)':
dependencies:
'@types/deep-eql': 4.0.2
'@types/codemirror@5.60.15':
dependencies:
@ -11712,6 +11717,8 @@ snapshots:
dependencies:
'@types/ms': 0.7.31
'@types/deep-eql@4.0.2': {}
'@types/doctrine@0.0.9': {}
'@types/eslint@9.6.1':