From 845ffcdb9e799367860e79d954cae7e64d0c2599 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 29 Nov 2024 00:06:43 +0000 Subject: [PATCH 1/2] chore(deps): update dependency typescript from 5.6.3 to 5.7.2 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0b57eed..9974612 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "jest": "29.7.0", "prettier": "3.4.1", "prisma": "6.0.0", - "typescript": "5.6.3" + "typescript": "5.7.2" }, "publishConfig": { "access": "public" diff --git a/yarn.lock b/yarn.lock index 8246f25..9948556 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4022,10 +4022,10 @@ typed-array-length@^1.0.4: for-each "^0.3.3" is-typed-array "^1.1.9" -typescript@5.6.3: - version "5.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" - integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== +typescript@5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== unbox-primitive@^1.0.2: version "1.0.2" From 794b6573e7a6823a5e8432eb9383a8b6f012ce85 Mon Sep 17 00:00:00 2001 From: queicherius Date: Fri, 29 Nov 2024 17:47:14 +0000 Subject: [PATCH 2/2] Fix 'use before assign' in type checks --- tests/index.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/index.spec.ts b/tests/index.spec.ts index a96dfcc..a2f392b 100644 --- a/tests/index.spec.ts +++ b/tests/index.spec.ts @@ -566,8 +566,9 @@ describe('prisma-relay-cursor-connection', () => { // These are not real tests which run, but rather a way to ensure that the types are correct // when tsc runs const typecheckForInferredTypes = async () => { - let client: PrismaClient - // Default will get the inferred types from prisma + const client = new PrismaClient() + + // Default will get the inferred types from prisma ;(await findManyCursorConnection( (args) => client.todo.findMany(args), () => client.todo.count(),