From 7883839f5c7fffbe6481ed90189cb517d784d4c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 23:15:59 +0000 Subject: [PATCH 1/3] Bump typescript from 4.9.5 to 5.2.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.5 to 5.2.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.5...v5.2.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index fb5d3483..159a9b2e 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "reify": "^0.20.12", "rollup": "^3.5.0", "ts-node": "^9.0.0", - "typescript": "^4.0.2" + "typescript": "^5.2.2" }, "files": [ "dist" diff --git a/yarn.lock b/yarn.lock index e5e1f234..300e9537 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1357,10 +1357,10 @@ type-fest@^1.0.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1" integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== -typescript@^4.0.2: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" + integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== unbox-primitive@^1.0.0: version "1.0.1" From f3705b5e58b31175ffc336d317a79478a2a9ee2d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 13 Nov 2023 08:21:32 -0500 Subject: [PATCH 2/3] Fix deprecated option --- lib/auth.ts | 1 + lib/collection.ts | 4 ++++ tsconfig.json | 3 +-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/auth.ts b/lib/auth.ts index d2b1292d..cf01d0c4 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -124,6 +124,7 @@ async function tokenRequest( formData.append("client_id", clientId); } Object.keys(data).forEach((key) => { + // @ts-ignore formData.append(key, data[key]); }); diff --git a/lib/collection.ts b/lib/collection.ts index 2124bc08..011eefb1 100644 --- a/lib/collection.ts +++ b/lib/collection.ts @@ -30,7 +30,9 @@ export const getCollection = ( ) => Promise, options: { unsubGrace: boolean } = { unsubGrace: true }, ): Collection => { + // @ts-ignore if (conn[key]) { + // @ts-ignore return conn[key]; } @@ -115,6 +117,7 @@ export const getCollection = ( } }; + // @ts-ignore conn[key] = { get state() { return store.state; @@ -159,6 +162,7 @@ export const getCollection = ( }, }; + // @ts-ignore return conn[key]; }; diff --git a/tsconfig.json b/tsconfig.json index e2c971c1..801bcd89 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,8 +8,7 @@ "noImplicitReturns": true, "noUnusedLocals": true, "forceConsistentCasingInFileNames": true, - "strict": true, - "suppressImplicitAnyIndexErrors": true + "strict": true }, "include": ["lib/*"] } From 6c3f4e158186270074d7e9ef05cd7093426068d0 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 13 Nov 2023 08:25:28 -0500 Subject: [PATCH 3/3] type test --- test/util.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/util.ts b/test/util.ts index 5ad6698b..c5ea42e5 100644 --- a/test/util.ts +++ b/test/util.ts @@ -38,11 +38,13 @@ export class MockConnection extends Connection { } mockResponse(type: any, data: any) { + // @ts-ignore this._mockResponses[type] = data; } async sendMessagePromise(message: any) { if (message.type in this._mockResponses) { + // @ts-ignore return this._mockResponses[message.type]; } throw new Error("Unexpected type");