@prisma/engines 6.19.0-integration-next.16 → 6.19.0-integration-feat-remove-library-engine.5

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.d.ts CHANGED
@@ -4,10 +4,9 @@ import { enginesVersion } from '@prisma/engines-version';
4
4
 
5
5
  export { enginesVersion }
6
6
 
7
- export declare function ensureNeededBinariesExist({ clientEngineType, download, hasMigrateAdapterInConfig, }: EnsureSomeBinariesExistInput): Promise<void>;
7
+ export declare function ensureNeededBinariesExist({ download, hasMigrateAdapterInConfig }: EnsureSomeBinariesExistInput): Promise<void>;
8
8
 
9
9
  declare type EnsureSomeBinariesExistInput = {
10
- clientEngineType: 'library' | 'client';
11
10
  hasMigrateAdapterInConfig: boolean;
12
11
  download: (options: DownloadOptions) => Promise<BinaryPaths>;
13
12
  };
package/dist/index.js CHANGED
@@ -44,20 +44,12 @@ var debug = (0, import_debug.Debug)("prisma:engines");
44
44
  function getEnginesPath() {
45
45
  return import_path.default.join(__dirname, "../");
46
46
  }
47
- async function ensureNeededBinariesExist({
48
- clientEngineType,
49
- download,
50
- hasMigrateAdapterInConfig
51
- }) {
47
+ async function ensureNeededBinariesExist({ download, hasMigrateAdapterInConfig }) {
52
48
  const binaryDir = import_path.default.join(__dirname, "../");
53
49
  const binaries = {};
54
50
  if (!hasMigrateAdapterInConfig) {
55
51
  binaries[import_fetch_engine.BinaryType.SchemaEngineBinary] = binaryDir;
56
52
  }
57
- const usesQueryCompiler = clientEngineType === "client";
58
- if (!usesQueryCompiler) {
59
- binaries[import_fetch_engine.BinaryType.QueryEngineLibrary] = binaryDir;
60
- }
61
53
  debug(`binaries to download ${Object.keys(binaries).join(", ")}`);
62
54
  const binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS ? process.env.PRISMA_CLI_BINARY_TARGETS.split(",") : void 0;
63
55
  await download({
@@ -68,30 +60,6 @@ async function ensureNeededBinariesExist({
68
60
  binaryTargets
69
61
  });
70
62
  }
71
- import_path.default.join(__dirname, "../query-engine-darwin");
72
- import_path.default.join(__dirname, "../query-engine-darwin-arm64");
73
- import_path.default.join(__dirname, "../query-engine-debian-openssl-1.0.x");
74
- import_path.default.join(__dirname, "../query-engine-debian-openssl-1.1.x");
75
- import_path.default.join(__dirname, "../query-engine-debian-openssl-3.0.x");
76
- import_path.default.join(__dirname, "../query-engine-linux-static-x64");
77
- import_path.default.join(__dirname, "../query-engine-linux-static-arm64");
78
- import_path.default.join(__dirname, "../query-engine-rhel-openssl-1.0.x");
79
- import_path.default.join(__dirname, "../query-engine-rhel-openssl-1.1.x");
80
- import_path.default.join(__dirname, "../query-engine-rhel-openssl-3.0.x");
81
- import_path.default.join(__dirname, "../libquery_engine-darwin.dylib.node");
82
- import_path.default.join(__dirname, "../libquery_engine-darwin-arm64.dylib.node");
83
- import_path.default.join(__dirname, "../libquery_engine-debian-openssl-1.0.x.so.node");
84
- import_path.default.join(__dirname, "../libquery_engine-debian-openssl-1.1.x.so.node");
85
- import_path.default.join(__dirname, "../libquery_engine-debian-openssl-3.0.x.so.node");
86
- import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-1.0.x.so.node");
87
- import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-1.1.x.so.node");
88
- import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-3.0.x.so.node");
89
- import_path.default.join(__dirname, "../libquery_engine-linux-musl.so.node");
90
- import_path.default.join(__dirname, "../libquery_engine-linux-musl-openssl-3.0.x.so.node");
91
- import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-1.0.x.so.node");
92
- import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-1.1.x.so.node");
93
- import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-3.0.x.so.node");
94
- import_path.default.join(__dirname, "../query_engine-windows.dll.node");
95
63
  // Annotate the CommonJS export names for ESM import in node:
96
64
  0 && (module.exports = {
97
65
  enginesVersion,
@@ -2001,7 +2001,6 @@ async function main() {
2001
2001
  const branch = import_package.enginesOverride?.["branch"];
2002
2002
  let folder = import_package.enginesOverride?.["folder"];
2003
2003
  const engineCachePaths = {
2004
- [import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.QueryEngineLibrary),
2005
2004
  [import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.SchemaEngineBinary)
2006
2005
  };
2007
2006
  if (branch !== void 0) {
@@ -2029,10 +2028,8 @@ async function main() {
2029
2028
  }
2030
2029
  if (folder !== void 0) {
2031
2030
  folder = import_path.default.isAbsolute(folder) ? folder : import_path.default.join(baseDir, folder);
2032
- const libExt = binaryTarget.includes("windows") ? ".dll" : binaryTarget.includes("darwin") ? ".dylib" : ".so";
2033
2031
  const binExt = binaryTarget.includes("windows") ? ".exe" : "";
2034
2032
  const engineOutputPaths = {
2035
- [import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(folder, "libquery_engine".concat(libExt)),
2036
2033
  [import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(folder, import_fetch_engine.BinaryType.SchemaEngineBinary.concat(binExt))
2037
2034
  };
2038
2035
  for (const [binaryType, outputPath] of Object.entries(engineOutputPaths)) {
@@ -42,7 +42,6 @@ async function main() {
42
42
  binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS.split(",");
43
43
  }
44
44
  const binaries = {
45
- [import_fetch_engine.BinaryType.QueryEngineLibrary]: baseDir,
46
45
  [import_fetch_engine.BinaryType.SchemaEngineBinary]: baseDir
47
46
  };
48
47
  await (0, import_fetch_engine.download)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/engines",
3
- "version": "6.19.0-integration-next.16",
3
+ "version": "6.19.0-integration-feat-remove-library-engine.5",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,16 +15,16 @@
15
15
  "@swc/core": "1.11.5",
16
16
  "@swc/jest": "0.2.37",
17
17
  "@types/jest": "29.5.14",
18
- "@types/node": "~20.19.0",
18
+ "@types/node": "~20.19.24",
19
19
  "execa": "5.1.1",
20
20
  "typescript": "5.4.5",
21
21
  "vitest": "3.2.4"
22
22
  },
23
23
  "dependencies": {
24
24
  "@prisma/engines-version": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
25
- "@prisma/debug": "6.19.0-integration-next.16",
26
- "@prisma/fetch-engine": "6.19.0-integration-next.16",
27
- "@prisma/get-platform": "6.19.0-integration-next.16"
25
+ "@prisma/get-platform": "6.19.0-integration-feat-remove-library-engine.5",
26
+ "@prisma/fetch-engine": "6.19.0-integration-feat-remove-library-engine.5",
27
+ "@prisma/debug": "6.19.0-integration-feat-remove-library-engine.5"
28
28
  },
29
29
  "files": [
30
30
  "dist",