@prisma/client-generator-ts 6.7.0-dev.31 → 6.7.0-dev.33
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 +4 -6
- package/dist/index.mjs +4 -6
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -6216,6 +6216,9 @@ async function generateClient(options) {
|
|
|
6216
6216
|
moduleFormat
|
|
6217
6217
|
} = options;
|
|
6218
6218
|
const clientEngineType = (0, import_internals9.getClientEngineType)(generator);
|
|
6219
|
+
if (clientEngineType === import_internals9.ClientEngineType.Client && !generator.previewFeatures.includes("queryCompiler")) {
|
|
6220
|
+
throw new Error('`engineType = "client"` requires enabling the `queryCompiler` preview feature');
|
|
6221
|
+
}
|
|
6219
6222
|
const { runtimeBase, outputDir } = await getGenerationDirs(options);
|
|
6220
6223
|
const { prismaClientDmmf, fileMap } = buildClient({
|
|
6221
6224
|
datamodel,
|
|
@@ -6401,11 +6404,6 @@ function getNodeRuntimeName(engineType) {
|
|
|
6401
6404
|
return "library";
|
|
6402
6405
|
}
|
|
6403
6406
|
if (engineType === import_internals9.ClientEngineType.Client) {
|
|
6404
|
-
if (!process.env.PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE) {
|
|
6405
|
-
throw new Error(
|
|
6406
|
-
'Unstable Feature: engineType="client" is in a proof of concept phase and not ready to be used publicly yet!'
|
|
6407
|
-
);
|
|
6408
|
-
}
|
|
6409
6407
|
return "client";
|
|
6410
6408
|
}
|
|
6411
6409
|
(0, import_internals9.assertNever)(engineType, "Unknown engine type");
|
|
@@ -6441,7 +6439,7 @@ var import_get_tsconfig = require("get-tsconfig");
|
|
|
6441
6439
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6442
6440
|
|
|
6443
6441
|
// package.json
|
|
6444
|
-
var version = "6.7.0-dev.
|
|
6442
|
+
var version = "6.7.0-dev.33";
|
|
6445
6443
|
|
|
6446
6444
|
// src/module-format.ts
|
|
6447
6445
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -6215,6 +6215,9 @@ async function generateClient(options) {
|
|
|
6215
6215
|
moduleFormat
|
|
6216
6216
|
} = options;
|
|
6217
6217
|
const clientEngineType = getClientEngineType3(generator);
|
|
6218
|
+
if (clientEngineType === ClientEngineType3.Client && !generator.previewFeatures.includes("queryCompiler")) {
|
|
6219
|
+
throw new Error('`engineType = "client"` requires enabling the `queryCompiler` preview feature');
|
|
6220
|
+
}
|
|
6218
6221
|
const { runtimeBase, outputDir } = await getGenerationDirs(options);
|
|
6219
6222
|
const { prismaClientDmmf, fileMap } = buildClient({
|
|
6220
6223
|
datamodel,
|
|
@@ -6400,11 +6403,6 @@ function getNodeRuntimeName(engineType) {
|
|
|
6400
6403
|
return "library";
|
|
6401
6404
|
}
|
|
6402
6405
|
if (engineType === ClientEngineType3.Client) {
|
|
6403
|
-
if (!process.env.PRISMA_UNSTABLE_CLIENT_ENGINE_TYPE) {
|
|
6404
|
-
throw new Error(
|
|
6405
|
-
'Unstable Feature: engineType="client" is in a proof of concept phase and not ready to be used publicly yet!'
|
|
6406
|
-
);
|
|
6407
|
-
}
|
|
6408
6406
|
return "client";
|
|
6409
6407
|
}
|
|
6410
6408
|
assertNever3(engineType, "Unknown engine type");
|
|
@@ -6440,7 +6438,7 @@ import { getTsconfig } from "get-tsconfig";
|
|
|
6440
6438
|
import { match as match2 } from "ts-pattern";
|
|
6441
6439
|
|
|
6442
6440
|
// package.json
|
|
6443
|
-
var version = "6.7.0-dev.
|
|
6441
|
+
var version = "6.7.0-dev.33";
|
|
6444
6442
|
|
|
6445
6443
|
// src/module-format.ts
|
|
6446
6444
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "6.7.0-dev.
|
|
3
|
+
"version": "6.7.0-dev.33",
|
|
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,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "6.7.0-
|
|
28
|
+
"@prisma/engines-version": "6.7.0-26.cba7750c3d9ee2837e9757b8358eacce235484e5",
|
|
29
29
|
"ci-info": "4.2.0",
|
|
30
30
|
"fast-glob": "3.3.3",
|
|
31
31
|
"get-tsconfig": "4.10.0",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"pkg-up": "3.1.0",
|
|
35
35
|
"pluralize": "8.0.0",
|
|
36
36
|
"ts-pattern": "5.6.2",
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/generator": "6.7.0-dev.
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/
|
|
37
|
+
"@prisma/client-common": "6.7.0-dev.33",
|
|
38
|
+
"@prisma/debug": "6.7.0-dev.33",
|
|
39
|
+
"@prisma/dmmf": "6.7.0-dev.33",
|
|
40
|
+
"@prisma/generator": "6.7.0-dev.33",
|
|
41
|
+
"@prisma/fetch-engine": "6.7.0-dev.33",
|
|
42
|
+
"@prisma/internals": "6.7.0-dev.33",
|
|
43
|
+
"@prisma/ts-builders": "6.7.0-dev.33",
|
|
44
|
+
"@prisma/get-platform": "6.7.0-dev.33"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|