@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.
@@ -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-next.6",
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 ?? {}) : Object.keys(binaryPaths.queryEngine ?? {});
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 : binaryPaths.queryEngine;
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-next.6";
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("binary" /* Binary */, () => ["queryEngine"]).with("client" /* Client */, () => []).exhaustive();
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-next.6",
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-better-sqlite3": "6.19.0-integration-next.6",
235
- "@prisma/adapter-libsql": "6.19.0-integration-next.6",
236
- "@prisma/adapter-d1": "6.19.0-integration-next.6",
237
- "@prisma/adapter-mssql": "6.19.0-integration-next.6",
238
- "@prisma/adapter-pg": "6.19.0-integration-next.6",
239
- "@prisma/adapter-mariadb": "6.19.0-integration-next.6",
240
- "@prisma/adapter-neon": "6.19.0-integration-next.6",
241
- "@prisma/adapter-planetscale": "6.19.0-integration-next.6",
242
- "@prisma/client-common": "6.19.0-integration-next.6",
243
- "@prisma/client-engine-runtime": "6.19.0-integration-next.6",
244
- "@prisma/client-generator-js": "6.19.0-integration-next.6",
245
- "@prisma/client-generator-ts": "6.19.0-integration-next.6",
246
- "@prisma/debug": "6.19.0-integration-next.6",
247
- "@prisma/config": "6.19.0-integration-next.6",
248
- "@prisma/dmmf": "6.19.0-integration-next.6",
249
- "@prisma/engines": "6.19.0-integration-next.6",
250
- "@prisma/driver-adapter-utils": "6.19.0-integration-next.6",
251
- "@prisma/fetch-engine": "6.19.0-integration-next.6",
252
- "@prisma/generator": "6.19.0-integration-next.6",
253
- "@prisma/generator-helper": "6.19.0-integration-next.6",
254
- "@prisma/internals": "6.19.0-integration-next.6",
255
- "@prisma/instrumentation": "6.19.0-integration-next.6",
256
- "@prisma/get-platform": "6.19.0-integration-next.6",
257
- "@prisma/migrate": "6.19.0-integration-next.6",
258
- "@prisma/query-plan-executor": "6.19.0-integration-next.6",
259
- "@prisma/ts-builders": "6.19.0-integration-next.6"
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-next.6"
262
+ "@prisma/client-runtime-utils": "6.19.0-integration-feat-remove-binary-engine.1"
263
263
  },
264
264
  "peerDependencies": {
265
265
  "prisma": "*",
@@ -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
- * For example, `DataProxyEngine` needs to associate different API endpoints with transactions.
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
  };
@@ -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
- * For example, `DataProxyEngine` needs to associate different API endpoints with transactions.
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
  };