@prisma/engines 6.19.0-integration-feat-remove-library-engine.4 → 6.19.0-integration-next.15

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,9 +4,10 @@ import { enginesVersion } from '@prisma/engines-version';
4
4
 
5
5
  export { enginesVersion }
6
6
 
7
- export declare function ensureNeededBinariesExist({ download, hasMigrateAdapterInConfig }: EnsureSomeBinariesExistInput): Promise<void>;
7
+ export declare function ensureNeededBinariesExist({ clientEngineType, download, hasMigrateAdapterInConfig, }: EnsureSomeBinariesExistInput): Promise<void>;
8
8
 
9
9
  declare type EnsureSomeBinariesExistInput = {
10
+ clientEngineType: 'library' | 'client';
10
11
  hasMigrateAdapterInConfig: boolean;
11
12
  download: (options: DownloadOptions) => Promise<BinaryPaths>;
12
13
  };
package/dist/index.js CHANGED
@@ -44,12 +44,20 @@ 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({ download, hasMigrateAdapterInConfig }) {
47
+ async function ensureNeededBinariesExist({
48
+ clientEngineType,
49
+ download,
50
+ hasMigrateAdapterInConfig
51
+ }) {
48
52
  const binaryDir = import_path.default.join(__dirname, "../");
49
53
  const binaries = {};
50
54
  if (!hasMigrateAdapterInConfig) {
51
55
  binaries[import_fetch_engine.BinaryType.SchemaEngineBinary] = binaryDir;
52
56
  }
57
+ const usesQueryCompiler = clientEngineType === "client";
58
+ if (!usesQueryCompiler) {
59
+ binaries[import_fetch_engine.BinaryType.QueryEngineLibrary] = binaryDir;
60
+ }
53
61
  debug(`binaries to download ${Object.keys(binaries).join(", ")}`);
54
62
  const binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS ? process.env.PRISMA_CLI_BINARY_TARGETS.split(",") : void 0;
55
63
  await download({
@@ -60,6 +68,30 @@ async function ensureNeededBinariesExist({ download, hasMigrateAdapterInConfig }
60
68
  binaryTargets
61
69
  });
62
70
  }
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");
63
95
  // Annotate the CommonJS export names for ESM import in node:
64
96
  0 && (module.exports = {
65
97
  enginesVersion,
@@ -2001,6 +2001,7 @@ 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),
2004
2005
  [import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.SchemaEngineBinary)
2005
2006
  };
2006
2007
  if (branch !== void 0) {
@@ -2028,8 +2029,10 @@ async function main() {
2028
2029
  }
2029
2030
  if (folder !== void 0) {
2030
2031
  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";
2031
2033
  const binExt = binaryTarget.includes("windows") ? ".exe" : "";
2032
2034
  const engineOutputPaths = {
2035
+ [import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(folder, "libquery_engine".concat(libExt)),
2033
2036
  [import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(folder, import_fetch_engine.BinaryType.SchemaEngineBinary.concat(binExt))
2034
2037
  };
2035
2038
  for (const [binaryType, outputPath] of Object.entries(engineOutputPaths)) {
@@ -42,6 +42,7 @@ 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,
45
46
  [import_fetch_engine.BinaryType.SchemaEngineBinary]: baseDir
46
47
  };
47
48
  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-feat-remove-library-engine.4",
3
+ "version": "6.19.0-integration-next.15",
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.24",
18
+ "@types/node": "~20.19.0",
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-29.next-ac95b5893b3c05bf39a2431fc1a748dd46152ab4",
25
- "@prisma/debug": "6.19.0-integration-feat-remove-library-engine.4",
26
- "@prisma/fetch-engine": "6.19.0-integration-feat-remove-library-engine.4",
27
- "@prisma/get-platform": "6.19.0-integration-feat-remove-library-engine.4"
25
+ "@prisma/debug": "6.19.0-integration-next.15",
26
+ "@prisma/get-platform": "6.19.0-integration-next.15",
27
+ "@prisma/fetch-engine": "6.19.0-integration-next.15"
28
28
  },
29
29
  "files": [
30
30
  "dist",