@prisma/client 6.3.0-dev.2 → 6.3.0-dev.20
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 +39 -23
- package/package.json +21 -21
- package/runtime/binary.js +196 -120
- package/runtime/edge-esm.js +16 -16
- package/runtime/edge.js +16 -16
- package/runtime/library.d.ts +31 -14
- package/runtime/library.js +64 -62
- package/runtime/query_engine_bg.mysql.js +2 -2
- package/runtime/query_engine_bg.mysql.wasm +0 -0
- package/runtime/query_engine_bg.postgresql.js +2 -2
- package/runtime/query_engine_bg.postgresql.wasm +0 -0
- package/runtime/query_engine_bg.sqlite.js +2 -2
- package/runtime/query_engine_bg.sqlite.wasm +0 -0
- package/runtime/react-native.d.ts +31 -14
- package/runtime/react-native.js +28 -28
- package/runtime/wasm.js +20 -19
- package/scripts/default-index.js +3 -3
package/generator-build/index.js
CHANGED
|
@@ -33,18 +33,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
36
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/package.json
|
|
37
37
|
var require_package = __commonJS({
|
|
38
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
38
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
39
39
|
module2.exports = {
|
|
40
40
|
name: "@prisma/engines-version",
|
|
41
|
-
version: "6.
|
|
41
|
+
version: "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
|
42
42
|
main: "index.js",
|
|
43
43
|
types: "index.d.ts",
|
|
44
44
|
license: "Apache-2.0",
|
|
45
45
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
|
46
46
|
prisma: {
|
|
47
|
-
enginesVersion: "
|
|
47
|
+
enginesVersion: "eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e"
|
|
48
48
|
},
|
|
49
49
|
repository: {
|
|
50
50
|
type: "git",
|
|
@@ -66,9 +66,9 @@ var require_package = __commonJS({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
69
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/index.js
|
|
70
70
|
var require_engines_version = __commonJS({
|
|
71
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
71
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/index.js"(exports2) {
|
|
72
72
|
"use strict";
|
|
73
73
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74
74
|
exports2.enginesVersion = void 0;
|
|
@@ -3946,7 +3946,7 @@ var require_package2 = __commonJS({
|
|
|
3946
3946
|
"package.json"(exports2, module2) {
|
|
3947
3947
|
module2.exports = {
|
|
3948
3948
|
name: "@prisma/client",
|
|
3949
|
-
version: "6.3.0-dev.
|
|
3949
|
+
version: "6.3.0-dev.20",
|
|
3950
3950
|
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.",
|
|
3951
3951
|
keywords: [
|
|
3952
3952
|
"ORM",
|
|
@@ -4145,7 +4145,7 @@ var require_package2 = __commonJS({
|
|
|
4145
4145
|
"@prisma/debug": "workspace:*",
|
|
4146
4146
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4147
4147
|
"@prisma/engines": "workspace:*",
|
|
4148
|
-
"@prisma/engines-version": "6.
|
|
4148
|
+
"@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
|
4149
4149
|
"@prisma/fetch-engine": "workspace:*",
|
|
4150
4150
|
"@prisma/generator-helper": "workspace:*",
|
|
4151
4151
|
"@prisma/get-platform": "workspace:*",
|
|
@@ -4154,7 +4154,7 @@ var require_package2 = __commonJS({
|
|
|
4154
4154
|
"@prisma/migrate": "workspace:*",
|
|
4155
4155
|
"@prisma/mini-proxy": "0.9.5",
|
|
4156
4156
|
"@prisma/pg-worker": "workspace:*",
|
|
4157
|
-
"@prisma/query-engine-wasm": "6.
|
|
4157
|
+
"@prisma/query-engine-wasm": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
|
4158
4158
|
"@snaplet/copycat": "0.17.3",
|
|
4159
4159
|
"@swc-node/register": "1.10.9",
|
|
4160
4160
|
"@swc/core": "1.10.1",
|
|
@@ -4173,7 +4173,7 @@ var require_package2 = __commonJS({
|
|
|
4173
4173
|
"decimal.js": "10.4.3",
|
|
4174
4174
|
"detect-runtime": "1.0.4",
|
|
4175
4175
|
"env-paths": "2.2.1",
|
|
4176
|
-
esbuild: "0.24.
|
|
4176
|
+
esbuild: "0.24.2",
|
|
4177
4177
|
execa: "5.1.1",
|
|
4178
4178
|
"expect-type": "0.19.0",
|
|
4179
4179
|
"flat-map-polyfill": "0.3.8",
|
|
@@ -4211,7 +4211,7 @@ var require_package2 = __commonJS({
|
|
|
4211
4211
|
"ts-pattern": "5.6.0",
|
|
4212
4212
|
tsd: "0.31.2",
|
|
4213
4213
|
typescript: "5.4.5",
|
|
4214
|
-
undici: "
|
|
4214
|
+
undici: "7.2.1",
|
|
4215
4215
|
wrangler: "3.91.0",
|
|
4216
4216
|
zx: "7.2.3"
|
|
4217
4217
|
},
|
|
@@ -5283,6 +5283,8 @@ function getClientEngineType(generatorConfig) {
|
|
|
5283
5283
|
return "library" /* Library */;
|
|
5284
5284
|
} else if (generatorConfig?.config.engineType === "binary" /* Binary */) {
|
|
5285
5285
|
return "binary" /* Binary */;
|
|
5286
|
+
} else if (generatorConfig?.config.engineType === "client" /* Client */) {
|
|
5287
|
+
return "client" /* Client */;
|
|
5286
5288
|
} else {
|
|
5287
5289
|
return DEFAULT_CLIENT_ENGINE_TYPE;
|
|
5288
5290
|
}
|
|
@@ -5293,6 +5295,8 @@ function getEngineTypeFromEnvVar() {
|
|
|
5293
5295
|
return "library" /* Library */;
|
|
5294
5296
|
} else if (engineType === "binary" /* Binary */) {
|
|
5295
5297
|
return "binary" /* Binary */;
|
|
5298
|
+
} else if (engineType === "client" /* Client */) {
|
|
5299
|
+
return "client" /* Client */;
|
|
5296
5300
|
} else {
|
|
5297
5301
|
return void 0;
|
|
5298
5302
|
}
|
|
@@ -7261,7 +7265,8 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
7261
7265
|
`,
|
|
7262
7266
|
fields: {
|
|
7263
7267
|
data: (singular, plural) => `The data used to update ${plural}.`,
|
|
7264
|
-
where: (singular, plural) => `Filter which ${plural} to update
|
|
7268
|
+
where: (singular, plural) => `Filter which ${plural} to update`,
|
|
7269
|
+
limit: (singular, plural) => `Limit how many ${plural} to update.`
|
|
7265
7270
|
}
|
|
7266
7271
|
},
|
|
7267
7272
|
updateManyAndReturn: {
|
|
@@ -7295,7 +7300,8 @@ ${undefinedNote}
|
|
|
7295
7300
|
},
|
|
7296
7301
|
fields: {
|
|
7297
7302
|
data: (singular, plural) => `The data used to update ${plural}.`,
|
|
7298
|
-
where: (singular, plural) => `Filter which ${plural} to update
|
|
7303
|
+
where: (singular, plural) => `Filter which ${plural} to update`,
|
|
7304
|
+
limit: (singular, plural) => `Limit how many ${plural} to update.`
|
|
7299
7305
|
}
|
|
7300
7306
|
},
|
|
7301
7307
|
deleteMany: {
|
|
@@ -7310,7 +7316,8 @@ const { count } = await ${ctx.method}({
|
|
|
7310
7316
|
})
|
|
7311
7317
|
`,
|
|
7312
7318
|
fields: {
|
|
7313
|
-
where: (singular, plural) => `Filter which ${plural} to delete
|
|
7319
|
+
where: (singular, plural) => `Filter which ${plural} to delete`,
|
|
7320
|
+
limit: (singular, plural) => `Limit how many ${plural} to delete.`
|
|
7314
7321
|
}
|
|
7315
7322
|
},
|
|
7316
7323
|
aggregateRaw: {
|
|
@@ -8751,7 +8758,8 @@ const {
|
|
|
8751
8758
|
warnOnce,
|
|
8752
8759
|
defineDmmfProperty,
|
|
8753
8760
|
Public,
|
|
8754
|
-
getRuntime
|
|
8761
|
+
getRuntime,
|
|
8762
|
+
createParam,
|
|
8755
8763
|
} = require('${runtimeBase}/${runtimeNameJs}.js')
|
|
8756
8764
|
`}
|
|
8757
8765
|
|
|
@@ -8869,7 +8877,7 @@ export import Decimal = runtime.Decimal
|
|
|
8869
8877
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
8870
8878
|
|
|
8871
8879
|
/**
|
|
8872
|
-
* Metrics
|
|
8880
|
+
* Metrics
|
|
8873
8881
|
*/
|
|
8874
8882
|
export type Metrics = runtime.Metrics
|
|
8875
8883
|
export type Metric<T> = runtime.Metric<T>
|
|
@@ -8894,7 +8902,7 @@ export type PrismaVersion = {
|
|
|
8894
8902
|
client: string
|
|
8895
8903
|
}
|
|
8896
8904
|
|
|
8897
|
-
export const prismaVersion: PrismaVersion
|
|
8905
|
+
export const prismaVersion: PrismaVersion
|
|
8898
8906
|
|
|
8899
8907
|
/**
|
|
8900
8908
|
* Utility Types
|
|
@@ -8910,7 +8918,7 @@ export import InputJsonValue = runtime.InputJsonValue
|
|
|
8910
8918
|
|
|
8911
8919
|
/**
|
|
8912
8920
|
* Types of the values used to represent different kinds of \`null\` values when working with JSON fields.
|
|
8913
|
-
*
|
|
8921
|
+
*
|
|
8914
8922
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8915
8923
|
*/
|
|
8916
8924
|
namespace NullTypes {
|
|
@@ -8923,21 +8931,21 @@ ${buildNullClass("AnyNull")}
|
|
|
8923
8931
|
|
|
8924
8932
|
/**
|
|
8925
8933
|
* Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
|
|
8926
|
-
*
|
|
8934
|
+
*
|
|
8927
8935
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8928
8936
|
*/
|
|
8929
8937
|
export const DbNull: NullTypes.DbNull
|
|
8930
8938
|
|
|
8931
8939
|
/**
|
|
8932
8940
|
* Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
|
|
8933
|
-
*
|
|
8941
|
+
*
|
|
8934
8942
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8935
8943
|
*/
|
|
8936
8944
|
export const JsonNull: NullTypes.JsonNull
|
|
8937
8945
|
|
|
8938
8946
|
/**
|
|
8939
8947
|
* Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
|
|
8940
|
-
*
|
|
8948
|
+
*
|
|
8941
8949
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8942
8950
|
*/
|
|
8943
8951
|
export const AnyNull: NullTypes.AnyNull
|
|
@@ -9242,9 +9250,9 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
|
|
|
9242
9250
|
function buildNullClass(name) {
|
|
9243
9251
|
const source = `/**
|
|
9244
9252
|
* Type of \`Prisma.${name}\`.
|
|
9245
|
-
*
|
|
9253
|
+
*
|
|
9246
9254
|
* You cannot use other instances of this class. Please use the \`Prisma.${name}\` value.
|
|
9247
|
-
*
|
|
9255
|
+
*
|
|
9248
9256
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
9249
9257
|
*/
|
|
9250
9258
|
class ${name} {
|
|
@@ -11011,6 +11019,14 @@ function getNodeRuntimeName(engineType) {
|
|
|
11011
11019
|
if (engineType === "library" /* Library */) {
|
|
11012
11020
|
return "library";
|
|
11013
11021
|
}
|
|
11022
|
+
if (engineType === "client" /* Client */) {
|
|
11023
|
+
if (!process.env.PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE) {
|
|
11024
|
+
throw new Error(
|
|
11025
|
+
'Unstable Feature: engineType="client" is in a proof of concept phase and not ready to be used publicly yet!'
|
|
11026
|
+
);
|
|
11027
|
+
}
|
|
11028
|
+
return "library";
|
|
11029
|
+
}
|
|
11014
11030
|
assertNever(engineType, "Unknown engine type");
|
|
11015
11031
|
}
|
|
11016
11032
|
async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.3.0-dev.
|
|
3
|
+
"version": "6.3.0-dev.20",
|
|
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",
|
|
@@ -175,9 +175,9 @@
|
|
|
175
175
|
"@opentelemetry/sdk-trace-base": "1.29.0",
|
|
176
176
|
"@opentelemetry/semantic-conventions": "1.28.0",
|
|
177
177
|
"@planetscale/database": "1.18.0",
|
|
178
|
-
"@prisma/engines-version": "6.
|
|
178
|
+
"@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
|
179
179
|
"@prisma/mini-proxy": "0.9.5",
|
|
180
|
-
"@prisma/query-engine-wasm": "6.
|
|
180
|
+
"@prisma/query-engine-wasm": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
|
181
181
|
"@snaplet/copycat": "0.17.3",
|
|
182
182
|
"@swc-node/register": "1.10.9",
|
|
183
183
|
"@swc/core": "1.10.1",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"decimal.js": "10.4.3",
|
|
197
197
|
"detect-runtime": "1.0.4",
|
|
198
198
|
"env-paths": "2.2.1",
|
|
199
|
-
"esbuild": "0.24.
|
|
199
|
+
"esbuild": "0.24.2",
|
|
200
200
|
"execa": "5.1.1",
|
|
201
201
|
"expect-type": "0.19.0",
|
|
202
202
|
"flat-map-polyfill": "0.3.8",
|
|
@@ -234,25 +234,25 @@
|
|
|
234
234
|
"ts-pattern": "5.6.0",
|
|
235
235
|
"tsd": "0.31.2",
|
|
236
236
|
"typescript": "5.4.5",
|
|
237
|
-
"undici": "
|
|
237
|
+
"undici": "7.2.1",
|
|
238
238
|
"wrangler": "3.91.0",
|
|
239
239
|
"zx": "7.2.3",
|
|
240
|
-
"@prisma/adapter-d1": "6.3.0-dev.
|
|
241
|
-
"@prisma/adapter-
|
|
242
|
-
"@prisma/adapter-
|
|
243
|
-
"@prisma/adapter-
|
|
244
|
-
"@prisma/adapter-pg-worker": "6.3.0-dev.
|
|
245
|
-
"@prisma/adapter-
|
|
246
|
-
"@prisma/debug": "6.3.0-dev.
|
|
247
|
-
"@prisma/
|
|
248
|
-
"@prisma/
|
|
249
|
-
"@prisma/
|
|
250
|
-
"@prisma/
|
|
251
|
-
"@prisma/
|
|
252
|
-
"@prisma/instrumentation": "6.3.0-dev.
|
|
253
|
-
"@prisma/
|
|
254
|
-
"@prisma/
|
|
255
|
-
"@prisma/
|
|
240
|
+
"@prisma/adapter-d1": "6.3.0-dev.20",
|
|
241
|
+
"@prisma/adapter-libsql": "6.3.0-dev.20",
|
|
242
|
+
"@prisma/adapter-pg": "6.3.0-dev.20",
|
|
243
|
+
"@prisma/adapter-neon": "6.3.0-dev.20",
|
|
244
|
+
"@prisma/adapter-pg-worker": "6.3.0-dev.20",
|
|
245
|
+
"@prisma/adapter-planetscale": "6.3.0-dev.20",
|
|
246
|
+
"@prisma/debug": "6.3.0-dev.20",
|
|
247
|
+
"@prisma/engines": "6.3.0-dev.20",
|
|
248
|
+
"@prisma/fetch-engine": "6.3.0-dev.20",
|
|
249
|
+
"@prisma/driver-adapter-utils": "6.3.0-dev.20",
|
|
250
|
+
"@prisma/generator-helper": "6.3.0-dev.20",
|
|
251
|
+
"@prisma/get-platform": "6.3.0-dev.20",
|
|
252
|
+
"@prisma/instrumentation": "6.3.0-dev.20",
|
|
253
|
+
"@prisma/internals": "6.3.0-dev.20",
|
|
254
|
+
"@prisma/migrate": "6.3.0-dev.20",
|
|
255
|
+
"@prisma/pg-worker": "6.3.0-dev.20"
|
|
256
256
|
},
|
|
257
257
|
"peerDependencies": {
|
|
258
258
|
"prisma": "*"
|