@prisma/client 6.7.0-integration-push-sunrovnkrkpv.1 → 6.7.0
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 +64 -21
- package/package.json +30 -29
- package/runtime/binary.js +56 -56
- package/runtime/binary.mjs +56 -56
- package/runtime/client.d.mts +49 -6
- package/runtime/client.d.ts +49 -6
- package/runtime/client.js +35 -35
- package/runtime/client.mjs +35 -35
- package/runtime/edge-esm.js +18 -18
- package/runtime/edge.d.ts +49 -6
- package/runtime/edge.js +18 -18
- package/runtime/index-browser.d.ts +3 -3
- package/runtime/index-browser.js +1 -1
- package/runtime/library.d.mts +49 -6
- package/runtime/library.d.ts +49 -6
- package/runtime/library.js +38 -38
- package/runtime/library.mjs +41 -41
- 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.mjs +1 -1
- package/runtime/query_engine_bg.mysql.wasm +0 -0
- package/runtime/query_engine_bg.postgresql.js +2 -2
- package/runtime/query_engine_bg.postgresql.mjs +1 -1
- package/runtime/query_engine_bg.postgresql.wasm +0 -0
- package/runtime/query_engine_bg.sqlite.js +2 -2
- package/runtime/query_engine_bg.sqlite.mjs +1 -1
- package/runtime/query_engine_bg.sqlite.wasm +0 -0
- package/runtime/react-native.d.ts +49 -6
- package/runtime/react-native.js +23 -23
- package/runtime/wasm.js +18 -18
- package/runtime/wasm.mjs +18 -18
- package/scripts/default-index.js +3 -3
package/generator-build/index.js
CHANGED
|
@@ -4515,18 +4515,18 @@ var require_common_path_prefix = __commonJS({
|
|
|
4515
4515
|
}
|
|
4516
4516
|
});
|
|
4517
4517
|
|
|
4518
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4518
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed/node_modules/@prisma/engines-version/package.json
|
|
4519
4519
|
var require_package = __commonJS({
|
|
4520
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4520
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
4521
4521
|
module2.exports = {
|
|
4522
4522
|
name: "@prisma/engines-version",
|
|
4523
|
-
version: "6.
|
|
4523
|
+
version: "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
4524
4524
|
main: "index.js",
|
|
4525
4525
|
types: "index.d.ts",
|
|
4526
4526
|
license: "Apache-2.0",
|
|
4527
4527
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
|
4528
4528
|
prisma: {
|
|
4529
|
-
enginesVersion: "
|
|
4529
|
+
enginesVersion: "3cff47a7f5d65c3ea74883f1d736e41d68ce91ed"
|
|
4530
4530
|
},
|
|
4531
4531
|
repository: {
|
|
4532
4532
|
type: "git",
|
|
@@ -4548,9 +4548,9 @@ var require_package = __commonJS({
|
|
|
4548
4548
|
}
|
|
4549
4549
|
});
|
|
4550
4550
|
|
|
4551
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4551
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed/node_modules/@prisma/engines-version/index.js
|
|
4552
4552
|
var require_engines_version = __commonJS({
|
|
4553
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4553
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed/node_modules/@prisma/engines-version/index.js"(exports2) {
|
|
4554
4554
|
"use strict";
|
|
4555
4555
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4556
4556
|
exports2.enginesVersion = void 0;
|
|
@@ -7226,7 +7226,6 @@ async function removeFileIfExists(filePath) {
|
|
|
7226
7226
|
}
|
|
7227
7227
|
|
|
7228
7228
|
// ../internals/src/client/getClientEngineType.ts
|
|
7229
|
-
var DEFAULT_CLIENT_ENGINE_TYPE = "library" /* Library */;
|
|
7230
7229
|
function getClientEngineType(generatorConfig) {
|
|
7231
7230
|
const engineTypeFromEnvVar = getEngineTypeFromEnvVar();
|
|
7232
7231
|
if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
|
|
@@ -7237,7 +7236,7 @@ function getClientEngineType(generatorConfig) {
|
|
|
7237
7236
|
} else if (generatorConfig?.config.engineType === "client" /* Client */) {
|
|
7238
7237
|
return "client" /* Client */;
|
|
7239
7238
|
} else {
|
|
7240
|
-
return
|
|
7239
|
+
return getDefaultEngineType(generatorConfig);
|
|
7241
7240
|
}
|
|
7242
7241
|
}
|
|
7243
7242
|
function getEngineTypeFromEnvVar() {
|
|
@@ -7252,6 +7251,12 @@ function getEngineTypeFromEnvVar() {
|
|
|
7252
7251
|
return void 0;
|
|
7253
7252
|
}
|
|
7254
7253
|
}
|
|
7254
|
+
function getDefaultEngineType(generatorConfig) {
|
|
7255
|
+
if (generatorConfig?.previewFeatures.includes("queryCompiler")) {
|
|
7256
|
+
return "client" /* Client */;
|
|
7257
|
+
}
|
|
7258
|
+
return "library" /* Library */;
|
|
7259
|
+
}
|
|
7255
7260
|
|
|
7256
7261
|
// ../internals/src/utils/parseEnvValue.ts
|
|
7257
7262
|
function parseEnvValue(object) {
|
|
@@ -7537,7 +7542,7 @@ var import_pkg_up = __toESM(require_pkg_up());
|
|
|
7537
7542
|
// package.json
|
|
7538
7543
|
var package_default = {
|
|
7539
7544
|
name: "@prisma/client",
|
|
7540
|
-
version: "6.7.0
|
|
7545
|
+
version: "6.7.0",
|
|
7541
7546
|
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.",
|
|
7542
7547
|
keywords: [
|
|
7543
7548
|
"ORM",
|
|
@@ -7701,7 +7706,7 @@ var package_default = {
|
|
|
7701
7706
|
test: "dotenv -e ../../.db.env -- jest --silent",
|
|
7702
7707
|
"test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
|
|
7703
7708
|
"test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
|
|
7704
|
-
"test:functional:client": "
|
|
7709
|
+
"test:functional:client": "pnpm run test:functional --adapter js_pg --client-runtime client --preview-features driverAdapters,queryCompiler --engine-type client --runInBand --json --outputFile tests/functional/results.json decimal",
|
|
7705
7710
|
"test:memory": "dotenv -e ../../.db.env -- tsx helpers/memory-tests.ts",
|
|
7706
7711
|
"test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
|
|
7707
7712
|
"test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
|
|
@@ -7754,6 +7759,7 @@ var package_default = {
|
|
|
7754
7759
|
"@opentelemetry/sdk-trace-base": "1.30.1",
|
|
7755
7760
|
"@opentelemetry/semantic-conventions": "1.30.0",
|
|
7756
7761
|
"@planetscale/database": "1.19.0",
|
|
7762
|
+
"@prisma/adapter-better-sqlite3": "workspace:*",
|
|
7757
7763
|
"@prisma/adapter-d1": "workspace:*",
|
|
7758
7764
|
"@prisma/adapter-libsql": "workspace:*",
|
|
7759
7765
|
"@prisma/adapter-neon": "workspace:*",
|
|
@@ -7769,7 +7775,7 @@ var package_default = {
|
|
|
7769
7775
|
"@prisma/dmmf": "workspace:*",
|
|
7770
7776
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
7771
7777
|
"@prisma/engines": "workspace:*",
|
|
7772
|
-
"@prisma/engines-version": "6.
|
|
7778
|
+
"@prisma/engines-version": "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
7773
7779
|
"@prisma/fetch-engine": "workspace:*",
|
|
7774
7780
|
"@prisma/generator": "workspace:*",
|
|
7775
7781
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -7779,8 +7785,8 @@ var package_default = {
|
|
|
7779
7785
|
"@prisma/migrate": "workspace:*",
|
|
7780
7786
|
"@prisma/mini-proxy": "0.9.5",
|
|
7781
7787
|
"@prisma/pg-worker": "workspace:*",
|
|
7782
|
-
"@prisma/query-compiler-wasm": "6.
|
|
7783
|
-
"@prisma/query-engine-wasm": "6.
|
|
7788
|
+
"@prisma/query-compiler-wasm": "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
7789
|
+
"@prisma/query-engine-wasm": "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
7784
7790
|
"@prisma/ts-builders": "workspace:*",
|
|
7785
7791
|
"@snaplet/copycat": "6.0.0",
|
|
7786
7792
|
"@swc-node/register": "1.10.9",
|
|
@@ -8308,8 +8314,17 @@ var NamespaceImport = class {
|
|
|
8308
8314
|
this.alias = alias;
|
|
8309
8315
|
this.from = from;
|
|
8310
8316
|
}
|
|
8317
|
+
type = false;
|
|
8318
|
+
typeOnly() {
|
|
8319
|
+
this.type = true;
|
|
8320
|
+
return this;
|
|
8321
|
+
}
|
|
8311
8322
|
write(writer) {
|
|
8312
|
-
writer.write("import
|
|
8323
|
+
writer.write("import ");
|
|
8324
|
+
if (this.type) {
|
|
8325
|
+
writer.write("type ");
|
|
8326
|
+
}
|
|
8327
|
+
writer.write("* as ").write(this.alias).write(` from "${this.from}"`);
|
|
8313
8328
|
}
|
|
8314
8329
|
};
|
|
8315
8330
|
var BindingsImport = class {
|
|
@@ -12915,6 +12930,24 @@ function buildTypedSql({
|
|
|
12915
12930
|
return fileMap;
|
|
12916
12931
|
}
|
|
12917
12932
|
|
|
12933
|
+
// ../client-generator-js/src/utils/addPreamble.ts
|
|
12934
|
+
var generatedCodePreamble = `
|
|
12935
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
12936
|
+
/* eslint-disable */
|
|
12937
|
+
`;
|
|
12938
|
+
function addPreambleToJSFiles(fileMap) {
|
|
12939
|
+
for (const [key, value] of Object.entries(fileMap)) {
|
|
12940
|
+
if (typeof value === "string" && (key.endsWith(".js") || key.endsWith(".mjs"))) {
|
|
12941
|
+
fileMap[key] = addPreamble(value);
|
|
12942
|
+
} else if (typeof value === "object" && value !== null) {
|
|
12943
|
+
addPreambleToJSFiles(value);
|
|
12944
|
+
}
|
|
12945
|
+
}
|
|
12946
|
+
}
|
|
12947
|
+
function addPreamble(fileContent) {
|
|
12948
|
+
return generatedCodePreamble + fileContent;
|
|
12949
|
+
}
|
|
12950
|
+
|
|
12918
12951
|
// ../client-generator-js/src/generateClient.ts
|
|
12919
12952
|
var debug2 = Debug("prisma:client:generateClient");
|
|
12920
12953
|
var DenylistError = class extends Error {
|
|
@@ -13138,6 +13171,7 @@ export * from './edge.js'`;
|
|
|
13138
13171
|
});
|
|
13139
13172
|
}
|
|
13140
13173
|
fileMap["package.json"] = JSON.stringify(pkgJson, null, 2);
|
|
13174
|
+
addPreambleToJSFiles(fileMap);
|
|
13141
13175
|
return {
|
|
13142
13176
|
fileMap,
|
|
13143
13177
|
// a map of file names to their contents
|
|
@@ -13190,6 +13224,9 @@ async function generateClient(options2) {
|
|
|
13190
13224
|
typedSql
|
|
13191
13225
|
} = options2;
|
|
13192
13226
|
const clientEngineType = getClientEngineType(generator);
|
|
13227
|
+
if (clientEngineType === "client" /* Client */ && !generator.previewFeatures.includes("queryCompiler")) {
|
|
13228
|
+
throw new Error('`engineType = "client"` requires enabling the `queryCompiler` preview feature');
|
|
13229
|
+
}
|
|
13193
13230
|
const { runtimeBase, outputDir } = await getGenerationDirs(options2);
|
|
13194
13231
|
const { prismaClientDmmf, fileMap } = await buildClient({
|
|
13195
13232
|
datamodel,
|
|
@@ -13452,11 +13489,6 @@ function getNodeRuntimeName(engineType) {
|
|
|
13452
13489
|
return "library";
|
|
13453
13490
|
}
|
|
13454
13491
|
if (engineType === "client" /* Client */) {
|
|
13455
|
-
if (!process.env.PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE) {
|
|
13456
|
-
throw new Error(
|
|
13457
|
-
'Unstable Feature: engineType="client" is in a proof of concept phase and not ready to be used publicly yet!'
|
|
13458
|
-
);
|
|
13459
|
-
}
|
|
13460
13492
|
return "client";
|
|
13461
13493
|
}
|
|
13462
13494
|
assertNever(engineType, "Unknown engine type");
|
|
@@ -13481,7 +13513,18 @@ async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
|
|
|
13481
13513
|
if (sourceMaps) {
|
|
13482
13514
|
files.push(...files.filter((file2) => file2.endsWith(".js")).map((file2) => `${file2}.map`));
|
|
13483
13515
|
}
|
|
13484
|
-
await Promise.all(
|
|
13516
|
+
await Promise.all(
|
|
13517
|
+
files.map(async (file2) => {
|
|
13518
|
+
const sourcePath = import_path6.default.join(from, file2);
|
|
13519
|
+
const targetPath = import_path6.default.join(to, file2);
|
|
13520
|
+
if (file2.endsWith(".js")) {
|
|
13521
|
+
const content = await import_promises.default.readFile(sourcePath, "utf-8");
|
|
13522
|
+
await import_promises.default.writeFile(targetPath, addPreamble(content));
|
|
13523
|
+
} else {
|
|
13524
|
+
await import_promises.default.copyFile(sourcePath, targetPath);
|
|
13525
|
+
}
|
|
13526
|
+
})
|
|
13527
|
+
);
|
|
13485
13528
|
}
|
|
13486
13529
|
async function deleteOutputDir(outputDir) {
|
|
13487
13530
|
try {
|
|
@@ -13507,7 +13550,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
|
13507
13550
|
var import_engines_version = __toESM(require_engines_version());
|
|
13508
13551
|
|
|
13509
13552
|
// ../client-generator-js/package.json
|
|
13510
|
-
var version = "6.7.0
|
|
13553
|
+
var version = "6.7.0";
|
|
13511
13554
|
|
|
13512
13555
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
13513
13556
|
var import_promises4 = __toESM(require("node:fs/promises"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.7.0
|
|
3
|
+
"version": "6.7.0",
|
|
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",
|
|
@@ -199,10 +199,10 @@
|
|
|
199
199
|
"@opentelemetry/sdk-trace-base": "1.30.1",
|
|
200
200
|
"@opentelemetry/semantic-conventions": "1.30.0",
|
|
201
201
|
"@planetscale/database": "1.19.0",
|
|
202
|
-
"@prisma/engines-version": "6.
|
|
202
|
+
"@prisma/engines-version": "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
203
203
|
"@prisma/mini-proxy": "0.9.5",
|
|
204
|
-
"@prisma/query-compiler-wasm": "6.
|
|
205
|
-
"@prisma/query-engine-wasm": "6.
|
|
204
|
+
"@prisma/query-compiler-wasm": "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
205
|
+
"@prisma/query-engine-wasm": "6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed",
|
|
206
206
|
"@snaplet/copycat": "6.0.0",
|
|
207
207
|
"@swc-node/register": "1.10.9",
|
|
208
208
|
"@swc/core": "1.11.5",
|
|
@@ -257,30 +257,31 @@
|
|
|
257
257
|
"undici": "7.4.0",
|
|
258
258
|
"wrangler": "3.111.0",
|
|
259
259
|
"zx": "8.4.1",
|
|
260
|
-
"@prisma/adapter-
|
|
261
|
-
"@prisma/adapter-
|
|
262
|
-
"@prisma/adapter-
|
|
263
|
-
"@prisma/adapter-
|
|
264
|
-
"@prisma/adapter-pg": "6.7.0
|
|
265
|
-
"@prisma/adapter-
|
|
266
|
-
"@prisma/
|
|
267
|
-
"@prisma/client-
|
|
268
|
-
"@prisma/client-generator-js": "6.7.0
|
|
269
|
-
"@prisma/client-generator-ts": "6.7.0
|
|
270
|
-
"@prisma/config": "6.7.0
|
|
271
|
-
"@prisma/
|
|
272
|
-
"@prisma/
|
|
273
|
-
"@prisma/
|
|
274
|
-
"@prisma/
|
|
275
|
-
"@prisma/
|
|
276
|
-
"@prisma/
|
|
277
|
-
"@prisma/generator-helper": "6.7.0
|
|
278
|
-
"@prisma/instrumentation": "6.7.0
|
|
279
|
-
"@prisma/
|
|
280
|
-
"@prisma/
|
|
281
|
-
"@prisma/
|
|
282
|
-
"@prisma/
|
|
283
|
-
"@prisma/
|
|
260
|
+
"@prisma/adapter-better-sqlite3": "6.7.0",
|
|
261
|
+
"@prisma/adapter-libsql": "6.7.0",
|
|
262
|
+
"@prisma/adapter-d1": "6.7.0",
|
|
263
|
+
"@prisma/adapter-neon": "6.7.0",
|
|
264
|
+
"@prisma/adapter-pg": "6.7.0",
|
|
265
|
+
"@prisma/adapter-pg-worker": "6.7.0",
|
|
266
|
+
"@prisma/adapter-planetscale": "6.7.0",
|
|
267
|
+
"@prisma/client-common": "6.7.0",
|
|
268
|
+
"@prisma/client-generator-js": "6.7.0",
|
|
269
|
+
"@prisma/client-generator-ts": "6.7.0",
|
|
270
|
+
"@prisma/config": "6.7.0",
|
|
271
|
+
"@prisma/debug": "6.7.0",
|
|
272
|
+
"@prisma/client-engine-runtime": "6.7.0",
|
|
273
|
+
"@prisma/dmmf": "6.7.0",
|
|
274
|
+
"@prisma/driver-adapter-utils": "6.7.0",
|
|
275
|
+
"@prisma/engines": "6.7.0",
|
|
276
|
+
"@prisma/fetch-engine": "6.7.0",
|
|
277
|
+
"@prisma/generator-helper": "6.7.0",
|
|
278
|
+
"@prisma/instrumentation": "6.7.0",
|
|
279
|
+
"@prisma/generator": "6.7.0",
|
|
280
|
+
"@prisma/internals": "6.7.0",
|
|
281
|
+
"@prisma/migrate": "6.7.0",
|
|
282
|
+
"@prisma/get-platform": "6.7.0",
|
|
283
|
+
"@prisma/pg-worker": "6.7.0",
|
|
284
|
+
"@prisma/ts-builders": "6.7.0"
|
|
284
285
|
},
|
|
285
286
|
"peerDependencies": {
|
|
286
287
|
"prisma": "*",
|
|
@@ -301,7 +302,7 @@
|
|
|
301
302
|
"test": "dotenv -e ../../.db.env -- jest --silent",
|
|
302
303
|
"test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
|
|
303
304
|
"test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
|
|
304
|
-
"test:functional:client": "
|
|
305
|
+
"test:functional:client": "pnpm run test:functional --adapter js_pg --client-runtime client --preview-features driverAdapters,queryCompiler --engine-type client --runInBand --json --outputFile tests/functional/results.json decimal",
|
|
305
306
|
"test:memory": "dotenv -e ../../.db.env -- tsx helpers/memory-tests.ts",
|
|
306
307
|
"test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
|
|
307
308
|
"test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
|