prisma 6.8.0-dev.4 → 6.8.0-dev.41
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/build/index.js +1712 -1885
- package/build/prisma_schema_build_bg.wasm +0 -0
- package/build/schema_engine_bg.wasm +0 -0
- package/package.json +14 -14
- package/prisma-client/generator-build/index.js +30 -64
- package/prisma-client/package.json +4 -5
- package/prisma-client/runtime/binary.js +17 -17
- package/prisma-client/runtime/binary.mjs +24 -24
- package/prisma-client/runtime/client.d.mts +1 -1
- package/prisma-client/runtime/client.d.ts +1 -1
- package/prisma-client/runtime/client.js +35 -35
- package/prisma-client/runtime/client.mjs +30 -30
- package/prisma-client/runtime/edge-esm.js +14 -14
- package/prisma-client/runtime/edge.d.ts +1 -1
- package/prisma-client/runtime/edge.js +14 -14
- package/prisma-client/runtime/library.d.mts +1 -1
- package/prisma-client/runtime/library.d.ts +1 -1
- package/prisma-client/runtime/library.js +14 -14
- package/prisma-client/runtime/library.mjs +19 -19
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.mysql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.mjs +1 -1
- package/prisma-client/runtime/react-native.d.ts +1 -1
- package/prisma-client/runtime/react-native.js +10 -10
- package/prisma-client/scripts/default-index.js +3 -3
- package/prisma-client/scripts/postinstall.js +1 -7
- package/prisma-client/scripts/default-deno-edge.ts +0 -9
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "6.8.0-dev.
|
2
|
+
"version": "6.8.0-dev.41",
|
3
3
|
"name": "prisma",
|
4
4
|
"description": "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",
|
5
5
|
"keywords": [
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"node": ">=18.18"
|
42
42
|
},
|
43
43
|
"prisma": {
|
44
|
-
"prismaCommit": "
|
44
|
+
"prismaCommit": "2cab745accd5574aa704b9075ad06c363d2d3727"
|
45
45
|
},
|
46
46
|
"files": [
|
47
47
|
"README.md",
|
@@ -152,20 +152,20 @@
|
|
152
152
|
"xdg-app-paths": "8.3.0",
|
153
153
|
"zod": "3.24.2",
|
154
154
|
"zx": "8.4.1",
|
155
|
-
"@prisma/client": "6.8.0-dev.
|
156
|
-
"@prisma/
|
157
|
-
"@prisma/
|
158
|
-
"@prisma/
|
159
|
-
"@prisma/dmmf": "6.8.0-dev.
|
160
|
-
"@prisma/fetch-engine": "6.8.0-dev.
|
161
|
-
"@prisma/generator": "6.8.0-dev.
|
162
|
-
"@prisma/
|
163
|
-
"@prisma/internals": "6.8.0-dev.
|
164
|
-
"@prisma/
|
155
|
+
"@prisma/client": "6.8.0-dev.41",
|
156
|
+
"@prisma/adapter-libsql": "6.8.0-dev.41",
|
157
|
+
"@prisma/client-generator-registry": "6.8.0-dev.41",
|
158
|
+
"@prisma/debug": "6.8.0-dev.41",
|
159
|
+
"@prisma/dmmf": "6.8.0-dev.41",
|
160
|
+
"@prisma/fetch-engine": "6.8.0-dev.41",
|
161
|
+
"@prisma/generator": "6.8.0-dev.41",
|
162
|
+
"@prisma/get-platform": "6.8.0-dev.41",
|
163
|
+
"@prisma/internals": "6.8.0-dev.41",
|
164
|
+
"@prisma/migrate": "6.8.0-dev.41"
|
165
165
|
},
|
166
166
|
"dependencies": {
|
167
|
-
"@prisma/config": "6.8.0-dev.
|
168
|
-
"@prisma/engines": "6.8.0-dev.
|
167
|
+
"@prisma/config": "6.8.0-dev.41",
|
168
|
+
"@prisma/engines": "6.8.0-dev.41"
|
169
169
|
},
|
170
170
|
"peerDependencies": {
|
171
171
|
"typescript": ">=5.1.0"
|
@@ -4515,18 +4515,18 @@ var require_common_path_prefix = __commonJS({
|
|
4515
4515
|
}
|
4516
4516
|
});
|
4517
4517
|
|
4518
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.8.0-
|
4518
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d/node_modules/@prisma/engines-version/package.json
|
4519
4519
|
var require_package = __commonJS({
|
4520
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.8.0-
|
4520
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
4521
4521
|
module2.exports = {
|
4522
4522
|
name: "@prisma/engines-version",
|
4523
|
-
version: "6.8.0-
|
4523
|
+
version: "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
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: "de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d"
|
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.8.0-
|
4551
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d/node_modules/@prisma/engines-version/index.js
|
4552
4552
|
var require_engines_version = __commonJS({
|
4553
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.8.0-
|
4553
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d/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;
|
@@ -7542,7 +7542,7 @@ var import_pkg_up = __toESM(require_pkg_up());
|
|
7542
7542
|
// package.json
|
7543
7543
|
var package_default = {
|
7544
7544
|
name: "@prisma/client",
|
7545
|
-
version: "6.8.0-dev.
|
7545
|
+
version: "6.8.0-dev.41",
|
7546
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.",
|
7547
7547
|
keywords: [
|
7548
7548
|
"ORM",
|
@@ -7775,7 +7775,7 @@ var package_default = {
|
|
7775
7775
|
"@prisma/dmmf": "workspace:*",
|
7776
7776
|
"@prisma/driver-adapter-utils": "workspace:*",
|
7777
7777
|
"@prisma/engines": "workspace:*",
|
7778
|
-
"@prisma/engines-version": "6.8.0-
|
7778
|
+
"@prisma/engines-version": "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
7779
7779
|
"@prisma/fetch-engine": "workspace:*",
|
7780
7780
|
"@prisma/generator": "workspace:*",
|
7781
7781
|
"@prisma/generator-helper": "workspace:*",
|
@@ -7785,8 +7785,8 @@ var package_default = {
|
|
7785
7785
|
"@prisma/migrate": "workspace:*",
|
7786
7786
|
"@prisma/mini-proxy": "0.9.5",
|
7787
7787
|
"@prisma/pg-worker": "workspace:*",
|
7788
|
-
"@prisma/query-compiler-wasm": "6.8.0-
|
7789
|
-
"@prisma/query-engine-wasm": "6.8.0-
|
7788
|
+
"@prisma/query-compiler-wasm": "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
7789
|
+
"@prisma/query-engine-wasm": "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
7790
7790
|
"@prisma/ts-builders": "workspace:*",
|
7791
7791
|
"@snaplet/copycat": "6.0.0",
|
7792
7792
|
"@swc-node/register": "1.10.9",
|
@@ -7822,7 +7822,6 @@ var package_default = {
|
|
7822
7822
|
memfs: "4.17.0",
|
7823
7823
|
mssql: "11.0.1",
|
7824
7824
|
"new-github-issue-url": "0.2.1",
|
7825
|
-
"node-fetch": "3.3.2",
|
7826
7825
|
"p-retry": "4.6.2",
|
7827
7826
|
pg: "8.14.1",
|
7828
7827
|
resolve: "1.22.10",
|
@@ -11062,6 +11061,20 @@ function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
11062
11061
|
return `config.engineWasm = undefined`;
|
11063
11062
|
}
|
11064
11063
|
|
11064
|
+
// ../client-generator-js/src/utils/buildInlineDatasources.ts
|
11065
|
+
function buildInlineDatasources(datasources) {
|
11066
|
+
return datasources.reduce((acc, ds) => {
|
11067
|
+
return acc[ds.name] = buildInlineDatasource(ds), acc;
|
11068
|
+
}, {});
|
11069
|
+
}
|
11070
|
+
function buildInlineDatasource(ds) {
|
11071
|
+
if (ds.url.fromEnvVar) {
|
11072
|
+
return { url: { fromEnvVar: ds.url.fromEnvVar, value: null } };
|
11073
|
+
} else {
|
11074
|
+
return { url: { fromEnvVar: null, value: ds.url.value } };
|
11075
|
+
}
|
11076
|
+
}
|
11077
|
+
|
11065
11078
|
// ../client-generator-js/src/utils/buildNFTAnnotations.ts
|
11066
11079
|
var import_path4 = __toESM(require("path"));
|
11067
11080
|
function buildNFTAnnotations(noEngine, engineType, binaryTargets, relativeOutdir) {
|
@@ -11131,32 +11144,10 @@ var commonCodeJS = ({
|
|
11131
11144
|
browser,
|
11132
11145
|
clientVersion,
|
11133
11146
|
engineVersion,
|
11134
|
-
generator
|
11135
|
-
|
11136
|
-
}) => `${deno ? "const exports = {}" : ""}
|
11147
|
+
generator
|
11148
|
+
}) => `
|
11137
11149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
11138
|
-
${
|
11139
|
-
import {
|
11140
|
-
PrismaClientKnownRequestError,
|
11141
|
-
PrismaClientUnknownRequestError,
|
11142
|
-
PrismaClientRustPanicError,
|
11143
|
-
PrismaClientInitializationError,
|
11144
|
-
PrismaClientValidationError,
|
11145
|
-
getPrismaClient,
|
11146
|
-
sqltag,
|
11147
|
-
empty,
|
11148
|
-
join,
|
11149
|
-
raw,
|
11150
|
-
Decimal,
|
11151
|
-
Debug,
|
11152
|
-
objectEnumValues,
|
11153
|
-
makeStrictEnum,
|
11154
|
-
Extensions,
|
11155
|
-
defineDmmfProperty,
|
11156
|
-
Public,
|
11157
|
-
getRuntime,
|
11158
|
-
skip
|
11159
|
-
} from '${runtimeBase}/${runtimeNameJs}.js'` : browser ? `
|
11150
|
+
${browser ? `
|
11160
11151
|
const {
|
11161
11152
|
Decimal,
|
11162
11153
|
objectEnumValues,
|
@@ -12396,7 +12387,6 @@ var TSClient = class {
|
|
12396
12387
|
runtimeBase,
|
12397
12388
|
runtimeNameJs,
|
12398
12389
|
datasources,
|
12399
|
-
deno,
|
12400
12390
|
copyEngine = true,
|
12401
12391
|
reusedJs,
|
12402
12392
|
envPaths
|
@@ -12423,9 +12413,7 @@ var TSClient = class {
|
|
12423
12413
|
activeProvider: this.options.activeProvider,
|
12424
12414
|
postinstall: this.options.postinstall,
|
12425
12415
|
ciName: import_ci_info.default.name ?? void 0,
|
12426
|
-
inlineDatasources: datasources
|
12427
|
-
return acc[ds.name] = { url: ds.url }, acc;
|
12428
|
-
}, {}),
|
12416
|
+
inlineDatasources: buildInlineDatasources(datasources),
|
12429
12417
|
inlineSchema,
|
12430
12418
|
inlineSchemaHash,
|
12431
12419
|
copyEngine
|
@@ -12460,7 +12448,7 @@ ${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
12460
12448
|
${buildDebugInitialization(edge)}
|
12461
12449
|
const PrismaClient = getPrismaClient(config)
|
12462
12450
|
exports.PrismaClient = PrismaClient
|
12463
|
-
Object.assign(exports, Prisma)
|
12451
|
+
Object.assign(exports, Prisma)
|
12464
12452
|
${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
|
12465
12453
|
`;
|
12466
12454
|
return code;
|
@@ -12993,7 +12981,6 @@ async function buildClient({
|
|
12993
12981
|
copyEngine,
|
12994
12982
|
datamodel,
|
12995
12983
|
browser: false,
|
12996
|
-
deno: false,
|
12997
12984
|
edge: false,
|
12998
12985
|
wasm: false
|
12999
12986
|
};
|
@@ -13122,23 +13109,6 @@ async function buildClient({
|
|
13122
13109
|
fileMap["wasm.js"] = fileMap["index-browser.js"];
|
13123
13110
|
fileMap["wasm.d.ts"] = fileMap["default.d.ts"];
|
13124
13111
|
}
|
13125
|
-
if (generator.previewFeatures.includes("deno") && !!globalThis.Deno) {
|
13126
|
-
const denoEdgeClient = new TSClient({
|
13127
|
-
...baseClientOptions,
|
13128
|
-
runtimeBase: `../${runtimeBase}`,
|
13129
|
-
runtimeNameJs: "edge-esm",
|
13130
|
-
runtimeNameTs: "library.d.ts",
|
13131
|
-
deno: true,
|
13132
|
-
edge: true
|
13133
|
-
});
|
13134
|
-
fileMap["deno/edge.js"] = JS(denoEdgeClient);
|
13135
|
-
fileMap["deno/index.d.ts"] = TS(denoEdgeClient);
|
13136
|
-
fileMap["deno/edge.ts"] = `
|
13137
|
-
import './polyfill.js'
|
13138
|
-
// @deno-types="./index.d.ts"
|
13139
|
-
export * from './edge.js'`;
|
13140
|
-
fileMap["deno/polyfill.js"] = "globalThis.process = { env: Deno.env.toObject() }; globalThis.global = globalThis";
|
13141
|
-
}
|
13142
13112
|
if (typedSql && typedSql.length > 0) {
|
13143
13113
|
const edgeRuntimeName = usesWasmRuntime ? "wasm" : "edge";
|
13144
13114
|
const cjsEdgeIndex = `./sql/index.${edgeRuntimeName}.js`;
|
@@ -13265,9 +13235,6 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
13265
13235
|
await deleteOutputDir(outputDir);
|
13266
13236
|
}
|
13267
13237
|
await (0, import_fs_extra.ensureDir)(outputDir);
|
13268
|
-
if (generator.previewFeatures.includes("deno") && !!globalThis.Deno) {
|
13269
|
-
await (0, import_fs_extra.ensureDir)(import_path6.default.join(outputDir, "deno"));
|
13270
|
-
}
|
13271
13238
|
await writeFileMap(outputDir, fileMap);
|
13272
13239
|
if (copyRuntime || generator.isCustomOutput === true) {
|
13273
13240
|
const copiedRuntimeDir = import_path6.default.join(outputDir, "runtime");
|
@@ -13550,7 +13517,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
13550
13517
|
var import_engines_version = __toESM(require_engines_version());
|
13551
13518
|
|
13552
13519
|
// ../client-generator-js/package.json
|
13553
|
-
var version = "6.8.0-dev.
|
13520
|
+
var version = "6.8.0-dev.41";
|
13554
13521
|
|
13555
13522
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
13556
13523
|
var import_promises4 = __toESM(require("node:fs/promises"));
|
@@ -18691,7 +18658,6 @@ function dmmfToTypes(dmmf) {
|
|
18691
18658
|
},
|
18692
18659
|
datamodel: "",
|
18693
18660
|
browser: false,
|
18694
|
-
deno: false,
|
18695
18661
|
edge: false,
|
18696
18662
|
wasm: false,
|
18697
18663
|
envPaths: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/client",
|
3
|
-
"version": "6.8.0-dev.
|
3
|
+
"version": "6.8.0-dev.41",
|
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",
|
@@ -233,7 +233,7 @@
|
|
233
233
|
"@prisma/dmmf": "workspace:*",
|
234
234
|
"@prisma/driver-adapter-utils": "workspace:*",
|
235
235
|
"@prisma/engines": "workspace:*",
|
236
|
-
"@prisma/engines-version": "6.8.0-
|
236
|
+
"@prisma/engines-version": "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
237
237
|
"@prisma/fetch-engine": "workspace:*",
|
238
238
|
"@prisma/generator": "workspace:*",
|
239
239
|
"@prisma/generator-helper": "workspace:*",
|
@@ -243,8 +243,8 @@
|
|
243
243
|
"@prisma/migrate": "workspace:*",
|
244
244
|
"@prisma/mini-proxy": "0.9.5",
|
245
245
|
"@prisma/pg-worker": "workspace:*",
|
246
|
-
"@prisma/query-compiler-wasm": "6.8.0-
|
247
|
-
"@prisma/query-engine-wasm": "6.8.0-
|
246
|
+
"@prisma/query-compiler-wasm": "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
247
|
+
"@prisma/query-engine-wasm": "6.8.0-42.de97e6aff41b72abc6bdd5c9a6926ea66a74ee9d",
|
248
248
|
"@prisma/ts-builders": "workspace:*",
|
249
249
|
"@snaplet/copycat": "6.0.0",
|
250
250
|
"@swc-node/register": "1.10.9",
|
@@ -280,7 +280,6 @@
|
|
280
280
|
"memfs": "4.17.0",
|
281
281
|
"mssql": "11.0.1",
|
282
282
|
"new-github-issue-url": "0.2.1",
|
283
|
-
"node-fetch": "3.3.2",
|
284
283
|
"p-retry": "4.6.2",
|
285
284
|
"pg": "8.14.1",
|
286
285
|
"resolve": "1.22.10",
|