@prisma/client 7.4.0-integration-parameterization.8 → 7.4.0-integration-parameterization.10
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 +124 -151
- package/package.json +34 -34
- package/runtime/client.js +20 -20
- package/runtime/client.js.map +3 -3
- package/runtime/client.mjs +18 -18
- package/runtime/client.mjs.map +3 -3
- package/runtime/wasm-compiler-edge.js +14 -14
- package/runtime/wasm-compiler-edge.js.map +4 -4
- package/runtime/wasm-compiler-edge.mjs +14 -14
- package/runtime/wasm-compiler-edge.mjs.map +4 -4
- package/scripts/default-index.js +1 -1
package/generator-build/index.js
CHANGED
|
@@ -4573,7 +4573,7 @@ var import_path4 = __toESM(require("path"));
|
|
|
4573
4573
|
// package.json
|
|
4574
4574
|
var package_default = {
|
|
4575
4575
|
name: "@prisma/client",
|
|
4576
|
-
version: "7.4.0-integration-parameterization.
|
|
4576
|
+
version: "7.4.0-integration-parameterization.10",
|
|
4577
4577
|
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.",
|
|
4578
4578
|
keywords: [
|
|
4579
4579
|
"ORM",
|
|
@@ -7873,165 +7873,138 @@ function fluentWrapperName(modelName) {
|
|
|
7873
7873
|
}
|
|
7874
7874
|
|
|
7875
7875
|
// ../param-graph/src/serialization.ts
|
|
7876
|
+
function serializeParamGraph(data) {
|
|
7877
|
+
return new Serializer(data).serialize();
|
|
7878
|
+
}
|
|
7876
7879
|
var FORMAT_COMPACT = 0;
|
|
7877
7880
|
var FORMAT_WIDE = 1;
|
|
7878
7881
|
var NONE_16 = 65535;
|
|
7879
7882
|
var NONE_32 = 4294967295;
|
|
7880
7883
|
var MAX_COMPACT_INDEX = 65534;
|
|
7881
|
-
var BASE64URL_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
7882
7884
|
function encodeBase64url(bytes) {
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7885
|
+
return Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).toString("base64url");
|
|
7886
|
+
}
|
|
7887
|
+
var Serializer = class {
|
|
7888
|
+
#data;
|
|
7889
|
+
#useWide;
|
|
7890
|
+
#buffer;
|
|
7891
|
+
#view;
|
|
7892
|
+
#offset = 0;
|
|
7893
|
+
#rootKeys;
|
|
7894
|
+
constructor(data) {
|
|
7895
|
+
this.#data = data;
|
|
7896
|
+
this.#rootKeys = Object.keys(data.roots);
|
|
7897
|
+
const maxIndex = Math.max(
|
|
7898
|
+
data.strings.length,
|
|
7899
|
+
data.inputNodes.length,
|
|
7900
|
+
data.outputNodes.length,
|
|
7901
|
+
this.#rootKeys.length
|
|
7902
|
+
);
|
|
7903
|
+
this.#useWide = maxIndex > MAX_COMPACT_INDEX;
|
|
7904
|
+
const size = this.#calculateBufferSize();
|
|
7905
|
+
this.#buffer = new ArrayBuffer(size);
|
|
7906
|
+
this.#view = new DataView(this.#buffer);
|
|
7907
|
+
}
|
|
7908
|
+
serialize() {
|
|
7909
|
+
this.#writeHeader();
|
|
7910
|
+
this.#writeInputNodes();
|
|
7911
|
+
this.#writeOutputNodes();
|
|
7912
|
+
this.#writeRoots();
|
|
7913
|
+
return {
|
|
7914
|
+
strings: this.#data.strings,
|
|
7915
|
+
graph: encodeBase64url(new Uint8Array(this.#buffer))
|
|
7916
|
+
};
|
|
7900
7917
|
}
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
);
|
|
7911
|
-
const useWide = maxIndex > MAX_COMPACT_INDEX;
|
|
7912
|
-
let size = 1;
|
|
7913
|
-
size += useWide ? 12 : 6;
|
|
7914
|
-
for (const node of data.inputNodes) {
|
|
7915
|
-
size += useWide ? 4 : 2;
|
|
7916
|
-
const edgeCount = Object.keys(node.edges).length;
|
|
7917
|
-
size += edgeCount * (useWide ? 20 : 10);
|
|
7918
|
-
}
|
|
7919
|
-
for (const node of data.outputNodes) {
|
|
7920
|
-
size += useWide ? 4 : 2;
|
|
7921
|
-
const edgeCount = Object.keys(node.edges).length;
|
|
7922
|
-
size += edgeCount * (useWide ? 12 : 6);
|
|
7923
|
-
}
|
|
7924
|
-
size += rootKeys.length * (useWide ? 12 : 6);
|
|
7925
|
-
const buffer = new ArrayBuffer(size);
|
|
7926
|
-
const view = new DataView(buffer);
|
|
7927
|
-
let offset = 0;
|
|
7928
|
-
view.setUint8(offset++, useWide ? FORMAT_WIDE : FORMAT_COMPACT);
|
|
7929
|
-
if (useWide) {
|
|
7930
|
-
view.setUint32(offset, data.inputNodes.length, true);
|
|
7931
|
-
offset += 4;
|
|
7932
|
-
view.setUint32(offset, data.outputNodes.length, true);
|
|
7933
|
-
offset += 4;
|
|
7934
|
-
view.setUint32(offset, rootKeys.length, true);
|
|
7935
|
-
offset += 4;
|
|
7936
|
-
} else {
|
|
7937
|
-
view.setUint16(offset, data.inputNodes.length, true);
|
|
7938
|
-
offset += 2;
|
|
7939
|
-
view.setUint16(offset, data.outputNodes.length, true);
|
|
7940
|
-
offset += 2;
|
|
7941
|
-
view.setUint16(offset, rootKeys.length, true);
|
|
7942
|
-
offset += 2;
|
|
7943
|
-
}
|
|
7944
|
-
for (const node of data.inputNodes) {
|
|
7945
|
-
const fieldIndices = Object.keys(node.edges).map(Number);
|
|
7946
|
-
if (useWide) {
|
|
7947
|
-
view.setUint32(offset, fieldIndices.length, true);
|
|
7948
|
-
offset += 4;
|
|
7949
|
-
} else {
|
|
7950
|
-
view.setUint16(offset, fieldIndices.length, true);
|
|
7951
|
-
offset += 2;
|
|
7952
|
-
}
|
|
7953
|
-
for (const fieldIndex of fieldIndices) {
|
|
7954
|
-
const edge = node.edges[fieldIndex];
|
|
7955
|
-
if (useWide) {
|
|
7956
|
-
view.setUint32(offset, fieldIndex, true);
|
|
7957
|
-
offset += 4;
|
|
7958
|
-
view.setUint16(offset, edge.scalarMask ?? 0, true);
|
|
7959
|
-
offset += 2;
|
|
7960
|
-
offset += 2;
|
|
7961
|
-
view.setUint32(offset, edge.childNodeId ?? NONE_32, true);
|
|
7962
|
-
offset += 4;
|
|
7963
|
-
view.setUint32(offset, edge.enumNameIndex ?? NONE_32, true);
|
|
7964
|
-
offset += 4;
|
|
7965
|
-
view.setUint8(offset, edge.flags);
|
|
7966
|
-
offset += 1;
|
|
7967
|
-
offset += 3;
|
|
7968
|
-
} else {
|
|
7969
|
-
view.setUint16(offset, fieldIndex, true);
|
|
7970
|
-
offset += 2;
|
|
7971
|
-
view.setUint16(offset, edge.scalarMask ?? 0, true);
|
|
7972
|
-
offset += 2;
|
|
7973
|
-
view.setUint16(offset, edge.childNodeId ?? NONE_16, true);
|
|
7974
|
-
offset += 2;
|
|
7975
|
-
view.setUint16(offset, edge.enumNameIndex ?? NONE_16, true);
|
|
7976
|
-
offset += 2;
|
|
7977
|
-
view.setUint8(offset, edge.flags);
|
|
7978
|
-
offset += 1;
|
|
7979
|
-
offset += 1;
|
|
7980
|
-
}
|
|
7981
|
-
}
|
|
7982
|
-
}
|
|
7983
|
-
for (const node of data.outputNodes) {
|
|
7984
|
-
const fieldIndices = Object.keys(node.edges).map(Number);
|
|
7985
|
-
if (useWide) {
|
|
7986
|
-
view.setUint32(offset, fieldIndices.length, true);
|
|
7987
|
-
offset += 4;
|
|
7988
|
-
} else {
|
|
7989
|
-
view.setUint16(offset, fieldIndices.length, true);
|
|
7990
|
-
offset += 2;
|
|
7991
|
-
}
|
|
7992
|
-
for (const fieldIndex of fieldIndices) {
|
|
7993
|
-
const edge = node.edges[fieldIndex];
|
|
7994
|
-
if (useWide) {
|
|
7995
|
-
view.setUint32(offset, fieldIndex, true);
|
|
7996
|
-
offset += 4;
|
|
7997
|
-
view.setUint32(offset, edge.argsNodeId ?? NONE_32, true);
|
|
7998
|
-
offset += 4;
|
|
7999
|
-
view.setUint32(offset, edge.outputNodeId ?? NONE_32, true);
|
|
8000
|
-
offset += 4;
|
|
8001
|
-
} else {
|
|
8002
|
-
view.setUint16(offset, fieldIndex, true);
|
|
8003
|
-
offset += 2;
|
|
8004
|
-
view.setUint16(offset, edge.argsNodeId ?? NONE_16, true);
|
|
8005
|
-
offset += 2;
|
|
8006
|
-
view.setUint16(offset, edge.outputNodeId ?? NONE_16, true);
|
|
8007
|
-
offset += 2;
|
|
8008
|
-
}
|
|
8009
|
-
}
|
|
8010
|
-
}
|
|
8011
|
-
for (const key of rootKeys) {
|
|
8012
|
-
const root = data.roots[key];
|
|
8013
|
-
const keyIndex = data.strings.indexOf(key);
|
|
8014
|
-
if (useWide) {
|
|
8015
|
-
view.setUint32(offset, keyIndex, true);
|
|
8016
|
-
offset += 4;
|
|
8017
|
-
view.setUint32(offset, root.argsNodeId ?? NONE_32, true);
|
|
8018
|
-
offset += 4;
|
|
8019
|
-
view.setUint32(offset, root.outputNodeId ?? NONE_32, true);
|
|
8020
|
-
offset += 4;
|
|
7918
|
+
get #wordSize() {
|
|
7919
|
+
return this.#useWide ? 4 : 2;
|
|
7920
|
+
}
|
|
7921
|
+
get #noneValue() {
|
|
7922
|
+
return this.#useWide ? NONE_32 : NONE_16;
|
|
7923
|
+
}
|
|
7924
|
+
#writeWord(value) {
|
|
7925
|
+
if (this.#useWide) {
|
|
7926
|
+
this.#view.setUint32(this.#offset, value, true);
|
|
8021
7927
|
} else {
|
|
8022
|
-
view.setUint16(offset,
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
7928
|
+
this.#view.setUint16(this.#offset, value, true);
|
|
7929
|
+
}
|
|
7930
|
+
this.#offset += this.#wordSize;
|
|
7931
|
+
}
|
|
7932
|
+
#writeOptionalWord(value) {
|
|
7933
|
+
this.#writeWord(value ?? this.#noneValue);
|
|
7934
|
+
}
|
|
7935
|
+
#writeByte(value) {
|
|
7936
|
+
this.#view.setUint8(this.#offset, value);
|
|
7937
|
+
this.#offset += 1;
|
|
7938
|
+
}
|
|
7939
|
+
#writeU16(value) {
|
|
7940
|
+
this.#view.setUint16(this.#offset, value, true);
|
|
7941
|
+
this.#offset += 2;
|
|
7942
|
+
}
|
|
7943
|
+
#skip(bytes) {
|
|
7944
|
+
this.#offset += bytes;
|
|
7945
|
+
}
|
|
7946
|
+
#calculateBufferSize() {
|
|
7947
|
+
let size = 1;
|
|
7948
|
+
size += this.#useWide ? 12 : 6;
|
|
7949
|
+
for (const node of this.#data.inputNodes) {
|
|
7950
|
+
size += this.#wordSize;
|
|
7951
|
+
const edgeCount = Object.keys(node.edges).length;
|
|
7952
|
+
size += edgeCount * (this.#useWide ? 20 : 10);
|
|
7953
|
+
}
|
|
7954
|
+
for (const node of this.#data.outputNodes) {
|
|
7955
|
+
size += this.#wordSize;
|
|
7956
|
+
const edgeCount = Object.keys(node.edges).length;
|
|
7957
|
+
size += edgeCount * (this.#useWide ? 12 : 6);
|
|
7958
|
+
}
|
|
7959
|
+
size += this.#rootKeys.length * (this.#useWide ? 12 : 6);
|
|
7960
|
+
return size;
|
|
7961
|
+
}
|
|
7962
|
+
#writeHeader() {
|
|
7963
|
+
this.#writeByte(this.#useWide ? FORMAT_WIDE : FORMAT_COMPACT);
|
|
7964
|
+
this.#writeWord(this.#data.inputNodes.length);
|
|
7965
|
+
this.#writeWord(this.#data.outputNodes.length);
|
|
7966
|
+
this.#writeWord(this.#rootKeys.length);
|
|
7967
|
+
}
|
|
7968
|
+
#writeInputNodes() {
|
|
7969
|
+
for (const node of this.#data.inputNodes) {
|
|
7970
|
+
const fieldIndices = Object.keys(node.edges).map(Number);
|
|
7971
|
+
this.#writeWord(fieldIndices.length);
|
|
7972
|
+
for (const fieldIndex of fieldIndices) {
|
|
7973
|
+
const edge = node.edges[fieldIndex];
|
|
7974
|
+
this.#writeWord(fieldIndex);
|
|
7975
|
+
this.#writeU16(edge.scalarMask ?? 0);
|
|
7976
|
+
if (this.#useWide) {
|
|
7977
|
+
this.#skip(2);
|
|
7978
|
+
}
|
|
7979
|
+
this.#writeOptionalWord(edge.childNodeId);
|
|
7980
|
+
this.#writeOptionalWord(edge.enumNameIndex);
|
|
7981
|
+
this.#writeByte(edge.flags);
|
|
7982
|
+
this.#skip(this.#useWide ? 3 : 1);
|
|
7983
|
+
}
|
|
8028
7984
|
}
|
|
8029
7985
|
}
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
7986
|
+
#writeOutputNodes() {
|
|
7987
|
+
for (const node of this.#data.outputNodes) {
|
|
7988
|
+
const fieldIndices = Object.keys(node.edges).map(Number);
|
|
7989
|
+
this.#writeWord(fieldIndices.length);
|
|
7990
|
+
for (const fieldIndex of fieldIndices) {
|
|
7991
|
+
const edge = node.edges[fieldIndex];
|
|
7992
|
+
this.#writeWord(fieldIndex);
|
|
7993
|
+
this.#writeOptionalWord(edge.argsNodeId);
|
|
7994
|
+
this.#writeOptionalWord(edge.outputNodeId);
|
|
7995
|
+
}
|
|
7996
|
+
}
|
|
7997
|
+
}
|
|
7998
|
+
#writeRoots() {
|
|
7999
|
+
for (const key of this.#rootKeys) {
|
|
8000
|
+
const root = this.#data.roots[key];
|
|
8001
|
+
const keyIndex = this.#data.strings.indexOf(key);
|
|
8002
|
+
this.#writeWord(keyIndex);
|
|
8003
|
+
this.#writeOptionalWord(root.argsNodeId);
|
|
8004
|
+
this.#writeOptionalWord(root.outputNodeId);
|
|
8005
|
+
}
|
|
8006
|
+
}
|
|
8007
|
+
};
|
|
8035
8008
|
|
|
8036
8009
|
// ../param-graph/src/param-graph.ts
|
|
8037
8010
|
var EdgeFlag = {
|
|
@@ -11000,7 +10973,7 @@ var import_node_path4 = __toESM(require("node:path"));
|
|
|
11000
10973
|
var import_engines_version = __toESM(require_engines_version());
|
|
11001
10974
|
|
|
11002
10975
|
// ../client-generator-js/package.json
|
|
11003
|
-
var version = "7.4.0-integration-parameterization.
|
|
10976
|
+
var version = "7.4.0-integration-parameterization.10";
|
|
11004
10977
|
|
|
11005
10978
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
11006
10979
|
var import_promises5 = __toESM(require("node:fs/promises"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "7.4.0-integration-parameterization.
|
|
3
|
+
"version": "7.4.0-integration-parameterization.10",
|
|
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",
|
|
@@ -218,41 +218,41 @@
|
|
|
218
218
|
"typescript": "5.4.5",
|
|
219
219
|
"undici": "7.4.0",
|
|
220
220
|
"zx": "8.4.1",
|
|
221
|
-
"@prisma/adapter-better-sqlite3": "7.4.0-integration-parameterization.
|
|
222
|
-
"@prisma/adapter-d1": "7.4.0-integration-parameterization.
|
|
223
|
-
"@prisma/adapter-libsql": "7.4.0-integration-parameterization.
|
|
224
|
-
"@prisma/adapter-
|
|
225
|
-
"@prisma/adapter-
|
|
226
|
-
"@prisma/adapter-
|
|
227
|
-
"@prisma/adapter-
|
|
228
|
-
"@prisma/adapter-
|
|
229
|
-
"@prisma/client-
|
|
230
|
-
"@prisma/client-
|
|
231
|
-
"@prisma/client-
|
|
232
|
-
"@prisma/
|
|
233
|
-
"@prisma/
|
|
234
|
-
"@prisma/
|
|
235
|
-
"@prisma/
|
|
236
|
-
"@prisma/
|
|
237
|
-
"@prisma/
|
|
238
|
-
"@prisma/
|
|
239
|
-
"@prisma/generator": "7.4.0-integration-parameterization.
|
|
240
|
-
"@prisma/get-platform": "7.4.0-integration-parameterization.
|
|
241
|
-
"@prisma/
|
|
242
|
-
"@prisma/
|
|
243
|
-
"@prisma/internals": "7.4.0-integration-parameterization.
|
|
244
|
-
"@prisma/
|
|
245
|
-
"@prisma/
|
|
246
|
-
"@prisma/
|
|
247
|
-
"@prisma/
|
|
248
|
-
"@prisma/param-graph-builder": "7.4.0-integration-parameterization.
|
|
249
|
-
"@prisma/
|
|
250
|
-
"@prisma/
|
|
251
|
-
"@prisma/
|
|
252
|
-
"@prisma/
|
|
221
|
+
"@prisma/adapter-better-sqlite3": "7.4.0-integration-parameterization.10",
|
|
222
|
+
"@prisma/adapter-d1": "7.4.0-integration-parameterization.10",
|
|
223
|
+
"@prisma/adapter-libsql": "7.4.0-integration-parameterization.10",
|
|
224
|
+
"@prisma/adapter-mssql": "7.4.0-integration-parameterization.10",
|
|
225
|
+
"@prisma/adapter-mariadb": "7.4.0-integration-parameterization.10",
|
|
226
|
+
"@prisma/adapter-neon": "7.4.0-integration-parameterization.10",
|
|
227
|
+
"@prisma/adapter-planetscale": "7.4.0-integration-parameterization.10",
|
|
228
|
+
"@prisma/adapter-pg": "7.4.0-integration-parameterization.10",
|
|
229
|
+
"@prisma/client-common": "7.4.0-integration-parameterization.10",
|
|
230
|
+
"@prisma/client-engine-runtime": "7.4.0-integration-parameterization.10",
|
|
231
|
+
"@prisma/client-generator-js": "7.4.0-integration-parameterization.10",
|
|
232
|
+
"@prisma/client-generator-ts": "7.4.0-integration-parameterization.10",
|
|
233
|
+
"@prisma/dmmf": "7.4.0-integration-parameterization.10",
|
|
234
|
+
"@prisma/config": "7.4.0-integration-parameterization.10",
|
|
235
|
+
"@prisma/engines": "7.4.0-integration-parameterization.10",
|
|
236
|
+
"@prisma/driver-adapter-utils": "7.4.0-integration-parameterization.10",
|
|
237
|
+
"@prisma/fetch-engine": "7.4.0-integration-parameterization.10",
|
|
238
|
+
"@prisma/debug": "7.4.0-integration-parameterization.10",
|
|
239
|
+
"@prisma/generator": "7.4.0-integration-parameterization.10",
|
|
240
|
+
"@prisma/get-platform": "7.4.0-integration-parameterization.10",
|
|
241
|
+
"@prisma/instrumentation": "7.4.0-integration-parameterization.10",
|
|
242
|
+
"@prisma/generator-helper": "7.4.0-integration-parameterization.10",
|
|
243
|
+
"@prisma/internals": "7.4.0-integration-parameterization.10",
|
|
244
|
+
"@prisma/migrate": "7.4.0-integration-parameterization.10",
|
|
245
|
+
"@prisma/instrumentation-contract": "7.4.0-integration-parameterization.10",
|
|
246
|
+
"@prisma/param-graph": "7.4.0-integration-parameterization.10",
|
|
247
|
+
"@prisma/query-plan-executor": "7.4.0-integration-parameterization.10",
|
|
248
|
+
"@prisma/param-graph-builder": "7.4.0-integration-parameterization.10",
|
|
249
|
+
"@prisma/json-protocol": "7.4.0-integration-parameterization.10",
|
|
250
|
+
"@prisma/sqlcommenter": "7.4.0-integration-parameterization.10",
|
|
251
|
+
"@prisma/ts-builders": "7.4.0-integration-parameterization.10",
|
|
252
|
+
"@prisma/sqlcommenter-trace-context": "7.4.0-integration-parameterization.10"
|
|
253
253
|
},
|
|
254
254
|
"dependencies": {
|
|
255
|
-
"@prisma/client-runtime-utils": "7.4.0-integration-parameterization.
|
|
255
|
+
"@prisma/client-runtime-utils": "7.4.0-integration-parameterization.10"
|
|
256
256
|
},
|
|
257
257
|
"peerDependencies": {
|
|
258
258
|
"prisma": "*",
|