prisma 6.6.0-dev.96 → 6.6.0-dev.97
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 +1096 -1338
- package/package.json +14 -14
- package/prisma-client/generator-build/index.js +76 -15
- package/prisma-client/package.json +1 -1
- package/prisma-client/runtime/binary.js +24 -24
- package/prisma-client/runtime/binary.mjs +24 -24
- package/prisma-client/runtime/client.d.mts +5 -2
- package/prisma-client/runtime/client.d.ts +5 -2
- package/prisma-client/runtime/client.js +9 -9
- package/prisma-client/runtime/client.mjs +9 -9
- package/prisma-client/runtime/edge-esm.js +4 -4
- package/prisma-client/runtime/edge.d.ts +5 -2
- package/prisma-client/runtime/edge.js +4 -4
- package/prisma-client/runtime/index-browser.d.ts +3 -0
- package/prisma-client/runtime/index-browser.js +1 -1
- package/prisma-client/runtime/library.d.mts +5 -2
- package/prisma-client/runtime/library.d.ts +5 -2
- package/prisma-client/runtime/library.js +11 -11
- package/prisma-client/runtime/library.mjs +11 -11
- package/prisma-client/runtime/react-native.d.ts +5 -2
- package/prisma-client/runtime/react-native.js +5 -5
- package/prisma-client/scripts/default-index.js +1 -1
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "6.6.0-dev.
|
2
|
+
"version": "6.6.0-dev.97",
|
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": "f470a65f8c9cc507491eb548671332d04adb065e"
|
45
45
|
},
|
46
46
|
"files": [
|
47
47
|
"README.md",
|
@@ -149,20 +149,20 @@
|
|
149
149
|
"typescript": "5.4.5",
|
150
150
|
"xdg-app-paths": "8.3.0",
|
151
151
|
"zx": "8.4.1",
|
152
|
-
"@prisma/adapter-libsql": "6.6.0-dev.
|
153
|
-
"@prisma/client
|
154
|
-
"@prisma/
|
155
|
-
"@prisma/
|
156
|
-
"@prisma/dmmf": "6.6.0-dev.
|
157
|
-
"@prisma/fetch-engine": "6.6.0-dev.
|
158
|
-
"@prisma/
|
159
|
-
"@prisma/
|
160
|
-
"@prisma/internals": "6.6.0-dev.
|
161
|
-
"@prisma/
|
152
|
+
"@prisma/adapter-libsql": "6.6.0-dev.97",
|
153
|
+
"@prisma/client": "6.6.0-dev.97",
|
154
|
+
"@prisma/client-generator-registry": "6.6.0-dev.97",
|
155
|
+
"@prisma/debug": "6.6.0-dev.97",
|
156
|
+
"@prisma/dmmf": "6.6.0-dev.97",
|
157
|
+
"@prisma/fetch-engine": "6.6.0-dev.97",
|
158
|
+
"@prisma/get-platform": "6.6.0-dev.97",
|
159
|
+
"@prisma/migrate": "6.6.0-dev.97",
|
160
|
+
"@prisma/internals": "6.6.0-dev.97",
|
161
|
+
"@prisma/generator": "6.6.0-dev.97"
|
162
162
|
},
|
163
163
|
"dependencies": {
|
164
|
-
"@prisma/config": "6.6.0-dev.
|
165
|
-
"@prisma/engines": "6.6.0-dev.
|
164
|
+
"@prisma/config": "6.6.0-dev.97",
|
165
|
+
"@prisma/engines": "6.6.0-dev.97"
|
166
166
|
},
|
167
167
|
"optionalDependencies": {
|
168
168
|
"fsevents": "2.3.3"
|
@@ -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-dev.
|
5550
|
+
version: "6.6.0-dev.97",
|
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",
|
@@ -5959,15 +5959,26 @@ var ConstDeclaration = class {
|
|
5959
5959
|
this.type = type;
|
5960
5960
|
}
|
5961
5961
|
docComment;
|
5962
|
+
value;
|
5962
5963
|
setDocComment(docComment2) {
|
5963
5964
|
this.docComment = docComment2;
|
5964
5965
|
return this;
|
5965
5966
|
}
|
5967
|
+
setValue(value) {
|
5968
|
+
this.value = value;
|
5969
|
+
return this;
|
5970
|
+
}
|
5966
5971
|
write(writer) {
|
5967
5972
|
if (this.docComment) {
|
5968
5973
|
writer.write(this.docComment);
|
5969
5974
|
}
|
5970
|
-
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
|
+
}
|
5971
5982
|
}
|
5972
5983
|
};
|
5973
5984
|
function constDeclaration(name, type) {
|
@@ -6100,11 +6111,19 @@ var NamedExport = class {
|
|
6100
6111
|
this.name = name;
|
6101
6112
|
}
|
6102
6113
|
alias;
|
6114
|
+
type = false;
|
6103
6115
|
as(alias) {
|
6104
6116
|
this.alias = alias;
|
6105
6117
|
return this;
|
6106
6118
|
}
|
6119
|
+
typeOnly() {
|
6120
|
+
this.type = true;
|
6121
|
+
return this;
|
6122
|
+
}
|
6107
6123
|
write(writer) {
|
6124
|
+
if (this.type) {
|
6125
|
+
writer.write("type ");
|
6126
|
+
}
|
6108
6127
|
writer.write(this.name);
|
6109
6128
|
if (this.alias) {
|
6110
6129
|
writer.write(" as ").write(this.alias);
|
@@ -6159,6 +6178,25 @@ function file() {
|
|
6159
6178
|
return new File();
|
6160
6179
|
}
|
6161
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
|
+
|
6162
6200
|
// ../ts-builders/src/PrimitiveType.ts
|
6163
6201
|
init_TypeBuilder();
|
6164
6202
|
var PrimitiveType = class extends TypeBuilder {
|
@@ -6273,15 +6311,6 @@ function genericParameter(name) {
|
|
6273
6311
|
function omit(type, keyType2) {
|
6274
6312
|
return namedType("Omit").addGenericArgument(type).addGenericArgument(keyType2);
|
6275
6313
|
}
|
6276
|
-
function promise(resultType) {
|
6277
|
-
return new NamedType("$Utils.JsPromise").addGenericArgument(resultType);
|
6278
|
-
}
|
6279
|
-
function prismaPromise(resultType) {
|
6280
|
-
return new NamedType("Prisma.PrismaPromise").addGenericArgument(resultType);
|
6281
|
-
}
|
6282
|
-
function optional(innerType) {
|
6283
|
-
return new NamedType("$Utils.Optional").addGenericArgument(innerType);
|
6284
|
-
}
|
6285
6314
|
|
6286
6315
|
// ../ts-builders/src/Import.ts
|
6287
6316
|
var NamespaceImport = class {
|
@@ -6332,11 +6361,19 @@ var NamedImport = class {
|
|
6332
6361
|
this.name = name;
|
6333
6362
|
}
|
6334
6363
|
alias;
|
6364
|
+
type = false;
|
6335
6365
|
as(alias) {
|
6336
6366
|
this.alias = alias;
|
6337
6367
|
return this;
|
6338
6368
|
}
|
6369
|
+
typeOnly() {
|
6370
|
+
this.type = true;
|
6371
|
+
return this;
|
6372
|
+
}
|
6339
6373
|
write(writer) {
|
6374
|
+
if (this.type) {
|
6375
|
+
writer.write("type ");
|
6376
|
+
}
|
6340
6377
|
writer.write(this.name);
|
6341
6378
|
if (this.alias) {
|
6342
6379
|
writer.write(" as ").write(this.alias);
|
@@ -6776,6 +6813,19 @@ var StringLiteralType = class extends TypeBuilder {
|
|
6776
6813
|
write(writer) {
|
6777
6814
|
writer.write(JSON.stringify(this.content));
|
6778
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
|
+
}
|
6779
6829
|
};
|
6780
6830
|
function stringLiteral(content) {
|
6781
6831
|
return new StringLiteralType(content);
|
@@ -8052,6 +8102,17 @@ function getModelActions(dmmf, name) {
|
|
8052
8102
|
return mappingKeys;
|
8053
8103
|
}
|
8054
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
|
+
|
8055
8116
|
// ../client-generator-js/src/TSClient/Model.ts
|
8056
8117
|
var Model = class {
|
8057
8118
|
constructor(model, context) {
|
@@ -10865,7 +10926,7 @@ function buildTypedSql({
|
|
10865
10926
|
}
|
10866
10927
|
|
10867
10928
|
// ../client-generator-js/src/generateClient.ts
|
10868
|
-
var debug2 =
|
10929
|
+
var debug2 = Debug("prisma:client:generateClient");
|
10869
10930
|
var DenylistError = class extends Error {
|
10870
10931
|
constructor(message) {
|
10871
10932
|
super(message);
|
@@ -11461,7 +11522,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
11461
11522
|
var import_engines_version = __toESM(require_engines_version());
|
11462
11523
|
|
11463
11524
|
// ../client-generator-js/package.json
|
11464
|
-
var version = "6.6.0-dev.
|
11525
|
+
var version = "6.6.0-dev.97";
|
11465
11526
|
|
11466
11527
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
11467
11528
|
var import_promises4 = __toESM(require("node:fs/promises"));
|
@@ -16384,7 +16445,7 @@ function init2(open, close) {
|
|
16384
16445
|
}
|
16385
16446
|
|
16386
16447
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
16387
|
-
var debug3 =
|
16448
|
+
var debug3 = Debug("prisma:generator");
|
16388
16449
|
async function resolvePrismaClient(baseDir) {
|
16389
16450
|
const prismaClientDir = await findPrismaClientDir(baseDir);
|
16390
16451
|
debug3("baseDir", baseDir);
|
@@ -16417,7 +16478,7 @@ async function getPackageCmd(cwd2, cmd, ...args) {
|
|
16417
16478
|
}
|
16418
16479
|
|
16419
16480
|
// ../client-generator-js/src/generator.ts
|
16420
|
-
var debug4 =
|
16481
|
+
var debug4 = Debug("prisma:client:generator");
|
16421
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`;
|
16422
16483
|
var PrismaClientJsGenerator = class {
|
16423
16484
|
name = "prisma-client-js";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/client",
|
3
|
-
"version": "6.6.0-dev.
|
3
|
+
"version": "6.6.0-dev.97",
|
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",
|