@prisma/client-generator-js 6.16.0-dev.28 → 6.16.0-dev.29
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/dist/index.js
CHANGED
|
@@ -6633,8 +6633,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
6633
6633
|
}
|
|
6634
6634
|
|
|
6635
6635
|
// src/utils/buildGetQueryCompilerWasmModule.ts
|
|
6636
|
-
function buildQueryCompilerWasmModule(
|
|
6637
|
-
if (
|
|
6636
|
+
function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
|
|
6637
|
+
if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
|
|
6638
6638
|
return `config.compilerWasm = {
|
|
6639
6639
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6640
6640
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -6645,7 +6645,7 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
6645
6645
|
}
|
|
6646
6646
|
}`;
|
|
6647
6647
|
}
|
|
6648
|
-
if (
|
|
6648
|
+
if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
|
|
6649
6649
|
return `config.compilerWasm = {
|
|
6650
6650
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6651
6651
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -8062,7 +8062,7 @@ const config = ${JSON.stringify(config, null, 2)}
|
|
|
8062
8062
|
${buildDirname(edge, relativeOutdir)}
|
|
8063
8063
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
8064
8064
|
${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
|
|
8065
|
-
${buildQueryCompilerWasmModule(wasm,
|
|
8065
|
+
${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
|
|
8066
8066
|
${buildInjectableEdgeEnv(edge, datasources)}
|
|
8067
8067
|
${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
8068
8068
|
${buildDebugInitialization(edge)}
|
|
@@ -8894,7 +8894,8 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
8894
8894
|
}
|
|
8895
8895
|
const schemaTargetPath = import_path3.default.join(outputDir, "schema.prisma");
|
|
8896
8896
|
await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
8897
|
-
|
|
8897
|
+
const runtimeNeedsWasmEngine = clientEngineType === import_internals10.ClientEngineType.Client || generator.previewFeatures.includes("driverAdapters") && copyEngine;
|
|
8898
|
+
if (runtimeNeedsWasmEngine && isWasmEngineSupported(provider) && !testMode) {
|
|
8898
8899
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
8899
8900
|
const filename = clientEngineType === import_internals10.ClientEngineType.Client ? "query_compiler_bg" : "query_engine_bg";
|
|
8900
8901
|
const wasmJsBundlePath = import_path3.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
@@ -9150,7 +9151,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
9150
9151
|
var import_ts_pattern = require("ts-pattern");
|
|
9151
9152
|
|
|
9152
9153
|
// package.json
|
|
9153
|
-
var version = "6.16.0-dev.
|
|
9154
|
+
var version = "6.16.0-dev.29";
|
|
9154
9155
|
|
|
9155
9156
|
// src/resolvePrismaClient.ts
|
|
9156
9157
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -6631,8 +6631,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
6631
6631
|
}
|
|
6632
6632
|
|
|
6633
6633
|
// src/utils/buildGetQueryCompilerWasmModule.ts
|
|
6634
|
-
function buildQueryCompilerWasmModule(
|
|
6635
|
-
if (
|
|
6634
|
+
function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
|
|
6635
|
+
if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
|
|
6636
6636
|
return `config.compilerWasm = {
|
|
6637
6637
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6638
6638
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -6643,7 +6643,7 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
6643
6643
|
}
|
|
6644
6644
|
}`;
|
|
6645
6645
|
}
|
|
6646
|
-
if (
|
|
6646
|
+
if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
|
|
6647
6647
|
return `config.compilerWasm = {
|
|
6648
6648
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6649
6649
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -8060,7 +8060,7 @@ const config = ${JSON.stringify(config, null, 2)}
|
|
|
8060
8060
|
${buildDirname(edge, relativeOutdir)}
|
|
8061
8061
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
8062
8062
|
${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
|
|
8063
|
-
${buildQueryCompilerWasmModule(wasm,
|
|
8063
|
+
${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
|
|
8064
8064
|
${buildInjectableEdgeEnv(edge, datasources)}
|
|
8065
8065
|
${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
8066
8066
|
${buildDebugInitialization(edge)}
|
|
@@ -8892,7 +8892,8 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
8892
8892
|
}
|
|
8893
8893
|
const schemaTargetPath = path3.join(outputDir, "schema.prisma");
|
|
8894
8894
|
await fs.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
8895
|
-
|
|
8895
|
+
const runtimeNeedsWasmEngine = clientEngineType === ClientEngineType3.Client || generator.previewFeatures.includes("driverAdapters") && copyEngine;
|
|
8896
|
+
if (runtimeNeedsWasmEngine && isWasmEngineSupported(provider) && !testMode) {
|
|
8896
8897
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
8897
8898
|
const filename = clientEngineType === ClientEngineType3.Client ? "query_compiler_bg" : "query_engine_bg";
|
|
8898
8899
|
const wasmJsBundlePath = path3.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
@@ -9148,7 +9149,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
9148
9149
|
import { match } from "ts-pattern";
|
|
9149
9150
|
|
|
9150
9151
|
// package.json
|
|
9151
|
-
var version = "6.16.0-dev.
|
|
9152
|
+
var version = "6.16.0-dev.29";
|
|
9152
9153
|
|
|
9153
9154
|
// src/resolvePrismaClient.ts
|
|
9154
9155
|
var import_execa = __toESM(require_execa());
|
|
@@ -3,4 +3,4 @@ import { TSClientOptions } from '../TSClient/TSClient';
|
|
|
3
3
|
* Builds the necessary glue code to load the query compiler wasm module.
|
|
4
4
|
* @returns
|
|
5
5
|
*/
|
|
6
|
-
export declare function buildQueryCompilerWasmModule(
|
|
6
|
+
export declare function buildQueryCompilerWasmModule(forceEdgeWasmLoader: boolean, runtimeNameJs: TSClientOptions['runtimeNameJs']): "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')\n const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)\n\n return new WebAssembly.Module(queryCompilerWasmFileBytes)\n }\n }" | "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const loader = (await import('#wasm-compiler-loader')).default\n const compiler = (await loader).default\n return compiler\n }\n}" | "config.compilerWasm = undefined";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "6.16.0-dev.
|
|
3
|
+
"version": "6.16.0-dev.29",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"package-up": "5.0.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/client-common": "6.16.0-dev.
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/fetch-engine": "6.16.0-dev.
|
|
40
|
-
"@prisma/generator": "6.16.0-dev.
|
|
41
|
-
"@prisma/get-platform": "6.16.0-dev.
|
|
42
|
-
"@prisma/internals": "6.16.0-dev.
|
|
43
|
-
"@prisma/ts-builders": "6.16.0-dev.
|
|
36
|
+
"@prisma/client-common": "6.16.0-dev.29",
|
|
37
|
+
"@prisma/debug": "6.16.0-dev.29",
|
|
38
|
+
"@prisma/dmmf": "6.16.0-dev.29",
|
|
39
|
+
"@prisma/fetch-engine": "6.16.0-dev.29",
|
|
40
|
+
"@prisma/generator": "6.16.0-dev.29",
|
|
41
|
+
"@prisma/get-platform": "6.16.0-dev.29",
|
|
42
|
+
"@prisma/internals": "6.16.0-dev.29",
|
|
43
|
+
"@prisma/ts-builders": "6.16.0-dev.29"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|