@prisma/client-generator-js 6.8.0-dev.1 → 6.8.0-dev.10
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/TSClient/TSClient.d.ts +0 -2
- package/dist/TSClient/common.d.ts +1 -1
- package/dist/index.js +8 -53
- package/dist/index.mjs +8 -53
- package/package.json +10 -10
|
@@ -12,8 +12,6 @@ export type TSClientOptions = O.Required<GenerateClientOptions, 'runtimeBase'> &
|
|
|
12
12
|
runtimeNameTs: RuntimeName;
|
|
13
13
|
/** When generating the browser client */
|
|
14
14
|
browser: boolean;
|
|
15
|
-
/** When generating via the Deno CLI */
|
|
16
|
-
deno: boolean;
|
|
17
15
|
/** When we are generating an /edge client */
|
|
18
16
|
edge: boolean;
|
|
19
17
|
/** When we are generating a /wasm client */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TSClientOptions } from './TSClient';
|
|
2
|
-
export declare const commonCodeJS: ({ runtimeBase, runtimeNameJs, browser, clientVersion, engineVersion, generator,
|
|
2
|
+
export declare const commonCodeJS: ({ runtimeBase, runtimeNameJs, browser, clientVersion, engineVersion, generator, }: TSClientOptions) => string;
|
|
3
3
|
export declare const notSupportOnBrowser: (fnc: string, browser?: boolean) => string;
|
|
4
4
|
export declare const commonCodeTS: ({ runtimeBase, runtimeNameTs, clientVersion, engineVersion, generator, }: TSClientOptions) => {
|
|
5
5
|
tsWithoutNamespace: () => string;
|
package/dist/index.js
CHANGED
|
@@ -4482,7 +4482,7 @@ var package_default = {
|
|
|
4482
4482
|
"@prisma/dmmf": "workspace:*",
|
|
4483
4483
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4484
4484
|
"@prisma/engines": "workspace:*",
|
|
4485
|
-
"@prisma/engines-version": "6.8.0-
|
|
4485
|
+
"@prisma/engines-version": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
4486
4486
|
"@prisma/fetch-engine": "workspace:*",
|
|
4487
4487
|
"@prisma/generator": "workspace:*",
|
|
4488
4488
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -4492,8 +4492,8 @@ var package_default = {
|
|
|
4492
4492
|
"@prisma/migrate": "workspace:*",
|
|
4493
4493
|
"@prisma/mini-proxy": "0.9.5",
|
|
4494
4494
|
"@prisma/pg-worker": "workspace:*",
|
|
4495
|
-
"@prisma/query-compiler-wasm": "6.8.0-
|
|
4496
|
-
"@prisma/query-engine-wasm": "6.8.0-
|
|
4495
|
+
"@prisma/query-compiler-wasm": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
4496
|
+
"@prisma/query-engine-wasm": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
4497
4497
|
"@prisma/ts-builders": "workspace:*",
|
|
4498
4498
|
"@snaplet/copycat": "6.0.0",
|
|
4499
4499
|
"@swc-node/register": "1.10.9",
|
|
@@ -6715,32 +6715,10 @@ var commonCodeJS = ({
|
|
|
6715
6715
|
browser,
|
|
6716
6716
|
clientVersion,
|
|
6717
6717
|
engineVersion,
|
|
6718
|
-
generator
|
|
6719
|
-
|
|
6720
|
-
}) => `${deno ? "const exports = {}" : ""}
|
|
6718
|
+
generator
|
|
6719
|
+
}) => `
|
|
6721
6720
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6722
|
-
${
|
|
6723
|
-
import {
|
|
6724
|
-
PrismaClientKnownRequestError,
|
|
6725
|
-
PrismaClientUnknownRequestError,
|
|
6726
|
-
PrismaClientRustPanicError,
|
|
6727
|
-
PrismaClientInitializationError,
|
|
6728
|
-
PrismaClientValidationError,
|
|
6729
|
-
getPrismaClient,
|
|
6730
|
-
sqltag,
|
|
6731
|
-
empty,
|
|
6732
|
-
join,
|
|
6733
|
-
raw,
|
|
6734
|
-
Decimal,
|
|
6735
|
-
Debug,
|
|
6736
|
-
objectEnumValues,
|
|
6737
|
-
makeStrictEnum,
|
|
6738
|
-
Extensions,
|
|
6739
|
-
defineDmmfProperty,
|
|
6740
|
-
Public,
|
|
6741
|
-
getRuntime,
|
|
6742
|
-
skip
|
|
6743
|
-
} from '${runtimeBase}/${runtimeNameJs}.js'` : browser ? `
|
|
6721
|
+
${browser ? `
|
|
6744
6722
|
const {
|
|
6745
6723
|
Decimal,
|
|
6746
6724
|
objectEnumValues,
|
|
@@ -7987,7 +7965,6 @@ var TSClient = class {
|
|
|
7987
7965
|
runtimeBase,
|
|
7988
7966
|
runtimeNameJs,
|
|
7989
7967
|
datasources,
|
|
7990
|
-
deno,
|
|
7991
7968
|
copyEngine = true,
|
|
7992
7969
|
reusedJs,
|
|
7993
7970
|
envPaths
|
|
@@ -8051,7 +8028,7 @@ ${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
|
8051
8028
|
${buildDebugInitialization(edge)}
|
|
8052
8029
|
const PrismaClient = getPrismaClient(config)
|
|
8053
8030
|
exports.PrismaClient = PrismaClient
|
|
8054
|
-
Object.assign(exports, Prisma)
|
|
8031
|
+
Object.assign(exports, Prisma)
|
|
8055
8032
|
${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
|
|
8056
8033
|
`;
|
|
8057
8034
|
return code;
|
|
@@ -8594,7 +8571,6 @@ async function buildClient({
|
|
|
8594
8571
|
copyEngine,
|
|
8595
8572
|
datamodel,
|
|
8596
8573
|
browser: false,
|
|
8597
|
-
deno: false,
|
|
8598
8574
|
edge: false,
|
|
8599
8575
|
wasm: false
|
|
8600
8576
|
};
|
|
@@ -8723,23 +8699,6 @@ async function buildClient({
|
|
|
8723
8699
|
fileMap["wasm.js"] = fileMap["index-browser.js"];
|
|
8724
8700
|
fileMap["wasm.d.ts"] = fileMap["default.d.ts"];
|
|
8725
8701
|
}
|
|
8726
|
-
if (generator.previewFeatures.includes("deno") && !!globalThis.Deno) {
|
|
8727
|
-
const denoEdgeClient = new TSClient({
|
|
8728
|
-
...baseClientOptions,
|
|
8729
|
-
runtimeBase: `../${runtimeBase}`,
|
|
8730
|
-
runtimeNameJs: "edge-esm",
|
|
8731
|
-
runtimeNameTs: "library.d.ts",
|
|
8732
|
-
deno: true,
|
|
8733
|
-
edge: true
|
|
8734
|
-
});
|
|
8735
|
-
fileMap["deno/edge.js"] = JS(denoEdgeClient);
|
|
8736
|
-
fileMap["deno/index.d.ts"] = TS(denoEdgeClient);
|
|
8737
|
-
fileMap["deno/edge.ts"] = `
|
|
8738
|
-
import './polyfill.js'
|
|
8739
|
-
// @deno-types="./index.d.ts"
|
|
8740
|
-
export * from './edge.js'`;
|
|
8741
|
-
fileMap["deno/polyfill.js"] = "globalThis.process = { env: Deno.env.toObject() }; globalThis.global = globalThis";
|
|
8742
|
-
}
|
|
8743
8702
|
if (typedSql && typedSql.length > 0) {
|
|
8744
8703
|
const edgeRuntimeName = usesWasmRuntime ? "wasm" : "edge";
|
|
8745
8704
|
const cjsEdgeIndex = `./sql/index.${edgeRuntimeName}.js`;
|
|
@@ -8866,9 +8825,6 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
8866
8825
|
await deleteOutputDir(outputDir);
|
|
8867
8826
|
}
|
|
8868
8827
|
await (0, import_fs_extra.ensureDir)(outputDir);
|
|
8869
|
-
if (generator.previewFeatures.includes("deno") && !!globalThis.Deno) {
|
|
8870
|
-
await (0, import_fs_extra.ensureDir)(import_path3.default.join(outputDir, "deno"));
|
|
8871
|
-
}
|
|
8872
8828
|
await writeFileMap(outputDir, fileMap);
|
|
8873
8829
|
if (copyRuntime || generator.isCustomOutput === true) {
|
|
8874
8830
|
const copiedRuntimeDir = import_path3.default.join(outputDir, "runtime");
|
|
@@ -9154,7 +9110,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
9154
9110
|
var import_ts_pattern = require("ts-pattern");
|
|
9155
9111
|
|
|
9156
9112
|
// package.json
|
|
9157
|
-
var version = "6.8.0-dev.
|
|
9113
|
+
var version = "6.8.0-dev.10";
|
|
9158
9114
|
|
|
9159
9115
|
// src/resolvePrismaClient.ts
|
|
9160
9116
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
|
@@ -9380,7 +9336,6 @@ function dmmfToTypes(dmmf) {
|
|
|
9380
9336
|
},
|
|
9381
9337
|
datamodel: "",
|
|
9382
9338
|
browser: false,
|
|
9383
|
-
deno: false,
|
|
9384
9339
|
edge: false,
|
|
9385
9340
|
wasm: false,
|
|
9386
9341
|
envPaths: {
|
package/dist/index.mjs
CHANGED
|
@@ -4477,7 +4477,7 @@ var package_default = {
|
|
|
4477
4477
|
"@prisma/dmmf": "workspace:*",
|
|
4478
4478
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4479
4479
|
"@prisma/engines": "workspace:*",
|
|
4480
|
-
"@prisma/engines-version": "6.8.0-
|
|
4480
|
+
"@prisma/engines-version": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
4481
4481
|
"@prisma/fetch-engine": "workspace:*",
|
|
4482
4482
|
"@prisma/generator": "workspace:*",
|
|
4483
4483
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -4487,8 +4487,8 @@ var package_default = {
|
|
|
4487
4487
|
"@prisma/migrate": "workspace:*",
|
|
4488
4488
|
"@prisma/mini-proxy": "0.9.5",
|
|
4489
4489
|
"@prisma/pg-worker": "workspace:*",
|
|
4490
|
-
"@prisma/query-compiler-wasm": "6.8.0-
|
|
4491
|
-
"@prisma/query-engine-wasm": "6.8.0-
|
|
4490
|
+
"@prisma/query-compiler-wasm": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
4491
|
+
"@prisma/query-engine-wasm": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
4492
4492
|
"@prisma/ts-builders": "workspace:*",
|
|
4493
4493
|
"@snaplet/copycat": "6.0.0",
|
|
4494
4494
|
"@swc-node/register": "1.10.9",
|
|
@@ -6713,32 +6713,10 @@ var commonCodeJS = ({
|
|
|
6713
6713
|
browser,
|
|
6714
6714
|
clientVersion,
|
|
6715
6715
|
engineVersion,
|
|
6716
|
-
generator
|
|
6717
|
-
|
|
6718
|
-
}) => `${deno ? "const exports = {}" : ""}
|
|
6716
|
+
generator
|
|
6717
|
+
}) => `
|
|
6719
6718
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6720
|
-
${
|
|
6721
|
-
import {
|
|
6722
|
-
PrismaClientKnownRequestError,
|
|
6723
|
-
PrismaClientUnknownRequestError,
|
|
6724
|
-
PrismaClientRustPanicError,
|
|
6725
|
-
PrismaClientInitializationError,
|
|
6726
|
-
PrismaClientValidationError,
|
|
6727
|
-
getPrismaClient,
|
|
6728
|
-
sqltag,
|
|
6729
|
-
empty,
|
|
6730
|
-
join,
|
|
6731
|
-
raw,
|
|
6732
|
-
Decimal,
|
|
6733
|
-
Debug,
|
|
6734
|
-
objectEnumValues,
|
|
6735
|
-
makeStrictEnum,
|
|
6736
|
-
Extensions,
|
|
6737
|
-
defineDmmfProperty,
|
|
6738
|
-
Public,
|
|
6739
|
-
getRuntime,
|
|
6740
|
-
skip
|
|
6741
|
-
} from '${runtimeBase}/${runtimeNameJs}.js'` : browser ? `
|
|
6719
|
+
${browser ? `
|
|
6742
6720
|
const {
|
|
6743
6721
|
Decimal,
|
|
6744
6722
|
objectEnumValues,
|
|
@@ -7985,7 +7963,6 @@ var TSClient = class {
|
|
|
7985
7963
|
runtimeBase,
|
|
7986
7964
|
runtimeNameJs,
|
|
7987
7965
|
datasources,
|
|
7988
|
-
deno,
|
|
7989
7966
|
copyEngine = true,
|
|
7990
7967
|
reusedJs,
|
|
7991
7968
|
envPaths
|
|
@@ -8049,7 +8026,7 @@ ${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
|
|
|
8049
8026
|
${buildDebugInitialization(edge)}
|
|
8050
8027
|
const PrismaClient = getPrismaClient(config)
|
|
8051
8028
|
exports.PrismaClient = PrismaClient
|
|
8052
|
-
Object.assign(exports, Prisma)
|
|
8029
|
+
Object.assign(exports, Prisma)
|
|
8053
8030
|
${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
|
|
8054
8031
|
`;
|
|
8055
8032
|
return code;
|
|
@@ -8592,7 +8569,6 @@ async function buildClient({
|
|
|
8592
8569
|
copyEngine,
|
|
8593
8570
|
datamodel,
|
|
8594
8571
|
browser: false,
|
|
8595
|
-
deno: false,
|
|
8596
8572
|
edge: false,
|
|
8597
8573
|
wasm: false
|
|
8598
8574
|
};
|
|
@@ -8721,23 +8697,6 @@ async function buildClient({
|
|
|
8721
8697
|
fileMap["wasm.js"] = fileMap["index-browser.js"];
|
|
8722
8698
|
fileMap["wasm.d.ts"] = fileMap["default.d.ts"];
|
|
8723
8699
|
}
|
|
8724
|
-
if (generator.previewFeatures.includes("deno") && !!globalThis.Deno) {
|
|
8725
|
-
const denoEdgeClient = new TSClient({
|
|
8726
|
-
...baseClientOptions,
|
|
8727
|
-
runtimeBase: `../${runtimeBase}`,
|
|
8728
|
-
runtimeNameJs: "edge-esm",
|
|
8729
|
-
runtimeNameTs: "library.d.ts",
|
|
8730
|
-
deno: true,
|
|
8731
|
-
edge: true
|
|
8732
|
-
});
|
|
8733
|
-
fileMap["deno/edge.js"] = JS(denoEdgeClient);
|
|
8734
|
-
fileMap["deno/index.d.ts"] = TS(denoEdgeClient);
|
|
8735
|
-
fileMap["deno/edge.ts"] = `
|
|
8736
|
-
import './polyfill.js'
|
|
8737
|
-
// @deno-types="./index.d.ts"
|
|
8738
|
-
export * from './edge.js'`;
|
|
8739
|
-
fileMap["deno/polyfill.js"] = "globalThis.process = { env: Deno.env.toObject() }; globalThis.global = globalThis";
|
|
8740
|
-
}
|
|
8741
8700
|
if (typedSql && typedSql.length > 0) {
|
|
8742
8701
|
const edgeRuntimeName = usesWasmRuntime ? "wasm" : "edge";
|
|
8743
8702
|
const cjsEdgeIndex = `./sql/index.${edgeRuntimeName}.js`;
|
|
@@ -8864,9 +8823,6 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
8864
8823
|
await deleteOutputDir(outputDir);
|
|
8865
8824
|
}
|
|
8866
8825
|
await (0, import_fs_extra.ensureDir)(outputDir);
|
|
8867
|
-
if (generator.previewFeatures.includes("deno") && !!globalThis.Deno) {
|
|
8868
|
-
await (0, import_fs_extra.ensureDir)(path3.join(outputDir, "deno"));
|
|
8869
|
-
}
|
|
8870
8826
|
await writeFileMap(outputDir, fileMap);
|
|
8871
8827
|
if (copyRuntime || generator.isCustomOutput === true) {
|
|
8872
8828
|
const copiedRuntimeDir = path3.join(outputDir, "runtime");
|
|
@@ -9152,7 +9108,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
9152
9108
|
import { match } from "ts-pattern";
|
|
9153
9109
|
|
|
9154
9110
|
// package.json
|
|
9155
|
-
var version = "6.8.0-dev.
|
|
9111
|
+
var version = "6.8.0-dev.10";
|
|
9156
9112
|
|
|
9157
9113
|
// src/resolvePrismaClient.ts
|
|
9158
9114
|
var import_execa = __toESM(require_execa());
|
|
@@ -9378,7 +9334,6 @@ function dmmfToTypes(dmmf) {
|
|
|
9378
9334
|
},
|
|
9379
9335
|
datamodel: "",
|
|
9380
9336
|
browser: false,
|
|
9381
|
-
deno: false,
|
|
9382
9337
|
edge: false,
|
|
9383
9338
|
wasm: false,
|
|
9384
9339
|
envPaths: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "6.8.0-dev.
|
|
3
|
+
"version": "6.8.0-dev.10",
|
|
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.8.0-
|
|
28
|
+
"@prisma/engines-version": "6.8.0-11.25148b9e00dcffe957ba9f31ed278578aa5fe95c",
|
|
29
29
|
"ci-info": "4.2.0",
|
|
30
30
|
"env-paths": "2.2.1",
|
|
31
31
|
"indent-string": "4.0.0",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"pkg-up": "3.1.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/fetch-engine": "6.8.0-dev.
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/get-platform": "6.8.0-dev.
|
|
42
|
-
"@prisma/internals": "6.8.0-dev.
|
|
43
|
-
"@prisma/ts-builders": "6.8.0-dev.
|
|
36
|
+
"@prisma/client-common": "6.8.0-dev.10",
|
|
37
|
+
"@prisma/fetch-engine": "6.8.0-dev.10",
|
|
38
|
+
"@prisma/debug": "6.8.0-dev.10",
|
|
39
|
+
"@prisma/dmmf": "6.8.0-dev.10",
|
|
40
|
+
"@prisma/generator": "6.8.0-dev.10",
|
|
41
|
+
"@prisma/get-platform": "6.8.0-dev.10",
|
|
42
|
+
"@prisma/internals": "6.8.0-dev.10",
|
|
43
|
+
"@prisma/ts-builders": "6.8.0-dev.10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|