@prisma/client 6.4.0-dev.6 → 6.4.0-dev.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generator-build/index.js +33 -21
- package/package.json +38 -27
- package/runtime/binary.js +83 -85
- package/runtime/client.d.ts +32 -24
- package/runtime/client.js +33 -33
- package/runtime/edge-esm.js +18 -18
- package/runtime/edge.js +18 -18
- package/runtime/index-browser.d.ts +2 -0
- package/runtime/index-browser.js +3 -3
- package/runtime/library.d.ts +32 -24
- package/runtime/library.js +49 -49
- package/runtime/query_compiler_bg.mysql.wasm +0 -0
- package/runtime/query_compiler_bg.postgresql.wasm +0 -0
- package/runtime/query_compiler_bg.sqlite.wasm +0 -0
- package/runtime/query_engine_bg.mysql.js +2 -2
- package/runtime/query_engine_bg.mysql.wasm +0 -0
- package/runtime/query_engine_bg.postgresql.js +2 -2
- package/runtime/query_engine_bg.postgresql.wasm +0 -0
- package/runtime/query_engine_bg.sqlite.js +2 -2
- package/runtime/query_engine_bg.sqlite.wasm +0 -0
- package/runtime/react-native.d.ts +32 -24
- package/runtime/react-native.js +23 -23
- package/runtime/wasm.js +18 -18
- package/scripts/default-index.js +3 -3
package/generator-build/index.js
CHANGED
|
@@ -33,18 +33,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.4.0-
|
|
36
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d/node_modules/@prisma/engines-version/package.json
|
|
37
37
|
var require_package = __commonJS({
|
|
38
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.4.0-
|
|
38
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
39
39
|
module2.exports = {
|
|
40
40
|
name: "@prisma/engines-version",
|
|
41
|
-
version: "6.4.0-
|
|
41
|
+
version: "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
42
42
|
main: "index.js",
|
|
43
43
|
types: "index.d.ts",
|
|
44
44
|
license: "Apache-2.0",
|
|
45
45
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
|
46
46
|
prisma: {
|
|
47
|
-
enginesVersion: "
|
|
47
|
+
enginesVersion: "a9055b89e58b4b5bfb59600785423b1db3d0e75d"
|
|
48
48
|
},
|
|
49
49
|
repository: {
|
|
50
50
|
type: "git",
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
directory: "packages/engines-version"
|
|
53
53
|
},
|
|
54
54
|
devDependencies: {
|
|
55
|
-
"@types/node": "18.19.
|
|
55
|
+
"@types/node": "18.19.76",
|
|
56
56
|
typescript: "4.9.5"
|
|
57
57
|
},
|
|
58
58
|
files: [
|
|
@@ -66,9 +66,9 @@ var require_package = __commonJS({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.4.0-
|
|
69
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d/node_modules/@prisma/engines-version/index.js
|
|
70
70
|
var require_engines_version = __commonJS({
|
|
71
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.4.0-
|
|
71
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d/node_modules/@prisma/engines-version/index.js"(exports2) {
|
|
72
72
|
"use strict";
|
|
73
73
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74
74
|
exports2.enginesVersion = void 0;
|
|
@@ -3946,7 +3946,7 @@ var require_package2 = __commonJS({
|
|
|
3946
3946
|
"package.json"(exports2, module2) {
|
|
3947
3947
|
module2.exports = {
|
|
3948
3948
|
name: "@prisma/client",
|
|
3949
|
-
version: "6.4.0-dev.
|
|
3949
|
+
version: "6.4.0-dev.60",
|
|
3950
3950
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
3951
3951
|
keywords: [
|
|
3952
3952
|
"ORM",
|
|
@@ -4036,6 +4036,12 @@ var require_package2 = __commonJS({
|
|
|
4036
4036
|
import: "./wasm.js",
|
|
4037
4037
|
default: "./wasm.js"
|
|
4038
4038
|
},
|
|
4039
|
+
"./runtime/client": {
|
|
4040
|
+
types: "./runtime/client.d.ts",
|
|
4041
|
+
require: "./runtime/client.js",
|
|
4042
|
+
import: "./runtime/client.js",
|
|
4043
|
+
default: "./runtime/client.js"
|
|
4044
|
+
},
|
|
4039
4045
|
"./runtime/library": {
|
|
4040
4046
|
types: "./runtime/library.d.ts",
|
|
4041
4047
|
require: "./runtime/library.js",
|
|
@@ -4086,9 +4092,12 @@ var require_package2 = __commonJS({
|
|
|
4086
4092
|
test: "dotenv -e ../../.db.env -- jest --silent",
|
|
4087
4093
|
"test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
|
|
4088
4094
|
"test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
|
|
4095
|
+
"test:functional:client": "PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE=1 pnpm run test:functional --adapter js_pg --client-runtime client --preview-features driverAdapters --engine-type client --runInBand --json --outputFile tests/functional/results.json decimal",
|
|
4089
4096
|
"test:memory": "dotenv -e ../../.db.env -- tsx helpers/memory-tests.ts",
|
|
4090
4097
|
"test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
|
|
4091
4098
|
"test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
|
|
4099
|
+
"test:knownQueryCompilerFailures:check": "tsx helpers/functional-test/check-known-failures.ts",
|
|
4100
|
+
"test:knownQueryCompilerFailures:record": "tsx helpers/functional-test/check-known-failures.ts --record",
|
|
4092
4101
|
"test-notypes": "dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",
|
|
4093
4102
|
generate: "node scripts/postinstall.js",
|
|
4094
4103
|
postinstall: "node scripts/postinstall.js",
|
|
@@ -4130,10 +4139,10 @@ var require_package2 = __commonJS({
|
|
|
4130
4139
|
"@libsql/client": "0.8.0",
|
|
4131
4140
|
"@neondatabase/serverless": "0.10.2",
|
|
4132
4141
|
"@opentelemetry/api": "1.9.0",
|
|
4133
|
-
"@opentelemetry/context-async-hooks": "1.
|
|
4134
|
-
"@opentelemetry/instrumentation": "0.
|
|
4135
|
-
"@opentelemetry/resources": "1.
|
|
4136
|
-
"@opentelemetry/sdk-trace-base": "1.
|
|
4142
|
+
"@opentelemetry/context-async-hooks": "1.30.1",
|
|
4143
|
+
"@opentelemetry/instrumentation": "0.57.1",
|
|
4144
|
+
"@opentelemetry/resources": "1.30.1",
|
|
4145
|
+
"@opentelemetry/sdk-trace-base": "1.30.1",
|
|
4137
4146
|
"@opentelemetry/semantic-conventions": "1.28.0",
|
|
4138
4147
|
"@planetscale/database": "1.18.0",
|
|
4139
4148
|
"@prisma/adapter-d1": "workspace:*",
|
|
@@ -4142,10 +4151,12 @@ var require_package2 = __commonJS({
|
|
|
4142
4151
|
"@prisma/adapter-pg": "workspace:*",
|
|
4143
4152
|
"@prisma/adapter-pg-worker": "workspace:*",
|
|
4144
4153
|
"@prisma/adapter-planetscale": "workspace:*",
|
|
4154
|
+
"@prisma/client-engine-runtime": "workspace:*",
|
|
4155
|
+
"@prisma/config": "workspace:*",
|
|
4145
4156
|
"@prisma/debug": "workspace:*",
|
|
4146
4157
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4147
4158
|
"@prisma/engines": "workspace:*",
|
|
4148
|
-
"@prisma/engines-version": "6.4.0-
|
|
4159
|
+
"@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
4149
4160
|
"@prisma/fetch-engine": "workspace:*",
|
|
4150
4161
|
"@prisma/generator-helper": "workspace:*",
|
|
4151
4162
|
"@prisma/get-platform": "workspace:*",
|
|
@@ -4154,8 +4165,8 @@ var require_package2 = __commonJS({
|
|
|
4154
4165
|
"@prisma/migrate": "workspace:*",
|
|
4155
4166
|
"@prisma/mini-proxy": "0.9.5",
|
|
4156
4167
|
"@prisma/pg-worker": "workspace:*",
|
|
4157
|
-
"@prisma/query-compiler-wasm": "6.4.0-
|
|
4158
|
-
"@prisma/query-engine-wasm": "6.4.0-
|
|
4168
|
+
"@prisma/query-compiler-wasm": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
4169
|
+
"@prisma/query-engine-wasm": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
4159
4170
|
"@snaplet/copycat": "0.17.3",
|
|
4160
4171
|
"@swc-node/register": "1.10.9",
|
|
4161
4172
|
"@swc/core": "1.10.11",
|
|
@@ -4171,7 +4182,7 @@ var require_package2 = __commonJS({
|
|
|
4171
4182
|
arg: "5.0.2",
|
|
4172
4183
|
benchmark: "2.1.4",
|
|
4173
4184
|
"ci-info": "4.0.0",
|
|
4174
|
-
"decimal.js": "10.
|
|
4185
|
+
"decimal.js": "10.5.0",
|
|
4175
4186
|
"detect-runtime": "1.0.4",
|
|
4176
4187
|
"env-paths": "2.2.1",
|
|
4177
4188
|
esbuild: "0.24.2",
|
|
@@ -4191,7 +4202,7 @@ var require_package2 = __commonJS({
|
|
|
4191
4202
|
kleur: "4.1.5",
|
|
4192
4203
|
klona: "2.0.6",
|
|
4193
4204
|
mariadb: "3.3.1",
|
|
4194
|
-
memfs: "4.
|
|
4205
|
+
memfs: "4.17.0",
|
|
4195
4206
|
mssql: "11.0.1",
|
|
4196
4207
|
"new-github-issue-url": "0.2.1",
|
|
4197
4208
|
"node-fetch": "3.3.2",
|
|
@@ -4212,7 +4223,7 @@ var require_package2 = __commonJS({
|
|
|
4212
4223
|
"ts-pattern": "5.6.2",
|
|
4213
4224
|
tsd: "0.31.2",
|
|
4214
4225
|
typescript: "5.4.5",
|
|
4215
|
-
undici: "7.
|
|
4226
|
+
undici: "7.3.0",
|
|
4216
4227
|
wrangler: "3.91.0",
|
|
4217
4228
|
zx: "7.2.3"
|
|
4218
4229
|
},
|
|
@@ -8580,7 +8591,7 @@ function buildMapForRuntime(list) {
|
|
|
8580
8591
|
function buildRuntimeDataModel(datamodel, runtimeNameJs) {
|
|
8581
8592
|
const runtimeDataModel = dmmfToRuntimeDataModel(datamodel);
|
|
8582
8593
|
let prunedDataModel;
|
|
8583
|
-
if (runtimeNameJs === "wasm") {
|
|
8594
|
+
if (runtimeNameJs === "wasm" || runtimeNameJs === "client") {
|
|
8584
8595
|
prunedDataModel = pruneRuntimeDataModel(runtimeDataModel);
|
|
8585
8596
|
} else {
|
|
8586
8597
|
prunedDataModel = runtimeDataModel;
|
|
@@ -10759,7 +10770,7 @@ function getTypedSqlRuntimeBase(runtimeBase) {
|
|
|
10759
10770
|
return `../${runtimeBase}`;
|
|
10760
10771
|
}
|
|
10761
10772
|
async function getDefaultOutdir(outputDir) {
|
|
10762
|
-
if (outputDir.endsWith("node_modules/@prisma/client")) {
|
|
10773
|
+
if (outputDir.endsWith(import_path5.default.normalize("node_modules/@prisma/client"))) {
|
|
10763
10774
|
return import_path5.default.join(outputDir, "../../.prisma/client");
|
|
10764
10775
|
}
|
|
10765
10776
|
if (process.env.INIT_CWD && process.env.npm_lifecycle_event === "postinstall" && !process.env.PWD?.includes(".pnpm")) {
|
|
@@ -10985,8 +10996,9 @@ async function getGenerationDirs({
|
|
|
10985
10996
|
testMode
|
|
10986
10997
|
}) {
|
|
10987
10998
|
const isCustomOutput = generator.isCustomOutput === true;
|
|
10999
|
+
const normalizedOutputDir = import_path5.default.normalize(outputDir);
|
|
10988
11000
|
let userRuntimeImport = isCustomOutput ? "./runtime" : "@prisma/client/runtime";
|
|
10989
|
-
let userOutputDir = isCustomOutput ?
|
|
11001
|
+
let userOutputDir = isCustomOutput ? normalizedOutputDir : await getDefaultOutdir(normalizedOutputDir);
|
|
10990
11002
|
if (testMode && runtimeBase) {
|
|
10991
11003
|
userOutputDir = outputDir;
|
|
10992
11004
|
userRuntimeImport = pathToPosix(runtimeBase);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.60",
|
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ORM",
|
|
@@ -90,6 +90,12 @@
|
|
|
90
90
|
"import": "./wasm.js",
|
|
91
91
|
"default": "./wasm.js"
|
|
92
92
|
},
|
|
93
|
+
"./runtime/client": {
|
|
94
|
+
"types": "./runtime/client.d.ts",
|
|
95
|
+
"require": "./runtime/client.js",
|
|
96
|
+
"import": "./runtime/client.js",
|
|
97
|
+
"default": "./runtime/client.js"
|
|
98
|
+
},
|
|
93
99
|
"./runtime/library": {
|
|
94
100
|
"types": "./runtime/library.d.ts",
|
|
95
101
|
"require": "./runtime/library.js",
|
|
@@ -169,16 +175,16 @@
|
|
|
169
175
|
"@libsql/client": "0.8.0",
|
|
170
176
|
"@neondatabase/serverless": "0.10.2",
|
|
171
177
|
"@opentelemetry/api": "1.9.0",
|
|
172
|
-
"@opentelemetry/context-async-hooks": "1.
|
|
173
|
-
"@opentelemetry/instrumentation": "0.
|
|
174
|
-
"@opentelemetry/resources": "1.
|
|
175
|
-
"@opentelemetry/sdk-trace-base": "1.
|
|
178
|
+
"@opentelemetry/context-async-hooks": "1.30.1",
|
|
179
|
+
"@opentelemetry/instrumentation": "0.57.1",
|
|
180
|
+
"@opentelemetry/resources": "1.30.1",
|
|
181
|
+
"@opentelemetry/sdk-trace-base": "1.30.1",
|
|
176
182
|
"@opentelemetry/semantic-conventions": "1.28.0",
|
|
177
183
|
"@planetscale/database": "1.18.0",
|
|
178
|
-
"@prisma/engines-version": "6.4.0-
|
|
184
|
+
"@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
179
185
|
"@prisma/mini-proxy": "0.9.5",
|
|
180
|
-
"@prisma/query-compiler-wasm": "6.4.0-
|
|
181
|
-
"@prisma/query-engine-wasm": "6.4.0-
|
|
186
|
+
"@prisma/query-compiler-wasm": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
187
|
+
"@prisma/query-engine-wasm": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
|
182
188
|
"@snaplet/copycat": "0.17.3",
|
|
183
189
|
"@swc-node/register": "1.10.9",
|
|
184
190
|
"@swc/core": "1.10.11",
|
|
@@ -194,7 +200,7 @@
|
|
|
194
200
|
"arg": "5.0.2",
|
|
195
201
|
"benchmark": "2.1.4",
|
|
196
202
|
"ci-info": "4.0.0",
|
|
197
|
-
"decimal.js": "10.
|
|
203
|
+
"decimal.js": "10.5.0",
|
|
198
204
|
"detect-runtime": "1.0.4",
|
|
199
205
|
"env-paths": "2.2.1",
|
|
200
206
|
"esbuild": "0.24.2",
|
|
@@ -214,7 +220,7 @@
|
|
|
214
220
|
"kleur": "4.1.5",
|
|
215
221
|
"klona": "2.0.6",
|
|
216
222
|
"mariadb": "3.3.1",
|
|
217
|
-
"memfs": "4.
|
|
223
|
+
"memfs": "4.17.0",
|
|
218
224
|
"mssql": "11.0.1",
|
|
219
225
|
"new-github-issue-url": "0.2.1",
|
|
220
226
|
"node-fetch": "3.3.2",
|
|
@@ -235,25 +241,27 @@
|
|
|
235
241
|
"ts-pattern": "5.6.2",
|
|
236
242
|
"tsd": "0.31.2",
|
|
237
243
|
"typescript": "5.4.5",
|
|
238
|
-
"undici": "7.
|
|
244
|
+
"undici": "7.3.0",
|
|
239
245
|
"wrangler": "3.91.0",
|
|
240
246
|
"zx": "7.2.3",
|
|
241
|
-
"@prisma/adapter-d1": "6.4.0-dev.
|
|
242
|
-
"@prisma/adapter-
|
|
243
|
-
"@prisma/adapter-
|
|
244
|
-
"@prisma/adapter-
|
|
245
|
-
"@prisma/adapter-pg-worker": "6.4.0-dev.
|
|
246
|
-
"@prisma/adapter-planetscale": "6.4.0-dev.
|
|
247
|
-
"@prisma/
|
|
248
|
-
"@prisma/
|
|
249
|
-
"@prisma/
|
|
250
|
-
"@prisma/
|
|
251
|
-
"@prisma/
|
|
252
|
-
"@prisma/
|
|
253
|
-
"@prisma/
|
|
254
|
-
"@prisma/
|
|
255
|
-
"@prisma/
|
|
256
|
-
"@prisma/
|
|
247
|
+
"@prisma/adapter-d1": "6.4.0-dev.60",
|
|
248
|
+
"@prisma/adapter-libsql": "6.4.0-dev.60",
|
|
249
|
+
"@prisma/adapter-neon": "6.4.0-dev.60",
|
|
250
|
+
"@prisma/adapter-pg": "6.4.0-dev.60",
|
|
251
|
+
"@prisma/adapter-pg-worker": "6.4.0-dev.60",
|
|
252
|
+
"@prisma/adapter-planetscale": "6.4.0-dev.60",
|
|
253
|
+
"@prisma/client-engine-runtime": "6.4.0-dev.60",
|
|
254
|
+
"@prisma/config": "6.4.0-dev.60",
|
|
255
|
+
"@prisma/debug": "6.4.0-dev.60",
|
|
256
|
+
"@prisma/engines": "6.4.0-dev.60",
|
|
257
|
+
"@prisma/driver-adapter-utils": "6.4.0-dev.60",
|
|
258
|
+
"@prisma/fetch-engine": "6.4.0-dev.60",
|
|
259
|
+
"@prisma/generator-helper": "6.4.0-dev.60",
|
|
260
|
+
"@prisma/get-platform": "6.4.0-dev.60",
|
|
261
|
+
"@prisma/instrumentation": "6.4.0-dev.60",
|
|
262
|
+
"@prisma/internals": "6.4.0-dev.60",
|
|
263
|
+
"@prisma/migrate": "6.4.0-dev.60",
|
|
264
|
+
"@prisma/pg-worker": "6.4.0-dev.60"
|
|
257
265
|
},
|
|
258
266
|
"peerDependencies": {
|
|
259
267
|
"prisma": "*",
|
|
@@ -274,9 +282,12 @@
|
|
|
274
282
|
"test": "dotenv -e ../../.db.env -- jest --silent",
|
|
275
283
|
"test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
|
|
276
284
|
"test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
|
|
285
|
+
"test:functional:client": "PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE=1 pnpm run test:functional --adapter js_pg --client-runtime client --preview-features driverAdapters --engine-type client --runInBand --json --outputFile tests/functional/results.json decimal",
|
|
277
286
|
"test:memory": "dotenv -e ../../.db.env -- tsx helpers/memory-tests.ts",
|
|
278
287
|
"test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
|
|
279
288
|
"test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
|
|
289
|
+
"test:knownQueryCompilerFailures:check": "tsx helpers/functional-test/check-known-failures.ts",
|
|
290
|
+
"test:knownQueryCompilerFailures:record": "tsx helpers/functional-test/check-known-failures.ts --record",
|
|
280
291
|
"test-notypes": "dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",
|
|
281
292
|
"generate": "node scripts/postinstall.js",
|
|
282
293
|
"postinstall": "node scripts/postinstall.js",
|