@prisma/client 6.6.0-integration-feat-introduce-schema-engine-wasm.1 → 6.6.0-integration-push-spwsqpvywlkl.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 +85 -23
- package/package.json +26 -25
- package/runtime/binary.js +75 -75
- package/runtime/binary.mjs +76 -76
- package/runtime/client.d.mts +9 -9
- package/runtime/client.d.ts +9 -9
- package/runtime/client.js +20 -20
- package/runtime/client.mjs +19 -19
- package/runtime/edge-esm.js +17 -17
- package/runtime/edge.d.ts +9 -9
- package/runtime/edge.js +16 -16
- package/runtime/index-browser.d.ts +3 -0
- package/runtime/index-browser.js +1 -1
- package/runtime/library.d.mts +9 -9
- package/runtime/library.d.ts +9 -9
- package/runtime/library.js +35 -35
- package/runtime/library.mjs +27 -27
- package/runtime/react-native.d.ts +9 -9
- package/runtime/react-native.js +14 -14
- package/runtime/wasm.js +13 -13
- package/runtime/wasm.mjs +12 -12
- package/scripts/default-index.js +1 -1
package/generator-build/index.js
CHANGED
|
@@ -5547,7 +5547,7 @@ var import_pkg_up = __toESM(require_pkg_up());
|
|
|
5547
5547
|
// package.json
|
|
5548
5548
|
var package_default = {
|
|
5549
5549
|
name: "@prisma/client",
|
|
5550
|
-
version: "6.6.0-integration-
|
|
5550
|
+
version: "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
5551
5551
|
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.",
|
|
5552
5552
|
keywords: [
|
|
5553
5553
|
"ORM",
|
|
@@ -5838,6 +5838,7 @@ var package_default = {
|
|
|
5838
5838
|
"stacktrace-parser": "0.1.11",
|
|
5839
5839
|
"strip-ansi": "6.0.1",
|
|
5840
5840
|
"strip-indent": "4.0.0",
|
|
5841
|
+
tempy: "3.0.0",
|
|
5841
5842
|
"ts-node": "10.9.2",
|
|
5842
5843
|
"ts-pattern": "5.6.2",
|
|
5843
5844
|
tsd: "0.31.2",
|
|
@@ -5958,15 +5959,26 @@ var ConstDeclaration = class {
|
|
|
5958
5959
|
this.type = type;
|
|
5959
5960
|
}
|
|
5960
5961
|
docComment;
|
|
5962
|
+
value;
|
|
5961
5963
|
setDocComment(docComment2) {
|
|
5962
5964
|
this.docComment = docComment2;
|
|
5963
5965
|
return this;
|
|
5964
5966
|
}
|
|
5967
|
+
setValue(value) {
|
|
5968
|
+
this.value = value;
|
|
5969
|
+
return this;
|
|
5970
|
+
}
|
|
5965
5971
|
write(writer) {
|
|
5966
5972
|
if (this.docComment) {
|
|
5967
5973
|
writer.write(this.docComment);
|
|
5968
5974
|
}
|
|
5969
|
-
writer.write("const ").write(this.name)
|
|
5975
|
+
writer.write("const ").write(this.name);
|
|
5976
|
+
if (this.type) {
|
|
5977
|
+
writer.write(": ").write(this.type);
|
|
5978
|
+
}
|
|
5979
|
+
if (this.value) {
|
|
5980
|
+
writer.write(" = ").write(this.value);
|
|
5981
|
+
}
|
|
5970
5982
|
}
|
|
5971
5983
|
};
|
|
5972
5984
|
function constDeclaration(name, type) {
|
|
@@ -6099,11 +6111,19 @@ var NamedExport = class {
|
|
|
6099
6111
|
this.name = name;
|
|
6100
6112
|
}
|
|
6101
6113
|
alias;
|
|
6114
|
+
type = false;
|
|
6102
6115
|
as(alias) {
|
|
6103
6116
|
this.alias = alias;
|
|
6104
6117
|
return this;
|
|
6105
6118
|
}
|
|
6119
|
+
typeOnly() {
|
|
6120
|
+
this.type = true;
|
|
6121
|
+
return this;
|
|
6122
|
+
}
|
|
6106
6123
|
write(writer) {
|
|
6124
|
+
if (this.type) {
|
|
6125
|
+
writer.write("type ");
|
|
6126
|
+
}
|
|
6107
6127
|
writer.write(this.name);
|
|
6108
6128
|
if (this.alias) {
|
|
6109
6129
|
writer.write(" as ").write(this.alias);
|
|
@@ -6158,6 +6178,25 @@ function file() {
|
|
|
6158
6178
|
return new File();
|
|
6159
6179
|
}
|
|
6160
6180
|
|
|
6181
|
+
// ../ts-builders/src/ValueBuilder.ts
|
|
6182
|
+
var ValueBuilder = class {
|
|
6183
|
+
as(type) {
|
|
6184
|
+
return new TypeAssertion(this, type);
|
|
6185
|
+
}
|
|
6186
|
+
};
|
|
6187
|
+
var TypeAssertion = class extends ValueBuilder {
|
|
6188
|
+
#value;
|
|
6189
|
+
#type;
|
|
6190
|
+
constructor(value, type) {
|
|
6191
|
+
super();
|
|
6192
|
+
this.#value = value;
|
|
6193
|
+
this.#type = type;
|
|
6194
|
+
}
|
|
6195
|
+
write(writer) {
|
|
6196
|
+
writer.write(this.#value).write(" as ").write(this.#type);
|
|
6197
|
+
}
|
|
6198
|
+
};
|
|
6199
|
+
|
|
6161
6200
|
// ../ts-builders/src/PrimitiveType.ts
|
|
6162
6201
|
init_TypeBuilder();
|
|
6163
6202
|
var PrimitiveType = class extends TypeBuilder {
|
|
@@ -6272,15 +6311,6 @@ function genericParameter(name) {
|
|
|
6272
6311
|
function omit(type, keyType2) {
|
|
6273
6312
|
return namedType("Omit").addGenericArgument(type).addGenericArgument(keyType2);
|
|
6274
6313
|
}
|
|
6275
|
-
function promise(resultType) {
|
|
6276
|
-
return new NamedType("$Utils.JsPromise").addGenericArgument(resultType);
|
|
6277
|
-
}
|
|
6278
|
-
function prismaPromise(resultType) {
|
|
6279
|
-
return new NamedType("Prisma.PrismaPromise").addGenericArgument(resultType);
|
|
6280
|
-
}
|
|
6281
|
-
function optional(innerType) {
|
|
6282
|
-
return new NamedType("$Utils.Optional").addGenericArgument(innerType);
|
|
6283
|
-
}
|
|
6284
6314
|
|
|
6285
6315
|
// ../ts-builders/src/Import.ts
|
|
6286
6316
|
var NamespaceImport = class {
|
|
@@ -6331,11 +6361,19 @@ var NamedImport = class {
|
|
|
6331
6361
|
this.name = name;
|
|
6332
6362
|
}
|
|
6333
6363
|
alias;
|
|
6364
|
+
type = false;
|
|
6334
6365
|
as(alias) {
|
|
6335
6366
|
this.alias = alias;
|
|
6336
6367
|
return this;
|
|
6337
6368
|
}
|
|
6369
|
+
typeOnly() {
|
|
6370
|
+
this.type = true;
|
|
6371
|
+
return this;
|
|
6372
|
+
}
|
|
6338
6373
|
write(writer) {
|
|
6374
|
+
if (this.type) {
|
|
6375
|
+
writer.write("type ");
|
|
6376
|
+
}
|
|
6339
6377
|
writer.write(this.name);
|
|
6340
6378
|
if (this.alias) {
|
|
6341
6379
|
writer.write(" as ").write(this.alias);
|
|
@@ -6775,6 +6813,19 @@ var StringLiteralType = class extends TypeBuilder {
|
|
|
6775
6813
|
write(writer) {
|
|
6776
6814
|
writer.write(JSON.stringify(this.content));
|
|
6777
6815
|
}
|
|
6816
|
+
asValue() {
|
|
6817
|
+
return new StringLiteralValue(this);
|
|
6818
|
+
}
|
|
6819
|
+
};
|
|
6820
|
+
var StringLiteralValue = class extends ValueBuilder {
|
|
6821
|
+
#type;
|
|
6822
|
+
constructor(type) {
|
|
6823
|
+
super();
|
|
6824
|
+
this.#type = type;
|
|
6825
|
+
}
|
|
6826
|
+
write(writer) {
|
|
6827
|
+
writer.write(this.#type);
|
|
6828
|
+
}
|
|
6778
6829
|
};
|
|
6779
6830
|
function stringLiteral(content) {
|
|
6780
6831
|
return new StringLiteralType(content);
|
|
@@ -8051,6 +8102,17 @@ function getModelActions(dmmf, name) {
|
|
|
8051
8102
|
return mappingKeys;
|
|
8052
8103
|
}
|
|
8053
8104
|
|
|
8105
|
+
// ../client-generator-js/src/TSClient/utils/type-builders.ts
|
|
8106
|
+
function promise(resultType) {
|
|
8107
|
+
return new NamedType("$Utils.JsPromise").addGenericArgument(resultType);
|
|
8108
|
+
}
|
|
8109
|
+
function prismaPromise(resultType) {
|
|
8110
|
+
return new NamedType("Prisma.PrismaPromise").addGenericArgument(resultType);
|
|
8111
|
+
}
|
|
8112
|
+
function optional(innerType) {
|
|
8113
|
+
return new NamedType("$Utils.Optional").addGenericArgument(innerType);
|
|
8114
|
+
}
|
|
8115
|
+
|
|
8054
8116
|
// ../client-generator-js/src/TSClient/Model.ts
|
|
8055
8117
|
var Model = class {
|
|
8056
8118
|
constructor(model, context) {
|
|
@@ -8947,22 +9009,22 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
8947
9009
|
function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
8948
9010
|
if (copyCompiler && runtimeNameJs === "client") {
|
|
8949
9011
|
return `config.compilerWasm = {
|
|
8950
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
9012
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
8951
9013
|
getQueryCompilerWasmModule: async () => {
|
|
8952
9014
|
const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
|
|
8953
9015
|
const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
|
|
8954
|
-
|
|
9016
|
+
|
|
8955
9017
|
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
8956
9018
|
}
|
|
8957
9019
|
}`;
|
|
8958
9020
|
}
|
|
8959
9021
|
if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
|
|
8960
9022
|
return `config.compilerWasm = {
|
|
8961
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
9023
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
8962
9024
|
getQueryCompilerWasmModule: async () => {
|
|
8963
9025
|
const loader = (await import('#wasm-compiler-loader')).default
|
|
8964
9026
|
const compiler = (await loader).default
|
|
8965
|
-
return compiler
|
|
9027
|
+
return compiler
|
|
8966
9028
|
}
|
|
8967
9029
|
}`;
|
|
8968
9030
|
}
|
|
@@ -8973,22 +9035,22 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
8973
9035
|
function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
8974
9036
|
if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
|
|
8975
9037
|
return `config.engineWasm = {
|
|
8976
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
9038
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
8977
9039
|
getQueryEngineWasmModule: async () => {
|
|
8978
9040
|
const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')
|
|
8979
9041
|
const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)
|
|
8980
|
-
|
|
9042
|
+
|
|
8981
9043
|
return new WebAssembly.Module(queryEngineWasmFileBytes)
|
|
8982
9044
|
}
|
|
8983
9045
|
}`;
|
|
8984
9046
|
}
|
|
8985
9047
|
if (copyEngine && wasm === true) {
|
|
8986
9048
|
return `config.engineWasm = {
|
|
8987
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
9049
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
8988
9050
|
getQueryEngineWasmModule: async () => {
|
|
8989
9051
|
const loader = (await import('#wasm-engine-loader')).default
|
|
8990
9052
|
const engine = (await loader).default
|
|
8991
|
-
return engine
|
|
9053
|
+
return engine
|
|
8992
9054
|
}
|
|
8993
9055
|
}`;
|
|
8994
9056
|
}
|
|
@@ -10864,7 +10926,7 @@ function buildTypedSql({
|
|
|
10864
10926
|
}
|
|
10865
10927
|
|
|
10866
10928
|
// ../client-generator-js/src/generateClient.ts
|
|
10867
|
-
var debug2 =
|
|
10929
|
+
var debug2 = Debug("prisma:client:generateClient");
|
|
10868
10930
|
var DenylistError = class extends Error {
|
|
10869
10931
|
constructor(message) {
|
|
10870
10932
|
super(message);
|
|
@@ -11460,7 +11522,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
|
11460
11522
|
var import_engines_version = __toESM(require_engines_version());
|
|
11461
11523
|
|
|
11462
11524
|
// ../client-generator-js/package.json
|
|
11463
|
-
var version = "6.6.0-integration-
|
|
11525
|
+
var version = "6.6.0-integration-push-spwsqpvywlkl.10";
|
|
11464
11526
|
|
|
11465
11527
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
11466
11528
|
var import_promises4 = __toESM(require("node:fs/promises"));
|
|
@@ -16383,7 +16445,7 @@ function init2(open, close) {
|
|
|
16383
16445
|
}
|
|
16384
16446
|
|
|
16385
16447
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
16386
|
-
var debug3 =
|
|
16448
|
+
var debug3 = Debug("prisma:generator");
|
|
16387
16449
|
async function resolvePrismaClient(baseDir) {
|
|
16388
16450
|
const prismaClientDir = await findPrismaClientDir(baseDir);
|
|
16389
16451
|
debug3("baseDir", baseDir);
|
|
@@ -16416,7 +16478,7 @@ async function getPackageCmd(cwd2, cmd, ...args) {
|
|
|
16416
16478
|
}
|
|
16417
16479
|
|
|
16418
16480
|
// ../client-generator-js/src/generator.ts
|
|
16419
|
-
var debug4 =
|
|
16481
|
+
var debug4 = Debug("prisma:client:generator");
|
|
16420
16482
|
var MISSING_CUSTOM_OUTPUT_PATH_WARNING = `${yellow("Warning:")} You did not specify an output path for your \`generator\` in schema.prisma. This behavior is deprecated and will no longer be supported in Prisma 7.0.0. To learn more visit https://pris.ly/cli/output-path`;
|
|
16421
16483
|
var PrismaClientJsGenerator = class {
|
|
16422
16484
|
name = "prisma-client-js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.6.0-integration-
|
|
3
|
+
"version": "6.6.0-integration-push-spwsqpvywlkl.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",
|
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
"stacktrace-parser": "0.1.11",
|
|
250
250
|
"strip-ansi": "6.0.1",
|
|
251
251
|
"strip-indent": "4.0.0",
|
|
252
|
+
"tempy": "3.0.0",
|
|
252
253
|
"ts-node": "10.9.2",
|
|
253
254
|
"ts-pattern": "5.6.2",
|
|
254
255
|
"tsd": "0.31.2",
|
|
@@ -256,30 +257,30 @@
|
|
|
256
257
|
"undici": "7.4.0",
|
|
257
258
|
"wrangler": "3.111.0",
|
|
258
259
|
"zx": "8.4.1",
|
|
259
|
-
"@prisma/adapter-d1": "6.6.0-integration-
|
|
260
|
-
"@prisma/adapter-libsql": "6.6.0-integration-
|
|
261
|
-
"@prisma/adapter-
|
|
262
|
-
"@prisma/adapter-pg": "6.6.0-integration-
|
|
263
|
-
"@prisma/adapter-
|
|
264
|
-
"@prisma/adapter-
|
|
265
|
-
"@prisma/client-common": "6.6.0-integration-
|
|
266
|
-
"@prisma/client-engine-runtime": "6.6.0-integration-
|
|
267
|
-
"@prisma/client-generator-js": "6.6.0-integration-
|
|
268
|
-
"@prisma/
|
|
269
|
-
"@prisma/
|
|
270
|
-
"@prisma/
|
|
271
|
-
"@prisma/dmmf": "6.6.0-integration-
|
|
272
|
-
"@prisma/driver-adapter-utils": "6.6.0-integration-
|
|
273
|
-
"@prisma/
|
|
274
|
-
"@prisma/fetch-engine": "6.6.0-integration-
|
|
275
|
-
"@prisma/generator-helper": "6.6.0-integration-
|
|
276
|
-
"@prisma/
|
|
277
|
-
"@prisma/
|
|
278
|
-
"@prisma/internals": "6.6.0-integration-
|
|
279
|
-
"@prisma/
|
|
280
|
-
"@prisma/
|
|
281
|
-
"@prisma/pg-worker": "6.6.0-integration-
|
|
282
|
-
"@prisma/ts-builders": "6.6.0-integration-
|
|
260
|
+
"@prisma/adapter-d1": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
261
|
+
"@prisma/adapter-libsql": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
262
|
+
"@prisma/adapter-pg": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
263
|
+
"@prisma/adapter-pg-worker": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
264
|
+
"@prisma/adapter-planetscale": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
265
|
+
"@prisma/adapter-neon": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
266
|
+
"@prisma/client-common": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
267
|
+
"@prisma/client-engine-runtime": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
268
|
+
"@prisma/client-generator-js": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
269
|
+
"@prisma/client-generator-ts": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
270
|
+
"@prisma/config": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
271
|
+
"@prisma/debug": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
272
|
+
"@prisma/dmmf": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
273
|
+
"@prisma/driver-adapter-utils": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
274
|
+
"@prisma/generator": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
275
|
+
"@prisma/fetch-engine": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
276
|
+
"@prisma/generator-helper": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
277
|
+
"@prisma/engines": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
278
|
+
"@prisma/instrumentation": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
279
|
+
"@prisma/internals": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
280
|
+
"@prisma/get-platform": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
281
|
+
"@prisma/migrate": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
282
|
+
"@prisma/pg-worker": "6.6.0-integration-push-spwsqpvywlkl.10",
|
|
283
|
+
"@prisma/ts-builders": "6.6.0-integration-push-spwsqpvywlkl.10"
|
|
283
284
|
},
|
|
284
285
|
"peerDependencies": {
|
|
285
286
|
"prisma": "*",
|