@prisma/client-generator-js 6.19.0-integration-next.6 → 6.19.0-integration-feat-remove-binary-engine.1
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 +1 -1
- package/dist/index.js +4 -10
- package/dist/index.mjs +4 -10
- package/package.json +9 -9
|
@@ -4,7 +4,7 @@ import { DMMFHelper } from '../dmmf';
|
|
|
4
4
|
import { GenerateClientOptions } from '../generateClient';
|
|
5
5
|
import { GenericArgsInfo } from '../GenericsArgsInfo';
|
|
6
6
|
import { type Generable } from './Generable';
|
|
7
|
-
type RuntimeName = '
|
|
7
|
+
type RuntimeName = 'library' | 'wasm-compiler-edge' | 'index-browser' | 'client' | (string & {});
|
|
8
8
|
export type TSClientOptions = O.Required<GenerateClientOptions, 'runtimeBase'> & {
|
|
9
9
|
/** More granular way to define JS runtime name */
|
|
10
10
|
runtimeNameJs: RuntimeName;
|
package/dist/index.js
CHANGED
|
@@ -5266,9 +5266,6 @@ function getQueryEngineFilename(engineType, binaryTarget) {
|
|
|
5266
5266
|
if (engineType === import_internals5.ClientEngineType.Library) {
|
|
5267
5267
|
return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
|
|
5268
5268
|
}
|
|
5269
|
-
if (engineType === import_internals5.ClientEngineType.Binary) {
|
|
5270
|
-
return `query-engine-${binaryTarget}`;
|
|
5271
|
-
}
|
|
5272
5269
|
return void 0;
|
|
5273
5270
|
}
|
|
5274
5271
|
function buildNFTAnnotation(fileName, relativeOutdir) {
|
|
@@ -6548,7 +6545,7 @@ var TSClient = class {
|
|
|
6548
6545
|
};
|
|
6549
6546
|
const clientEngineType = (0, import_internals7.getClientEngineType)(generator);
|
|
6550
6547
|
generator.config.engineType = clientEngineType;
|
|
6551
|
-
const binaryTargets = clientEngineType === import_internals7.ClientEngineType.Library ? Object.keys(binaryPaths.libqueryEngine ?? {}) :
|
|
6548
|
+
const binaryTargets = clientEngineType === import_internals7.ClientEngineType.Library ? Object.keys(binaryPaths.libqueryEngine ?? {}) : [];
|
|
6552
6549
|
const datasourceFilePath = datasources[0].sourceFilePath;
|
|
6553
6550
|
const config = {
|
|
6554
6551
|
generator,
|
|
@@ -7374,7 +7371,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
7374
7371
|
runtimeName: getNodeRuntimeName(clientEngineType)
|
|
7375
7372
|
});
|
|
7376
7373
|
}
|
|
7377
|
-
const enginePath = clientEngineType === import_internals10.ClientEngineType.Library ? binaryPaths.libqueryEngine :
|
|
7374
|
+
const enginePath = clientEngineType === import_internals10.ClientEngineType.Library ? binaryPaths.libqueryEngine : void 0;
|
|
7378
7375
|
if (enginePath) {
|
|
7379
7376
|
if (process.env.NETLIFY) {
|
|
7380
7377
|
await (0, import_fs_extra.ensureDir)("/tmp/prisma-engines");
|
|
@@ -7576,9 +7573,6 @@ function findOutputPathDeclaration(datamodel) {
|
|
|
7576
7573
|
return null;
|
|
7577
7574
|
}
|
|
7578
7575
|
function getNodeRuntimeName(engineType) {
|
|
7579
|
-
if (engineType === import_internals10.ClientEngineType.Binary) {
|
|
7580
|
-
return "binary";
|
|
7581
|
-
}
|
|
7582
7576
|
if (engineType === import_internals10.ClientEngineType.Library) {
|
|
7583
7577
|
return "library";
|
|
7584
7578
|
}
|
|
@@ -7632,7 +7626,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
7632
7626
|
var import_ts_pattern = require("ts-pattern");
|
|
7633
7627
|
|
|
7634
7628
|
// package.json
|
|
7635
|
-
var version = "6.19.0-integration-
|
|
7629
|
+
var version = "6.19.0-integration-feat-remove-binary-engine.1";
|
|
7636
7630
|
|
|
7637
7631
|
// src/resolvePrismaClient.ts
|
|
7638
7632
|
var import_promises3 = __toESM(require("node:fs/promises"));
|
|
@@ -9375,7 +9369,7 @@ var PrismaClientJsGenerator = class {
|
|
|
9375
9369
|
this.#runtimePath = runtimePath;
|
|
9376
9370
|
}
|
|
9377
9371
|
async getManifest(config) {
|
|
9378
|
-
const requiresEngines = (0, import_ts_pattern.match)((0, import_internals12.getClientEngineType)(config)).with(import_internals12.ClientEngineType.Library, () => ["libqueryEngine"]).with(import_internals12.ClientEngineType.
|
|
9372
|
+
const requiresEngines = (0, import_ts_pattern.match)((0, import_internals12.getClientEngineType)(config)).with(import_internals12.ClientEngineType.Library, () => ["libqueryEngine"]).with(import_internals12.ClientEngineType.Client, () => []).exhaustive();
|
|
9379
9373
|
debug2("requiresEngines", requiresEngines);
|
|
9380
9374
|
const defaultOutput = this.#shouldResolvePrismaClient ? await this.#getPrismaClientPath(config) : ".prisma/client";
|
|
9381
9375
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -5264,9 +5264,6 @@ function getQueryEngineFilename(engineType, binaryTarget) {
|
|
|
5264
5264
|
if (engineType === ClientEngineType.Library) {
|
|
5265
5265
|
return getNodeAPIName(binaryTarget, "fs");
|
|
5266
5266
|
}
|
|
5267
|
-
if (engineType === ClientEngineType.Binary) {
|
|
5268
|
-
return `query-engine-${binaryTarget}`;
|
|
5269
|
-
}
|
|
5270
5267
|
return void 0;
|
|
5271
5268
|
}
|
|
5272
5269
|
function buildNFTAnnotation(fileName, relativeOutdir) {
|
|
@@ -6546,7 +6543,7 @@ var TSClient = class {
|
|
|
6546
6543
|
};
|
|
6547
6544
|
const clientEngineType = getClientEngineType(generator);
|
|
6548
6545
|
generator.config.engineType = clientEngineType;
|
|
6549
|
-
const binaryTargets = clientEngineType === ClientEngineType2.Library ? Object.keys(binaryPaths.libqueryEngine ?? {}) :
|
|
6546
|
+
const binaryTargets = clientEngineType === ClientEngineType2.Library ? Object.keys(binaryPaths.libqueryEngine ?? {}) : [];
|
|
6550
6547
|
const datasourceFilePath = datasources[0].sourceFilePath;
|
|
6551
6548
|
const config = {
|
|
6552
6549
|
generator,
|
|
@@ -7372,7 +7369,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
7372
7369
|
runtimeName: getNodeRuntimeName(clientEngineType)
|
|
7373
7370
|
});
|
|
7374
7371
|
}
|
|
7375
|
-
const enginePath = clientEngineType === ClientEngineType3.Library ? binaryPaths.libqueryEngine :
|
|
7372
|
+
const enginePath = clientEngineType === ClientEngineType3.Library ? binaryPaths.libqueryEngine : void 0;
|
|
7376
7373
|
if (enginePath) {
|
|
7377
7374
|
if (process.env.NETLIFY) {
|
|
7378
7375
|
await (0, import_fs_extra.ensureDir)("/tmp/prisma-engines");
|
|
@@ -7574,9 +7571,6 @@ function findOutputPathDeclaration(datamodel) {
|
|
|
7574
7571
|
return null;
|
|
7575
7572
|
}
|
|
7576
7573
|
function getNodeRuntimeName(engineType) {
|
|
7577
|
-
if (engineType === ClientEngineType3.Binary) {
|
|
7578
|
-
return "binary";
|
|
7579
|
-
}
|
|
7580
7574
|
if (engineType === ClientEngineType3.Library) {
|
|
7581
7575
|
return "library";
|
|
7582
7576
|
}
|
|
@@ -7630,7 +7624,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
7630
7624
|
import { match } from "ts-pattern";
|
|
7631
7625
|
|
|
7632
7626
|
// package.json
|
|
7633
|
-
var version = "6.19.0-integration-
|
|
7627
|
+
var version = "6.19.0-integration-feat-remove-binary-engine.1";
|
|
7634
7628
|
|
|
7635
7629
|
// src/resolvePrismaClient.ts
|
|
7636
7630
|
import fs2 from "node:fs/promises";
|
|
@@ -9373,7 +9367,7 @@ var PrismaClientJsGenerator = class {
|
|
|
9373
9367
|
this.#runtimePath = runtimePath;
|
|
9374
9368
|
}
|
|
9375
9369
|
async getManifest(config) {
|
|
9376
|
-
const requiresEngines = match(getClientEngineType3(config)).with(ClientEngineType4.Library, () => ["libqueryEngine"]).with(ClientEngineType4.
|
|
9370
|
+
const requiresEngines = match(getClientEngineType3(config)).with(ClientEngineType4.Library, () => ["libqueryEngine"]).with(ClientEngineType4.Client, () => []).exhaustive();
|
|
9377
9371
|
debug2("requiresEngines", requiresEngines);
|
|
9378
9372
|
const defaultOutput = this.#shouldResolvePrismaClient ? await this.#getPrismaClientPath(config) : ".prisma/client";
|
|
9379
9373
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "6.19.0-integration-
|
|
3
|
+
"version": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
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.19.0-integration-
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/get-platform": "6.19.0-integration-
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
36
|
+
"@prisma/client-common": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
37
|
+
"@prisma/fetch-engine": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
38
|
+
"@prisma/generator": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
39
|
+
"@prisma/dmmf": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
40
|
+
"@prisma/get-platform": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
41
|
+
"@prisma/debug": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
42
|
+
"@prisma/ts-builders": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
43
|
+
"@prisma/internals": "6.19.0-integration-feat-remove-binary-engine.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|