From babd8047352e001fd4bc9cf1f9a8b2b1d5bb5691 Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Thu, 6 Jun 2024 13:32:35 +0800 Subject: [PATCH 1/4] release 5.12 --- package.json | 4 ++-- pnpm-lock.yaml | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 5cc5e73..e0d08f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tidbcloud/prisma-adapter", - "version": "5.11.1", + "version": "5.12.0", "description": "Prisma's driver adapter for \"@tidbcloud/serverless\"", "main": "dist/index.js", "module": "dist/index.mjs", @@ -34,7 +34,7 @@ "license": "Apache-2.0", "sideEffects": false, "dependencies": { - "@prisma/driver-adapter-utils": "5.11.0" + "@prisma/driver-adapter-utils": "5.12.0" }, "devDependencies": { "@tidbcloud/serverless": "^0.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c35395a..a21ab5c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@prisma/driver-adapter-utils': - specifier: 5.11.0 - version: 5.11.0 + specifier: 5.12.0 + version: 5.12.0 devDependencies: '@tidbcloud/serverless': @@ -301,14 +301,14 @@ packages: fastq: 1.15.0 dev: true - /@prisma/debug@5.11.0: - resolution: {integrity: sha512-N6yYr3AbQqaiUg+OgjkdPp3KPW1vMTAgtKX6+BiB/qB2i1TjLYCrweKcUjzOoRM5BriA4idrkTej9A9QqTfl3A==} + /@prisma/debug@5.12.0: + resolution: {integrity: sha512-wK3fQLxPLMqf5riT5ZIhl8NffPSzFUwtzFX5CH7z/oI9Swmo9UhQlUgZABIVgdXSJ5OAlmRcDZtDKaMApIl8sg==} dev: false - /@prisma/driver-adapter-utils@5.11.0: - resolution: {integrity: sha512-C2Qa/HZXZNwDBZCHJxlV4eibqXakbOBLd+mUeNCxSfaM8yi8Qi8zToN8Kb3M60Kr1ymr+tzzw/wVqYIfIfUiXw==} + /@prisma/driver-adapter-utils@5.12.0: + resolution: {integrity: sha512-B57KUrKmRlax4sE4pc2VKPtG5U9XGm5kjtqSWBUd83NopIZVuvKunH3ETrOShwBCqWZXZolHvdDjDwHyiT2HRQ==} dependencies: - '@prisma/debug': 5.11.0 + '@prisma/debug': 5.12.0 dev: false /@tidbcloud/serverless@0.1.1: From c3425cf327d6164aec111fcc40ecb956d49bfbb8 Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Thu, 6 Jun 2024 13:34:20 +0800 Subject: [PATCH 2/4] release 5.12 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a7494d9..5f7c5f4 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ try { | v5.9.x | v5.9.x | [v0.0.9, v0.1.0) | | v5.10.x | v5.10.x | \>= v0.1.0 | | v5.11.x | v5.11.x | \>= v0.1.0 | +| v5.12.x | v5.12.x | \>= v0.1.0 | Here is the step to step guide for how to choose the version: From f7e6f1083a41d3003da212b06256b7a452b7ab19 Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Thu, 6 Jun 2024 13:43:38 +0800 Subject: [PATCH 3/4] add adapterName --- src/tidbcloud.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tidbcloud.ts b/src/tidbcloud.ts index 40af289..27f6f8d 100644 --- a/src/tidbcloud.ts +++ b/src/tidbcloud.ts @@ -15,6 +15,7 @@ import { fieldToColumnType, customDecoder, } from "./conversion"; +import { name as packageName } from '../package.json' const debug = Debug("prisma:driver-adapter:tidbcloud"); @@ -35,6 +36,7 @@ class TiDBCloudQueryable implements Queryable { readonly provider = "mysql"; + readonly adapterName = packageName; constructor(protected client: ClientT) {} /** From 25a6b4fecfe6801e24d61d05c1b8fa269dca61d7 Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Thu, 6 Jun 2024 13:45:12 +0800 Subject: [PATCH 4/4] fmt --- src/tidbcloud.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tidbcloud.ts b/src/tidbcloud.ts index 27f6f8d..05282a8 100644 --- a/src/tidbcloud.ts +++ b/src/tidbcloud.ts @@ -15,7 +15,7 @@ import { fieldToColumnType, customDecoder, } from "./conversion"; -import { name as packageName } from '../package.json' +import { name as packageName } from "../package.json"; const debug = Debug("prisma:driver-adapter:tidbcloud");