@prisma/client 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/generator-build/index.js +21 -31
- package/package.json +28 -28
- package/runtime/client.d.mts +1 -2
- package/runtime/client.d.ts +1 -2
- package/runtime/client.js +27 -27
- package/runtime/client.js.map +4 -4
- package/runtime/client.mjs +26 -26
- package/runtime/client.mjs.map +4 -4
- package/runtime/library.d.mts +1 -2
- package/runtime/library.d.ts +1 -2
- package/runtime/library.js +73 -73
- package/runtime/library.js.map +4 -4
- package/runtime/library.mjs +69 -69
- package/runtime/library.mjs.map +4 -4
- package/runtime/wasm-compiler-edge.js +23 -23
- package/runtime/wasm-compiler-edge.js.map +4 -4
- package/runtime/wasm-compiler-edge.mjs +22 -22
- package/runtime/wasm-compiler-edge.mjs.map +4 -4
- package/scripts/default-index.js +1 -1
- package/runtime/binary.js +0 -274
- package/runtime/binary.js.map +0 -7
- package/runtime/binary.mjs +0 -281
- package/runtime/binary.mjs.map +0 -7
package/generator-build/index.js
CHANGED
|
@@ -7222,14 +7222,28 @@ async function removeFileIfExists(filePath) {
|
|
|
7222
7222
|
}
|
|
7223
7223
|
}
|
|
7224
7224
|
|
|
7225
|
+
// ../internals/src/utils/parseEnvValue.ts
|
|
7226
|
+
function parseEnvValue(object) {
|
|
7227
|
+
if (object.fromEnvVar && object.fromEnvVar != "null") {
|
|
7228
|
+
const value = process.env[object.fromEnvVar];
|
|
7229
|
+
if (!value) {
|
|
7230
|
+
throw new Error(
|
|
7231
|
+
`Attempted to load provider value using \`env(${object.fromEnvVar})\` but it was not present. Please ensure that ${dim(
|
|
7232
|
+
object.fromEnvVar
|
|
7233
|
+
)} is present in your Environment Variables`
|
|
7234
|
+
);
|
|
7235
|
+
}
|
|
7236
|
+
return value;
|
|
7237
|
+
}
|
|
7238
|
+
return object.value;
|
|
7239
|
+
}
|
|
7240
|
+
|
|
7225
7241
|
// ../internals/src/client/getClientEngineType.ts
|
|
7226
7242
|
function getClientEngineType(generatorConfig) {
|
|
7227
7243
|
const engineTypeFromEnvVar = getEngineTypeFromEnvVar();
|
|
7228
7244
|
if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
|
|
7229
7245
|
if (generatorConfig?.config.engineType === "library" /* Library */) {
|
|
7230
7246
|
return "library" /* Library */;
|
|
7231
|
-
} else if (generatorConfig?.config.engineType === "binary" /* Binary */) {
|
|
7232
|
-
return "binary" /* Binary */;
|
|
7233
7247
|
} else if (generatorConfig?.config.engineType === "client" /* Client */) {
|
|
7234
7248
|
return "client" /* Client */;
|
|
7235
7249
|
} else {
|
|
@@ -7240,8 +7254,6 @@ function getEngineTypeFromEnvVar() {
|
|
|
7240
7254
|
const engineType = process.env.PRISMA_CLIENT_ENGINE_TYPE;
|
|
7241
7255
|
if (engineType === "library" /* Library */) {
|
|
7242
7256
|
return "library" /* Library */;
|
|
7243
|
-
} else if (engineType === "binary" /* Binary */) {
|
|
7244
|
-
return "binary" /* Binary */;
|
|
7245
7257
|
} else if (engineType === "client" /* Client */) {
|
|
7246
7258
|
return "client" /* Client */;
|
|
7247
7259
|
} else {
|
|
@@ -7252,22 +7264,6 @@ function getDefaultEngineType() {
|
|
|
7252
7264
|
return "library" /* Library */;
|
|
7253
7265
|
}
|
|
7254
7266
|
|
|
7255
|
-
// ../internals/src/utils/parseEnvValue.ts
|
|
7256
|
-
function parseEnvValue(object) {
|
|
7257
|
-
if (object.fromEnvVar && object.fromEnvVar != "null") {
|
|
7258
|
-
const value = process.env[object.fromEnvVar];
|
|
7259
|
-
if (!value) {
|
|
7260
|
-
throw new Error(
|
|
7261
|
-
`Attempted to load provider value using \`env(${object.fromEnvVar})\` but it was not present. Please ensure that ${dim(
|
|
7262
|
-
object.fromEnvVar
|
|
7263
|
-
)} is present in your Environment Variables`
|
|
7264
|
-
);
|
|
7265
|
-
}
|
|
7266
|
-
return value;
|
|
7267
|
-
}
|
|
7268
|
-
return object.value;
|
|
7269
|
-
}
|
|
7270
|
-
|
|
7271
7267
|
// ../generator-helper/src/byline.ts
|
|
7272
7268
|
var import_stream2 = __toESM(require("stream"));
|
|
7273
7269
|
var import_util = __toESM(require("util"));
|
|
@@ -7576,7 +7572,7 @@ var import_path6 = __toESM(require("path"));
|
|
|
7576
7572
|
// package.json
|
|
7577
7573
|
var package_default = {
|
|
7578
7574
|
name: "@prisma/client",
|
|
7579
|
-
version: "6.19.0-integration-
|
|
7575
|
+
version: "6.19.0-integration-feat-remove-binary-engine.1",
|
|
7580
7576
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
7581
7577
|
keywords: [
|
|
7582
7578
|
"ORM",
|
|
@@ -11265,9 +11261,6 @@ function getQueryEngineFilename(engineType, binaryTarget) {
|
|
|
11265
11261
|
if (engineType === "library" /* Library */) {
|
|
11266
11262
|
return getNodeAPIName(binaryTarget, "fs");
|
|
11267
11263
|
}
|
|
11268
|
-
if (engineType === "binary" /* Binary */) {
|
|
11269
|
-
return `query-engine-${binaryTarget}`;
|
|
11270
|
-
}
|
|
11271
11264
|
return void 0;
|
|
11272
11265
|
}
|
|
11273
11266
|
function buildNFTAnnotation(fileName, relativeOutdir) {
|
|
@@ -12539,7 +12532,7 @@ var TSClient = class {
|
|
|
12539
12532
|
};
|
|
12540
12533
|
const clientEngineType = getClientEngineType(generator);
|
|
12541
12534
|
generator.config.engineType = clientEngineType;
|
|
12542
|
-
const binaryTargets = clientEngineType === "library" /* Library */ ? Object.keys(binaryPaths.libqueryEngine ?? {}) :
|
|
12535
|
+
const binaryTargets = clientEngineType === "library" /* Library */ ? Object.keys(binaryPaths.libqueryEngine ?? {}) : [];
|
|
12543
12536
|
const datasourceFilePath = datasources[0].sourceFilePath;
|
|
12544
12537
|
const config = {
|
|
12545
12538
|
generator,
|
|
@@ -13355,7 +13348,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
13355
13348
|
runtimeName: getNodeRuntimeName(clientEngineType)
|
|
13356
13349
|
});
|
|
13357
13350
|
}
|
|
13358
|
-
const enginePath = clientEngineType === "library" /* Library */ ? binaryPaths.libqueryEngine :
|
|
13351
|
+
const enginePath = clientEngineType === "library" /* Library */ ? binaryPaths.libqueryEngine : void 0;
|
|
13359
13352
|
if (enginePath) {
|
|
13360
13353
|
if (process.env.NETLIFY) {
|
|
13361
13354
|
await (0, import_fs_extra.ensureDir)("/tmp/prisma-engines");
|
|
@@ -13557,9 +13550,6 @@ function findOutputPathDeclaration(datamodel) {
|
|
|
13557
13550
|
return null;
|
|
13558
13551
|
}
|
|
13559
13552
|
function getNodeRuntimeName(engineType) {
|
|
13560
|
-
if (engineType === "binary" /* Binary */) {
|
|
13561
|
-
return "binary";
|
|
13562
|
-
}
|
|
13563
13553
|
if (engineType === "library" /* Library */) {
|
|
13564
13554
|
return "library";
|
|
13565
13555
|
}
|
|
@@ -13610,7 +13600,7 @@ var import_node_path6 = __toESM(require("node:path"));
|
|
|
13610
13600
|
var import_engines_version = __toESM(require_engines_version());
|
|
13611
13601
|
|
|
13612
13602
|
// ../client-generator-js/package.json
|
|
13613
|
-
var version = "6.19.0-integration-
|
|
13603
|
+
var version = "6.19.0-integration-feat-remove-binary-engine.1";
|
|
13614
13604
|
|
|
13615
13605
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
13616
13606
|
var import_promises6 = __toESM(require("node:fs/promises"));
|
|
@@ -18662,7 +18652,7 @@ var PrismaClientJsGenerator = class {
|
|
|
18662
18652
|
this.#runtimePath = runtimePath;
|
|
18663
18653
|
}
|
|
18664
18654
|
async getManifest(config) {
|
|
18665
|
-
const requiresEngines = z(getClientEngineType(config)).with("library" /* Library */, () => ["libqueryEngine"]).with("
|
|
18655
|
+
const requiresEngines = z(getClientEngineType(config)).with("library" /* Library */, () => ["libqueryEngine"]).with("client" /* Client */, () => []).exhaustive();
|
|
18666
18656
|
debug3("requiresEngines", requiresEngines);
|
|
18667
18657
|
const defaultOutput = this.#shouldResolvePrismaClient ? await this.#getPrismaClientPath(config) : ".prisma/client";
|
|
18668
18658
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.19.0-integration-
|
|
3
|
+
"version": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ORM",
|
|
@@ -231,35 +231,35 @@
|
|
|
231
231
|
"typescript": "5.4.5",
|
|
232
232
|
"undici": "7.4.0",
|
|
233
233
|
"zx": "8.4.1",
|
|
234
|
-
"@prisma/adapter-
|
|
235
|
-
"@prisma/adapter-
|
|
236
|
-
"@prisma/adapter-
|
|
237
|
-
"@prisma/adapter-
|
|
238
|
-
"@prisma/adapter-
|
|
239
|
-
"@prisma/adapter-
|
|
240
|
-
"@prisma/adapter-
|
|
241
|
-
"@prisma/adapter-
|
|
242
|
-
"@prisma/client-common": "6.19.0-integration-
|
|
243
|
-
"@prisma/client-engine-runtime": "6.19.0-integration-
|
|
244
|
-
"@prisma/client-generator-
|
|
245
|
-
"@prisma/
|
|
246
|
-
"@prisma/debug": "6.19.0-integration-
|
|
247
|
-
"@prisma/
|
|
248
|
-
"@prisma/
|
|
249
|
-
"@prisma/engines": "6.19.0-integration-
|
|
250
|
-
"@prisma/
|
|
251
|
-
"@prisma/
|
|
252
|
-
"@prisma/
|
|
253
|
-
"@prisma/generator-helper": "6.19.0-integration-
|
|
254
|
-
"@prisma/
|
|
255
|
-
"@prisma/
|
|
256
|
-
"@prisma/
|
|
257
|
-
"@prisma/
|
|
258
|
-
"@prisma/
|
|
259
|
-
"@prisma/ts-builders": "6.19.0-integration-
|
|
234
|
+
"@prisma/adapter-d1": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
235
|
+
"@prisma/adapter-mariadb": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
236
|
+
"@prisma/adapter-better-sqlite3": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
237
|
+
"@prisma/adapter-libsql": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
238
|
+
"@prisma/adapter-mssql": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
239
|
+
"@prisma/adapter-neon": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
240
|
+
"@prisma/adapter-planetscale": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
241
|
+
"@prisma/adapter-pg": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
242
|
+
"@prisma/client-common": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
243
|
+
"@prisma/client-engine-runtime": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
244
|
+
"@prisma/client-generator-ts": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
245
|
+
"@prisma/config": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
246
|
+
"@prisma/debug": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
247
|
+
"@prisma/client-generator-js": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
248
|
+
"@prisma/driver-adapter-utils": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
249
|
+
"@prisma/engines": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
250
|
+
"@prisma/dmmf": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
251
|
+
"@prisma/generator": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
252
|
+
"@prisma/fetch-engine": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
253
|
+
"@prisma/generator-helper": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
254
|
+
"@prisma/get-platform": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
255
|
+
"@prisma/internals": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
256
|
+
"@prisma/instrumentation": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
257
|
+
"@prisma/query-plan-executor": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
258
|
+
"@prisma/migrate": "6.19.0-integration-feat-remove-binary-engine.1",
|
|
259
|
+
"@prisma/ts-builders": "6.19.0-integration-feat-remove-binary-engine.1"
|
|
260
260
|
},
|
|
261
261
|
"dependencies": {
|
|
262
|
-
"@prisma/client-runtime-utils": "6.19.0-integration-
|
|
262
|
+
"@prisma/client-runtime-utils": "6.19.0-integration-feat-remove-binary-engine.1"
|
|
263
263
|
},
|
|
264
264
|
"peerDependencies": {
|
|
265
265
|
"prisma": "*",
|
package/runtime/client.d.mts
CHANGED
|
@@ -1614,8 +1614,7 @@ declare type InteractiveTransactionInfo<Payload = unknown> = {
|
|
|
1614
1614
|
id: string;
|
|
1615
1615
|
/**
|
|
1616
1616
|
* Arbitrary payload the meaning of which depends on the `Engine` implementation.
|
|
1617
|
-
*
|
|
1618
|
-
* In `LibraryEngine` and `BinaryEngine` it is currently not used.
|
|
1617
|
+
* It is currently not used in `LibraryEngine`.
|
|
1619
1618
|
*/
|
|
1620
1619
|
payload: Payload;
|
|
1621
1620
|
};
|
package/runtime/client.d.ts
CHANGED
|
@@ -1614,8 +1614,7 @@ declare type InteractiveTransactionInfo<Payload = unknown> = {
|
|
|
1614
1614
|
id: string;
|
|
1615
1615
|
/**
|
|
1616
1616
|
* Arbitrary payload the meaning of which depends on the `Engine` implementation.
|
|
1617
|
-
*
|
|
1618
|
-
* In `LibraryEngine` and `BinaryEngine` it is currently not used.
|
|
1617
|
+
* It is currently not used in `LibraryEngine`.
|
|
1619
1618
|
*/
|
|
1620
1619
|
payload: Payload;
|
|
1621
1620
|
};
|