@prisma/client-generator-js 6.16.0-dev.3 → 6.16.0-dev.31
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 +20 -20
- package/dist/index.mjs +20 -20
- package/dist/utils/buildGetQueryCompilerWasmModule.d.ts +1 -1
- package/package.json +12 -13
package/dist/index.js
CHANGED
|
@@ -4243,8 +4243,8 @@ var bgCyan = init(46, 49);
|
|
|
4243
4243
|
var bgWhite = init(47, 49);
|
|
4244
4244
|
|
|
4245
4245
|
// src/generateClient.ts
|
|
4246
|
+
var import_package_up = require("package-up");
|
|
4246
4247
|
var import_path3 = __toESM(require("path"));
|
|
4247
|
-
var import_pkg_up = __toESM(require("pkg-up"));
|
|
4248
4248
|
|
|
4249
4249
|
// ../client/package.json
|
|
4250
4250
|
var package_default = {
|
|
@@ -4458,15 +4458,16 @@ var package_default = {
|
|
|
4458
4458
|
"sql.mjs"
|
|
4459
4459
|
],
|
|
4460
4460
|
devDependencies: {
|
|
4461
|
-
"@cloudflare/workers-types": "4.
|
|
4461
|
+
"@cloudflare/workers-types": "^4.20250408.0",
|
|
4462
4462
|
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
4463
4463
|
"@faker-js/faker": "9.6.0",
|
|
4464
4464
|
"@fast-check/jest": "2.0.3",
|
|
4465
|
+
"@hono/node-server": "1.19.0",
|
|
4465
4466
|
"@inquirer/prompts": "7.3.3",
|
|
4466
4467
|
"@jest/create-cache-key-function": "29.7.0",
|
|
4467
4468
|
"@jest/globals": "29.7.0",
|
|
4468
4469
|
"@jest/test-sequencer": "29.7.0",
|
|
4469
|
-
"@libsql/client": "0.8.
|
|
4470
|
+
"@libsql/client": "0.8.1",
|
|
4470
4471
|
"@neondatabase/serverless": "0.10.2",
|
|
4471
4472
|
"@opentelemetry/api": "1.9.0",
|
|
4472
4473
|
"@opentelemetry/context-async-hooks": "2.0.0",
|
|
@@ -4492,7 +4493,7 @@ var package_default = {
|
|
|
4492
4493
|
"@prisma/dmmf": "workspace:*",
|
|
4493
4494
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4494
4495
|
"@prisma/engines": "workspace:*",
|
|
4495
|
-
"@prisma/engines-version": "6.16.0-
|
|
4496
|
+
"@prisma/engines-version": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
4496
4497
|
"@prisma/fetch-engine": "workspace:*",
|
|
4497
4498
|
"@prisma/generator": "workspace:*",
|
|
4498
4499
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -4501,8 +4502,9 @@ var package_default = {
|
|
|
4501
4502
|
"@prisma/internals": "workspace:*",
|
|
4502
4503
|
"@prisma/migrate": "workspace:*",
|
|
4503
4504
|
"@prisma/mini-proxy": "0.9.5",
|
|
4504
|
-
"@prisma/query-compiler-wasm": "6.16.0-
|
|
4505
|
-
"@prisma/query-engine-wasm": "6.16.0-
|
|
4505
|
+
"@prisma/query-compiler-wasm": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
4506
|
+
"@prisma/query-engine-wasm": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
4507
|
+
"@prisma/query-plan-executor": "workspace:*",
|
|
4506
4508
|
"@prisma/ts-builders": "workspace:*",
|
|
4507
4509
|
"@snaplet/copycat": "6.0.0",
|
|
4508
4510
|
"@swc-node/register": "1.10.9",
|
|
@@ -4520,7 +4522,6 @@ var package_default = {
|
|
|
4520
4522
|
benchmark: "2.1.4",
|
|
4521
4523
|
"cookie-es": "2.0.0",
|
|
4522
4524
|
"decimal.js": "10.5.0",
|
|
4523
|
-
esbuild: "0.25.5",
|
|
4524
4525
|
execa: "5.1.1",
|
|
4525
4526
|
"expect-type": "1.2.2",
|
|
4526
4527
|
"fs-extra": "11.3.0",
|
|
@@ -4535,7 +4536,7 @@ var package_default = {
|
|
|
4535
4536
|
"js-levenshtein": "1.1.6",
|
|
4536
4537
|
kleur: "4.1.5",
|
|
4537
4538
|
klona: "2.0.6",
|
|
4538
|
-
mariadb: "3.4.
|
|
4539
|
+
mariadb: "3.4.5",
|
|
4539
4540
|
memfs: "4.17.2",
|
|
4540
4541
|
mssql: "11.0.1",
|
|
4541
4542
|
"new-github-issue-url": "0.2.1",
|
|
@@ -4548,15 +4549,13 @@ var package_default = {
|
|
|
4548
4549
|
"source-map-support": "0.5.21",
|
|
4549
4550
|
"sql-template-tag": "5.2.1",
|
|
4550
4551
|
"stacktrace-parser": "0.1.11",
|
|
4551
|
-
"strip-ansi": "
|
|
4552
|
+
"strip-ansi": "7.1.0",
|
|
4552
4553
|
"strip-indent": "4.0.0",
|
|
4553
4554
|
tempy: "3.0.0",
|
|
4554
|
-
"ts-node": "10.9.2",
|
|
4555
4555
|
"ts-pattern": "5.6.2",
|
|
4556
4556
|
tsd: "0.31.2",
|
|
4557
4557
|
typescript: "5.4.5",
|
|
4558
4558
|
undici: "7.4.0",
|
|
4559
|
-
wrangler: "3.111.0",
|
|
4560
4559
|
zx: "8.4.1"
|
|
4561
4560
|
},
|
|
4562
4561
|
peerDependencies: {
|
|
@@ -6636,8 +6635,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
6636
6635
|
}
|
|
6637
6636
|
|
|
6638
6637
|
// src/utils/buildGetQueryCompilerWasmModule.ts
|
|
6639
|
-
function buildQueryCompilerWasmModule(
|
|
6640
|
-
if (
|
|
6638
|
+
function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
|
|
6639
|
+
if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
|
|
6641
6640
|
return `config.compilerWasm = {
|
|
6642
6641
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6643
6642
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -6648,7 +6647,7 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
6648
6647
|
}
|
|
6649
6648
|
}`;
|
|
6650
6649
|
}
|
|
6651
|
-
if (
|
|
6650
|
+
if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
|
|
6652
6651
|
return `config.compilerWasm = {
|
|
6653
6652
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6654
6653
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -8065,7 +8064,7 @@ const config = ${JSON.stringify(config, null, 2)}
|
|
|
8065
8064
|
${buildDirname(edge, relativeOutdir)}
|
|
8066
8065
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
8067
8066
|
${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
|
|
8068
|
-
${buildQueryCompilerWasmModule(wasm,
|
|
8067
|
+
${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
|
|
8069
8068
|
${buildInjectableEdgeEnv(edge, datasources)}
|
|
8070
8069
|
${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
8071
8070
|
${buildDebugInitialization(edge)}
|
|
@@ -8541,7 +8540,7 @@ function buildTypedSql({
|
|
|
8541
8540
|
fileMap[`${query.name}.js`] = buildTypedQueryCjs(options);
|
|
8542
8541
|
fileMap[`${query.name}.${edgeRuntimeName}.js`] = buildTypedQueryCjs(edgeOptions);
|
|
8543
8542
|
fileMap[`${query.name}.mjs`] = buildTypedQueryEsm(options);
|
|
8544
|
-
fileMap[`${query.name}.
|
|
8543
|
+
fileMap[`${query.name}.${edgeRuntimeName}.mjs`] = buildTypedQueryEsm(edgeOptions);
|
|
8545
8544
|
}
|
|
8546
8545
|
fileMap["index.d.ts"] = buildIndexTs(queries, enums);
|
|
8547
8546
|
fileMap["index.js"] = buildIndexCjs(queries);
|
|
@@ -8799,7 +8798,7 @@ async function getDefaultOutdir(outputDir) {
|
|
|
8799
8798
|
if ((0, import_fs.existsSync)(import_path3.default.join(process.env.INIT_CWD, "package.json"))) {
|
|
8800
8799
|
return import_path3.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
|
|
8801
8800
|
}
|
|
8802
|
-
const packagePath = await (0,
|
|
8801
|
+
const packagePath = await (0, import_package_up.packageUp)({ cwd: process.env.INIT_CWD });
|
|
8803
8802
|
if (packagePath) {
|
|
8804
8803
|
return import_path3.default.join(import_path3.default.dirname(packagePath), "node_modules/.prisma/client");
|
|
8805
8804
|
}
|
|
@@ -8897,7 +8896,8 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
8897
8896
|
}
|
|
8898
8897
|
const schemaTargetPath = import_path3.default.join(outputDir, "schema.prisma");
|
|
8899
8898
|
await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
8900
|
-
|
|
8899
|
+
const runtimeNeedsWasmEngine = clientEngineType === import_internals10.ClientEngineType.Client || generator.previewFeatures.includes("driverAdapters") && copyEngine;
|
|
8900
|
+
if (runtimeNeedsWasmEngine && isWasmEngineSupported(provider) && !testMode) {
|
|
8901
8901
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
8902
8902
|
const filename = clientEngineType === import_internals10.ClientEngineType.Client ? "query_compiler_bg" : "query_engine_bg";
|
|
8903
8903
|
const wasmJsBundlePath = import_path3.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
@@ -9026,7 +9026,7 @@ async function getGenerationDirs({
|
|
|
9026
9026
|
if (isCustomOutput) {
|
|
9027
9027
|
await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
|
|
9028
9028
|
}
|
|
9029
|
-
const userPackageRoot = await (0,
|
|
9029
|
+
const userPackageRoot = await (0, import_package_up.packageUp)({ cwd: import_path3.default.dirname(userOutputDir) });
|
|
9030
9030
|
const userProjectRoot = userPackageRoot ? import_path3.default.dirname(userPackageRoot) : process.cwd();
|
|
9031
9031
|
return {
|
|
9032
9032
|
runtimeBase: userRuntimeImport,
|
|
@@ -9153,7 +9153,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
9153
9153
|
var import_ts_pattern = require("ts-pattern");
|
|
9154
9154
|
|
|
9155
9155
|
// package.json
|
|
9156
|
-
var version = "6.16.0-dev.
|
|
9156
|
+
var version = "6.16.0-dev.31";
|
|
9157
9157
|
|
|
9158
9158
|
// src/resolvePrismaClient.ts
|
|
9159
9159
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -4238,8 +4238,8 @@ var bgCyan = init(46, 49);
|
|
|
4238
4238
|
var bgWhite = init(47, 49);
|
|
4239
4239
|
|
|
4240
4240
|
// src/generateClient.ts
|
|
4241
|
+
import { packageUp } from "package-up";
|
|
4241
4242
|
import path3 from "path";
|
|
4242
|
-
import pkgUp from "pkg-up";
|
|
4243
4243
|
|
|
4244
4244
|
// ../client/package.json
|
|
4245
4245
|
var package_default = {
|
|
@@ -4453,15 +4453,16 @@ var package_default = {
|
|
|
4453
4453
|
"sql.mjs"
|
|
4454
4454
|
],
|
|
4455
4455
|
devDependencies: {
|
|
4456
|
-
"@cloudflare/workers-types": "4.
|
|
4456
|
+
"@cloudflare/workers-types": "^4.20250408.0",
|
|
4457
4457
|
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
4458
4458
|
"@faker-js/faker": "9.6.0",
|
|
4459
4459
|
"@fast-check/jest": "2.0.3",
|
|
4460
|
+
"@hono/node-server": "1.19.0",
|
|
4460
4461
|
"@inquirer/prompts": "7.3.3",
|
|
4461
4462
|
"@jest/create-cache-key-function": "29.7.0",
|
|
4462
4463
|
"@jest/globals": "29.7.0",
|
|
4463
4464
|
"@jest/test-sequencer": "29.7.0",
|
|
4464
|
-
"@libsql/client": "0.8.
|
|
4465
|
+
"@libsql/client": "0.8.1",
|
|
4465
4466
|
"@neondatabase/serverless": "0.10.2",
|
|
4466
4467
|
"@opentelemetry/api": "1.9.0",
|
|
4467
4468
|
"@opentelemetry/context-async-hooks": "2.0.0",
|
|
@@ -4487,7 +4488,7 @@ var package_default = {
|
|
|
4487
4488
|
"@prisma/dmmf": "workspace:*",
|
|
4488
4489
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4489
4490
|
"@prisma/engines": "workspace:*",
|
|
4490
|
-
"@prisma/engines-version": "6.16.0-
|
|
4491
|
+
"@prisma/engines-version": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
4491
4492
|
"@prisma/fetch-engine": "workspace:*",
|
|
4492
4493
|
"@prisma/generator": "workspace:*",
|
|
4493
4494
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -4496,8 +4497,9 @@ var package_default = {
|
|
|
4496
4497
|
"@prisma/internals": "workspace:*",
|
|
4497
4498
|
"@prisma/migrate": "workspace:*",
|
|
4498
4499
|
"@prisma/mini-proxy": "0.9.5",
|
|
4499
|
-
"@prisma/query-compiler-wasm": "6.16.0-
|
|
4500
|
-
"@prisma/query-engine-wasm": "6.16.0-
|
|
4500
|
+
"@prisma/query-compiler-wasm": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
4501
|
+
"@prisma/query-engine-wasm": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
4502
|
+
"@prisma/query-plan-executor": "workspace:*",
|
|
4501
4503
|
"@prisma/ts-builders": "workspace:*",
|
|
4502
4504
|
"@snaplet/copycat": "6.0.0",
|
|
4503
4505
|
"@swc-node/register": "1.10.9",
|
|
@@ -4515,7 +4517,6 @@ var package_default = {
|
|
|
4515
4517
|
benchmark: "2.1.4",
|
|
4516
4518
|
"cookie-es": "2.0.0",
|
|
4517
4519
|
"decimal.js": "10.5.0",
|
|
4518
|
-
esbuild: "0.25.5",
|
|
4519
4520
|
execa: "5.1.1",
|
|
4520
4521
|
"expect-type": "1.2.2",
|
|
4521
4522
|
"fs-extra": "11.3.0",
|
|
@@ -4530,7 +4531,7 @@ var package_default = {
|
|
|
4530
4531
|
"js-levenshtein": "1.1.6",
|
|
4531
4532
|
kleur: "4.1.5",
|
|
4532
4533
|
klona: "2.0.6",
|
|
4533
|
-
mariadb: "3.4.
|
|
4534
|
+
mariadb: "3.4.5",
|
|
4534
4535
|
memfs: "4.17.2",
|
|
4535
4536
|
mssql: "11.0.1",
|
|
4536
4537
|
"new-github-issue-url": "0.2.1",
|
|
@@ -4543,15 +4544,13 @@ var package_default = {
|
|
|
4543
4544
|
"source-map-support": "0.5.21",
|
|
4544
4545
|
"sql-template-tag": "5.2.1",
|
|
4545
4546
|
"stacktrace-parser": "0.1.11",
|
|
4546
|
-
"strip-ansi": "
|
|
4547
|
+
"strip-ansi": "7.1.0",
|
|
4547
4548
|
"strip-indent": "4.0.0",
|
|
4548
4549
|
tempy: "3.0.0",
|
|
4549
|
-
"ts-node": "10.9.2",
|
|
4550
4550
|
"ts-pattern": "5.6.2",
|
|
4551
4551
|
tsd: "0.31.2",
|
|
4552
4552
|
typescript: "5.4.5",
|
|
4553
4553
|
undici: "7.4.0",
|
|
4554
|
-
wrangler: "3.111.0",
|
|
4555
4554
|
zx: "8.4.1"
|
|
4556
4555
|
},
|
|
4557
4556
|
peerDependencies: {
|
|
@@ -6634,8 +6633,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
6634
6633
|
}
|
|
6635
6634
|
|
|
6636
6635
|
// src/utils/buildGetQueryCompilerWasmModule.ts
|
|
6637
|
-
function buildQueryCompilerWasmModule(
|
|
6638
|
-
if (
|
|
6636
|
+
function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
|
|
6637
|
+
if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
|
|
6639
6638
|
return `config.compilerWasm = {
|
|
6640
6639
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6641
6640
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -6646,7 +6645,7 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
6646
6645
|
}
|
|
6647
6646
|
}`;
|
|
6648
6647
|
}
|
|
6649
|
-
if (
|
|
6648
|
+
if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
|
|
6650
6649
|
return `config.compilerWasm = {
|
|
6651
6650
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
6652
6651
|
getQueryCompilerWasmModule: async () => {
|
|
@@ -8063,7 +8062,7 @@ const config = ${JSON.stringify(config, null, 2)}
|
|
|
8063
8062
|
${buildDirname(edge, relativeOutdir)}
|
|
8064
8063
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
8065
8064
|
${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
|
|
8066
|
-
${buildQueryCompilerWasmModule(wasm,
|
|
8065
|
+
${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
|
|
8067
8066
|
${buildInjectableEdgeEnv(edge, datasources)}
|
|
8068
8067
|
${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
8069
8068
|
${buildDebugInitialization(edge)}
|
|
@@ -8539,7 +8538,7 @@ function buildTypedSql({
|
|
|
8539
8538
|
fileMap[`${query.name}.js`] = buildTypedQueryCjs(options);
|
|
8540
8539
|
fileMap[`${query.name}.${edgeRuntimeName}.js`] = buildTypedQueryCjs(edgeOptions);
|
|
8541
8540
|
fileMap[`${query.name}.mjs`] = buildTypedQueryEsm(options);
|
|
8542
|
-
fileMap[`${query.name}.
|
|
8541
|
+
fileMap[`${query.name}.${edgeRuntimeName}.mjs`] = buildTypedQueryEsm(edgeOptions);
|
|
8543
8542
|
}
|
|
8544
8543
|
fileMap["index.d.ts"] = buildIndexTs(queries, enums);
|
|
8545
8544
|
fileMap["index.js"] = buildIndexCjs(queries);
|
|
@@ -8797,7 +8796,7 @@ async function getDefaultOutdir(outputDir) {
|
|
|
8797
8796
|
if (existsSync(path3.join(process.env.INIT_CWD, "package.json"))) {
|
|
8798
8797
|
return path3.join(process.env.INIT_CWD, "node_modules/.prisma/client");
|
|
8799
8798
|
}
|
|
8800
|
-
const packagePath = await
|
|
8799
|
+
const packagePath = await packageUp({ cwd: process.env.INIT_CWD });
|
|
8801
8800
|
if (packagePath) {
|
|
8802
8801
|
return path3.join(path3.dirname(packagePath), "node_modules/.prisma/client");
|
|
8803
8802
|
}
|
|
@@ -8895,7 +8894,8 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
8895
8894
|
}
|
|
8896
8895
|
const schemaTargetPath = path3.join(outputDir, "schema.prisma");
|
|
8897
8896
|
await fs.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
8898
|
-
|
|
8897
|
+
const runtimeNeedsWasmEngine = clientEngineType === ClientEngineType3.Client || generator.previewFeatures.includes("driverAdapters") && copyEngine;
|
|
8898
|
+
if (runtimeNeedsWasmEngine && isWasmEngineSupported(provider) && !testMode) {
|
|
8899
8899
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
8900
8900
|
const filename = clientEngineType === ClientEngineType3.Client ? "query_compiler_bg" : "query_engine_bg";
|
|
8901
8901
|
const wasmJsBundlePath = path3.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
@@ -9024,7 +9024,7 @@ async function getGenerationDirs({
|
|
|
9024
9024
|
if (isCustomOutput) {
|
|
9025
9025
|
await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
|
|
9026
9026
|
}
|
|
9027
|
-
const userPackageRoot = await
|
|
9027
|
+
const userPackageRoot = await packageUp({ cwd: path3.dirname(userOutputDir) });
|
|
9028
9028
|
const userProjectRoot = userPackageRoot ? path3.dirname(userPackageRoot) : process.cwd();
|
|
9029
9029
|
return {
|
|
9030
9030
|
runtimeBase: userRuntimeImport,
|
|
@@ -9151,7 +9151,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
9151
9151
|
import { match } from "ts-pattern";
|
|
9152
9152
|
|
|
9153
9153
|
// package.json
|
|
9154
|
-
var version = "6.16.0-dev.
|
|
9154
|
+
var version = "6.16.0-dev.31";
|
|
9155
9155
|
|
|
9156
9156
|
// src/resolvePrismaClient.ts
|
|
9157
9157
|
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.31",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,27 +25,26 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "6.16.0-
|
|
28
|
+
"@prisma/engines-version": "6.16.0-6.42747065991212ea20d86c4732cf122c34af160b",
|
|
29
29
|
"ci-info": "4.2.0",
|
|
30
30
|
"env-paths": "2.2.1",
|
|
31
31
|
"indent-string": "4.0.0",
|
|
32
32
|
"klona": "2.0.6",
|
|
33
|
-
"
|
|
33
|
+
"package-up": "5.0.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
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.31",
|
|
37
|
+
"@prisma/debug": "6.16.0-dev.31",
|
|
38
|
+
"@prisma/fetch-engine": "6.16.0-dev.31",
|
|
39
|
+
"@prisma/generator": "6.16.0-dev.31",
|
|
40
|
+
"@prisma/dmmf": "6.16.0-dev.31",
|
|
41
|
+
"@prisma/get-platform": "6.16.0-dev.31",
|
|
42
|
+
"@prisma/internals": "6.16.0-dev.31",
|
|
43
|
+
"@prisma/ts-builders": "6.16.0-dev.31"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|
|
47
|
-
"
|
|
48
|
-
"vitest": "3.0.9"
|
|
47
|
+
"vitest": "3.2.4"
|
|
49
48
|
},
|
|
50
49
|
"files": [
|
|
51
50
|
"dist"
|