@prisma/client 6.3.0-dev.3 → 6.3.0-dev.30
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 +89 -37
- package/package.json +30 -25
- package/runtime/binary.js +196 -120
- package/runtime/client.d.ts +3447 -0
- package/runtime/client.js +103 -0
- package/runtime/edge-esm.js +16 -16
- package/runtime/edge.js +16 -16
- package/runtime/library.d.ts +87 -35
- package/runtime/library.js +53 -53
- package/runtime/query_compiler_bg.mysql.js +1 -0
- package/runtime/query_compiler_bg.mysql.wasm +0 -0
- package/runtime/query_compiler_bg.postgresql.js +1 -0
- package/runtime/query_compiler_bg.postgresql.wasm +0 -0
- package/runtime/query_compiler_bg.sqlite.js +1 -0
- package/runtime/query_compiler_bg.sqlite.wasm +0 -0
- 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 +87 -35
- package/runtime/react-native.js +28 -28
- package/runtime/wasm.js +17 -17
- 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.3.0-
|
|
36
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/package.json
|
|
37
37
|
var require_package = __commonJS({
|
|
38
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.3.0-
|
|
38
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
39
39
|
module2.exports = {
|
|
40
40
|
name: "@prisma/engines-version",
|
|
41
|
-
version: "6.3.0-
|
|
41
|
+
version: "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
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: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
|
|
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.3.0-
|
|
69
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/index.js
|
|
70
70
|
var require_engines_version = __commonJS({
|
|
71
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.3.0-
|
|
71
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/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.30",
|
|
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.3.0-
|
|
4148
|
+
"@prisma/engines-version": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
4149
4149
|
"@prisma/fetch-engine": "workspace:*",
|
|
4150
4150
|
"@prisma/generator-helper": "workspace:*",
|
|
4151
4151
|
"@prisma/get-platform": "workspace:*",
|
|
@@ -4154,10 +4154,11 @@ 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-
|
|
4157
|
+
"@prisma/query-compiler-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
4158
|
+
"@prisma/query-engine-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
4158
4159
|
"@snaplet/copycat": "0.17.3",
|
|
4159
4160
|
"@swc-node/register": "1.10.9",
|
|
4160
|
-
"@swc/core": "1.10.
|
|
4161
|
+
"@swc/core": "1.10.9",
|
|
4161
4162
|
"@swc/jest": "0.2.37",
|
|
4162
4163
|
"@timsuchanek/copy": "1.4.5",
|
|
4163
4164
|
"@types/debug": "4.1.12",
|
|
@@ -4173,7 +4174,7 @@ var require_package2 = __commonJS({
|
|
|
4173
4174
|
"decimal.js": "10.4.3",
|
|
4174
4175
|
"detect-runtime": "1.0.4",
|
|
4175
4176
|
"env-paths": "2.2.1",
|
|
4176
|
-
esbuild: "0.24.
|
|
4177
|
+
esbuild: "0.24.2",
|
|
4177
4178
|
execa: "5.1.1",
|
|
4178
4179
|
"expect-type": "0.19.0",
|
|
4179
4180
|
"flat-map-polyfill": "0.3.8",
|
|
@@ -4198,7 +4199,7 @@ var require_package2 = __commonJS({
|
|
|
4198
4199
|
pg: "8.11.5",
|
|
4199
4200
|
"pkg-up": "3.1.0",
|
|
4200
4201
|
pluralize: "8.0.0",
|
|
4201
|
-
resolve: "1.22.
|
|
4202
|
+
resolve: "1.22.10",
|
|
4202
4203
|
rimraf: "3.0.2",
|
|
4203
4204
|
"simple-statistics": "7.8.7",
|
|
4204
4205
|
"sort-keys": "4.2.0",
|
|
@@ -4208,19 +4209,23 @@ var require_package2 = __commonJS({
|
|
|
4208
4209
|
"strip-ansi": "6.0.1",
|
|
4209
4210
|
"strip-indent": "3.0.0",
|
|
4210
4211
|
"ts-node": "10.9.2",
|
|
4211
|
-
"ts-pattern": "5.6.
|
|
4212
|
+
"ts-pattern": "5.6.2",
|
|
4212
4213
|
tsd: "0.31.2",
|
|
4213
4214
|
typescript: "5.4.5",
|
|
4214
|
-
undici: "
|
|
4215
|
+
undici: "7.2.3",
|
|
4215
4216
|
wrangler: "3.91.0",
|
|
4216
4217
|
zx: "7.2.3"
|
|
4217
4218
|
},
|
|
4218
4219
|
peerDependencies: {
|
|
4219
|
-
prisma: "*"
|
|
4220
|
+
prisma: "*",
|
|
4221
|
+
typescript: ">=5.1.0"
|
|
4220
4222
|
},
|
|
4221
4223
|
peerDependenciesMeta: {
|
|
4222
4224
|
prisma: {
|
|
4223
4225
|
optional: true
|
|
4226
|
+
},
|
|
4227
|
+
typescript: {
|
|
4228
|
+
optional: true
|
|
4224
4229
|
}
|
|
4225
4230
|
},
|
|
4226
4231
|
sideEffects: false
|
|
@@ -5283,6 +5288,8 @@ function getClientEngineType(generatorConfig) {
|
|
|
5283
5288
|
return "library" /* Library */;
|
|
5284
5289
|
} else if (generatorConfig?.config.engineType === "binary" /* Binary */) {
|
|
5285
5290
|
return "binary" /* Binary */;
|
|
5291
|
+
} else if (generatorConfig?.config.engineType === "client" /* Client */) {
|
|
5292
|
+
return "client" /* Client */;
|
|
5286
5293
|
} else {
|
|
5287
5294
|
return DEFAULT_CLIENT_ENGINE_TYPE;
|
|
5288
5295
|
}
|
|
@@ -5293,6 +5300,8 @@ function getEngineTypeFromEnvVar() {
|
|
|
5293
5300
|
return "library" /* Library */;
|
|
5294
5301
|
} else if (engineType === "binary" /* Binary */) {
|
|
5295
5302
|
return "binary" /* Binary */;
|
|
5303
|
+
} else if (engineType === "client" /* Client */) {
|
|
5304
|
+
return "client" /* Client */;
|
|
5296
5305
|
} else {
|
|
5297
5306
|
return void 0;
|
|
5298
5307
|
}
|
|
@@ -7261,7 +7270,8 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
7261
7270
|
`,
|
|
7262
7271
|
fields: {
|
|
7263
7272
|
data: (singular, plural) => `The data used to update ${plural}.`,
|
|
7264
|
-
where: (singular, plural) => `Filter which ${plural} to update
|
|
7273
|
+
where: (singular, plural) => `Filter which ${plural} to update`,
|
|
7274
|
+
limit: (singular, plural) => `Limit how many ${plural} to update.`
|
|
7265
7275
|
}
|
|
7266
7276
|
},
|
|
7267
7277
|
updateManyAndReturn: {
|
|
@@ -7295,7 +7305,8 @@ ${undefinedNote}
|
|
|
7295
7305
|
},
|
|
7296
7306
|
fields: {
|
|
7297
7307
|
data: (singular, plural) => `The data used to update ${plural}.`,
|
|
7298
|
-
where: (singular, plural) => `Filter which ${plural} to update
|
|
7308
|
+
where: (singular, plural) => `Filter which ${plural} to update`,
|
|
7309
|
+
limit: (singular, plural) => `Limit how many ${plural} to update.`
|
|
7299
7310
|
}
|
|
7300
7311
|
},
|
|
7301
7312
|
deleteMany: {
|
|
@@ -7310,7 +7321,8 @@ const { count } = await ${ctx.method}({
|
|
|
7310
7321
|
})
|
|
7311
7322
|
`,
|
|
7312
7323
|
fields: {
|
|
7313
|
-
where: (singular, plural) => `Filter which ${plural} to delete
|
|
7324
|
+
where: (singular, plural) => `Filter which ${plural} to delete`,
|
|
7325
|
+
limit: (singular, plural) => `Limit how many ${plural} to delete.`
|
|
7314
7326
|
}
|
|
7315
7327
|
},
|
|
7316
7328
|
aggregateRaw: {
|
|
@@ -8579,6 +8591,32 @@ config.runtimeDataModel = JSON.parse(${JSON.stringify(datamodelString)})
|
|
|
8579
8591
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
8580
8592
|
}
|
|
8581
8593
|
|
|
8594
|
+
// src/generation/utils/buildGetQueryCompilerWasmModule.ts
|
|
8595
|
+
function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
8596
|
+
if (copyCompiler && runtimeNameJs === "client") {
|
|
8597
|
+
return `config.compilerWasm = {
|
|
8598
|
+
getRuntime: () => require('./query_compiler_bg.js'),
|
|
8599
|
+
getQueryCompilerWasmModule: async () => {
|
|
8600
|
+
const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
|
|
8601
|
+
const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
|
|
8602
|
+
|
|
8603
|
+
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
8604
|
+
}
|
|
8605
|
+
}`;
|
|
8606
|
+
}
|
|
8607
|
+
if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
|
|
8608
|
+
return `config.compilerWasm = {
|
|
8609
|
+
getRuntime: () => require('./query_compiler_bg.js'),
|
|
8610
|
+
getQueryCompilerWasmModule: async () => {
|
|
8611
|
+
const loader = (await import('#wasm-compiler-loader')).default
|
|
8612
|
+
const compiler = (await loader).default
|
|
8613
|
+
return compiler
|
|
8614
|
+
}
|
|
8615
|
+
}`;
|
|
8616
|
+
}
|
|
8617
|
+
return `config.compilerWasm = undefined`;
|
|
8618
|
+
}
|
|
8619
|
+
|
|
8582
8620
|
// src/generation/utils/buildGetQueryEngineWasmModule.ts
|
|
8583
8621
|
function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
8584
8622
|
if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
|
|
@@ -8751,7 +8789,8 @@ const {
|
|
|
8751
8789
|
warnOnce,
|
|
8752
8790
|
defineDmmfProperty,
|
|
8753
8791
|
Public,
|
|
8754
|
-
getRuntime
|
|
8792
|
+
getRuntime,
|
|
8793
|
+
createParam,
|
|
8755
8794
|
} = require('${runtimeBase}/${runtimeNameJs}.js')
|
|
8756
8795
|
`}
|
|
8757
8796
|
|
|
@@ -8869,7 +8908,7 @@ export import Decimal = runtime.Decimal
|
|
|
8869
8908
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
8870
8909
|
|
|
8871
8910
|
/**
|
|
8872
|
-
* Metrics
|
|
8911
|
+
* Metrics
|
|
8873
8912
|
*/
|
|
8874
8913
|
export type Metrics = runtime.Metrics
|
|
8875
8914
|
export type Metric<T> = runtime.Metric<T>
|
|
@@ -8894,7 +8933,7 @@ export type PrismaVersion = {
|
|
|
8894
8933
|
client: string
|
|
8895
8934
|
}
|
|
8896
8935
|
|
|
8897
|
-
export const prismaVersion: PrismaVersion
|
|
8936
|
+
export const prismaVersion: PrismaVersion
|
|
8898
8937
|
|
|
8899
8938
|
/**
|
|
8900
8939
|
* Utility Types
|
|
@@ -8910,7 +8949,7 @@ export import InputJsonValue = runtime.InputJsonValue
|
|
|
8910
8949
|
|
|
8911
8950
|
/**
|
|
8912
8951
|
* Types of the values used to represent different kinds of \`null\` values when working with JSON fields.
|
|
8913
|
-
*
|
|
8952
|
+
*
|
|
8914
8953
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8915
8954
|
*/
|
|
8916
8955
|
namespace NullTypes {
|
|
@@ -8923,21 +8962,21 @@ ${buildNullClass("AnyNull")}
|
|
|
8923
8962
|
|
|
8924
8963
|
/**
|
|
8925
8964
|
* Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
|
|
8926
|
-
*
|
|
8965
|
+
*
|
|
8927
8966
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8928
8967
|
*/
|
|
8929
8968
|
export const DbNull: NullTypes.DbNull
|
|
8930
8969
|
|
|
8931
8970
|
/**
|
|
8932
8971
|
* Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
|
|
8933
|
-
*
|
|
8972
|
+
*
|
|
8934
8973
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8935
8974
|
*/
|
|
8936
8975
|
export const JsonNull: NullTypes.JsonNull
|
|
8937
8976
|
|
|
8938
8977
|
/**
|
|
8939
8978
|
* Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
|
|
8940
|
-
*
|
|
8979
|
+
*
|
|
8941
8980
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
8942
8981
|
*/
|
|
8943
8982
|
export const AnyNull: NullTypes.AnyNull
|
|
@@ -9242,9 +9281,9 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
|
|
|
9242
9281
|
function buildNullClass(name) {
|
|
9243
9282
|
const source = `/**
|
|
9244
9283
|
* Type of \`Prisma.${name}\`.
|
|
9245
|
-
*
|
|
9284
|
+
*
|
|
9246
9285
|
* You cannot use other instances of this class. Please use the \`Prisma.${name}\` value.
|
|
9247
|
-
*
|
|
9286
|
+
*
|
|
9248
9287
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
9249
9288
|
*/
|
|
9250
9289
|
class ${name} {
|
|
@@ -9910,7 +9949,7 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
|
|
|
9910
9949
|
timeout ?= 5000
|
|
9911
9950
|
`)
|
|
9912
9951
|
);
|
|
9913
|
-
if (
|
|
9952
|
+
if (["library.js", "client.js"].includes(this.runtimeNameTs) && this.context.isPreviewFeatureOn("driverAdapters")) {
|
|
9914
9953
|
clientOptions.add(
|
|
9915
9954
|
property("adapter", unionType([namedType("runtime.DriverAdapter"), namedType("null")])).optional().setDocComment(
|
|
9916
9955
|
docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
|
|
@@ -10013,6 +10052,7 @@ const config = ${JSON.stringify(config, null, 2)}
|
|
|
10013
10052
|
${buildDirname(edge, relativeOutdir)}
|
|
10014
10053
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
10015
10054
|
${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
|
|
10055
|
+
${buildQueryCompilerWasmModule(wasm, copyEngine, runtimeNameJs)}
|
|
10016
10056
|
${buildInjectableEdgeEnv(edge, datasources)}
|
|
10017
10057
|
${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
10018
10058
|
${buildDebugInitialization(edge)}
|
|
@@ -10603,14 +10643,20 @@ async function buildClient({
|
|
|
10603
10643
|
}
|
|
10604
10644
|
const usesWasmRuntime = generator.previewFeatures.includes("driverAdapters");
|
|
10605
10645
|
if (usesWasmRuntime) {
|
|
10646
|
+
const usesClientEngine = clientEngineType === "client" /* Client */;
|
|
10606
10647
|
fileMap["default.js"] = JS(trampolineTsClient);
|
|
10607
10648
|
fileMap["default.d.ts"] = TS(trampolineTsClient);
|
|
10608
|
-
|
|
10609
|
-
|
|
10649
|
+
if (usesClientEngine) {
|
|
10650
|
+
fileMap["wasm-worker-loader.mjs"] = `export default import('./query_compiler_bg.wasm')`;
|
|
10651
|
+
fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_compiler_bg.wasm?module')`;
|
|
10652
|
+
} else {
|
|
10653
|
+
fileMap["wasm-worker-loader.mjs"] = `export default import('./query_engine_bg.wasm')`;
|
|
10654
|
+
fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_engine_bg.wasm?module')`;
|
|
10655
|
+
}
|
|
10610
10656
|
pkgJson["browser"] = "default.js";
|
|
10611
10657
|
pkgJson["imports"] = {
|
|
10612
|
-
// when `import('#wasm-engine-loader')` is called, it will be resolved to the correct file
|
|
10613
|
-
"#wasm-engine-loader": {
|
|
10658
|
+
// when `import('#wasm-engine-loader')` or `import('#wasm-compiler-loader')` is called, it will be resolved to the correct file
|
|
10659
|
+
[usesClientEngine ? "#wasm-compiler-loader" : "#wasm-engine-loader"]: {
|
|
10614
10660
|
// Keys reference: https://runtime-keys.proposal.wintercg.org/#keys
|
|
10615
10661
|
/**
|
|
10616
10662
|
* Vercel Edge Functions / Next.js Middlewares
|
|
@@ -10824,11 +10870,9 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
10824
10870
|
await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
10825
10871
|
if (generator.previewFeatures.includes("driverAdapters") && isWasmEngineSupported(provider) && copyEngine && !testMode) {
|
|
10826
10872
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
);
|
|
10831
|
-
await import_promises.default.copyFile(import_path5.default.join(runtimeDir, `query_engine_bg.${suffix}.js`), import_path5.default.join(outputDir, `query_engine_bg.js`));
|
|
10873
|
+
const filename = clientEngineType === "client" /* Client */ ? "query_compiler_bg" : "query_engine_bg";
|
|
10874
|
+
await import_promises.default.copyFile(import_path5.default.join(runtimeDir, `${filename}.${suffix}.wasm`), import_path5.default.join(outputDir, `${filename}.wasm`));
|
|
10875
|
+
await import_promises.default.copyFile(import_path5.default.join(runtimeDir, `${filename}.${suffix}.js`), import_path5.default.join(outputDir, `${filename}.js`));
|
|
10832
10876
|
}
|
|
10833
10877
|
try {
|
|
10834
10878
|
const prismaCache = (0, import_env_paths.default)("prisma").cache;
|
|
@@ -11011,6 +11055,14 @@ function getNodeRuntimeName(engineType) {
|
|
|
11011
11055
|
if (engineType === "library" /* Library */) {
|
|
11012
11056
|
return "library";
|
|
11013
11057
|
}
|
|
11058
|
+
if (engineType === "client" /* Client */) {
|
|
11059
|
+
if (!process.env.PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE) {
|
|
11060
|
+
throw new Error(
|
|
11061
|
+
'Unstable Feature: engineType="client" is in a proof of concept phase and not ready to be used publicly yet!'
|
|
11062
|
+
);
|
|
11063
|
+
}
|
|
11064
|
+
return "client";
|
|
11065
|
+
}
|
|
11014
11066
|
assertNever(engineType, "Unknown engine type");
|
|
11015
11067
|
}
|
|
11016
11068
|
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.30",
|
|
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,12 +175,13 @@
|
|
|
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.3.0-
|
|
178
|
+
"@prisma/engines-version": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
179
179
|
"@prisma/mini-proxy": "0.9.5",
|
|
180
|
-
"@prisma/query-
|
|
180
|
+
"@prisma/query-compiler-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
181
|
+
"@prisma/query-engine-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
|
|
181
182
|
"@snaplet/copycat": "0.17.3",
|
|
182
183
|
"@swc-node/register": "1.10.9",
|
|
183
|
-
"@swc/core": "1.10.
|
|
184
|
+
"@swc/core": "1.10.9",
|
|
184
185
|
"@swc/jest": "0.2.37",
|
|
185
186
|
"@timsuchanek/copy": "1.4.5",
|
|
186
187
|
"@types/debug": "4.1.12",
|
|
@@ -196,7 +197,7 @@
|
|
|
196
197
|
"decimal.js": "10.4.3",
|
|
197
198
|
"detect-runtime": "1.0.4",
|
|
198
199
|
"env-paths": "2.2.1",
|
|
199
|
-
"esbuild": "0.24.
|
|
200
|
+
"esbuild": "0.24.2",
|
|
200
201
|
"execa": "5.1.1",
|
|
201
202
|
"expect-type": "0.19.0",
|
|
202
203
|
"flat-map-polyfill": "0.3.8",
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
"pg": "8.11.5",
|
|
222
223
|
"pkg-up": "3.1.0",
|
|
223
224
|
"pluralize": "8.0.0",
|
|
224
|
-
"resolve": "1.22.
|
|
225
|
+
"resolve": "1.22.10",
|
|
225
226
|
"rimraf": "3.0.2",
|
|
226
227
|
"simple-statistics": "7.8.7",
|
|
227
228
|
"sort-keys": "4.2.0",
|
|
@@ -231,35 +232,39 @@
|
|
|
231
232
|
"strip-ansi": "6.0.1",
|
|
232
233
|
"strip-indent": "3.0.0",
|
|
233
234
|
"ts-node": "10.9.2",
|
|
234
|
-
"ts-pattern": "5.6.
|
|
235
|
+
"ts-pattern": "5.6.2",
|
|
235
236
|
"tsd": "0.31.2",
|
|
236
237
|
"typescript": "5.4.5",
|
|
237
|
-
"undici": "
|
|
238
|
+
"undici": "7.2.3",
|
|
238
239
|
"wrangler": "3.91.0",
|
|
239
240
|
"zx": "7.2.3",
|
|
240
|
-
"@prisma/adapter-
|
|
241
|
-
"@prisma/adapter-
|
|
242
|
-
"@prisma/adapter-
|
|
243
|
-
"@prisma/adapter-pg": "6.3.0-dev.
|
|
244
|
-
"@prisma/adapter-
|
|
245
|
-
"@prisma/adapter-
|
|
246
|
-
"@prisma/
|
|
247
|
-
"@prisma/
|
|
248
|
-
"@prisma/
|
|
249
|
-
"@prisma/
|
|
250
|
-
"@prisma/
|
|
251
|
-
"@prisma/get-platform": "6.3.0-dev.
|
|
252
|
-
"@prisma/
|
|
253
|
-
"@prisma/instrumentation": "6.3.0-dev.
|
|
254
|
-
"@prisma/
|
|
255
|
-
"@prisma/pg-worker": "6.3.0-dev.
|
|
241
|
+
"@prisma/adapter-d1": "6.3.0-dev.30",
|
|
242
|
+
"@prisma/adapter-libsql": "6.3.0-dev.30",
|
|
243
|
+
"@prisma/adapter-neon": "6.3.0-dev.30",
|
|
244
|
+
"@prisma/adapter-pg": "6.3.0-dev.30",
|
|
245
|
+
"@prisma/adapter-planetscale": "6.3.0-dev.30",
|
|
246
|
+
"@prisma/adapter-pg-worker": "6.3.0-dev.30",
|
|
247
|
+
"@prisma/driver-adapter-utils": "6.3.0-dev.30",
|
|
248
|
+
"@prisma/debug": "6.3.0-dev.30",
|
|
249
|
+
"@prisma/engines": "6.3.0-dev.30",
|
|
250
|
+
"@prisma/fetch-engine": "6.3.0-dev.30",
|
|
251
|
+
"@prisma/generator-helper": "6.3.0-dev.30",
|
|
252
|
+
"@prisma/get-platform": "6.3.0-dev.30",
|
|
253
|
+
"@prisma/migrate": "6.3.0-dev.30",
|
|
254
|
+
"@prisma/instrumentation": "6.3.0-dev.30",
|
|
255
|
+
"@prisma/internals": "6.3.0-dev.30",
|
|
256
|
+
"@prisma/pg-worker": "6.3.0-dev.30"
|
|
256
257
|
},
|
|
257
258
|
"peerDependencies": {
|
|
258
|
-
"prisma": "*"
|
|
259
|
+
"prisma": "*",
|
|
260
|
+
"typescript": ">=5.1.0"
|
|
259
261
|
},
|
|
260
262
|
"peerDependenciesMeta": {
|
|
261
263
|
"prisma": {
|
|
262
264
|
"optional": true
|
|
265
|
+
},
|
|
266
|
+
"typescript": {
|
|
267
|
+
"optional": true
|
|
263
268
|
}
|
|
264
269
|
},
|
|
265
270
|
"sideEffects": false,
|