@prisma/query-plan-executor 7.2.0-integration-fix-sqlite-deadlock-fix.1 → 7.2.0-integration-fix-sqlite-deadlock-fix.2
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.js +6 -13
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -97773,7 +97773,7 @@ __export(index_exports, {
|
|
|
97773
97773
|
module.exports = __toCommonJS(index_exports);
|
|
97774
97774
|
|
|
97775
97775
|
// package.json
|
|
97776
|
-
var version = "7.2.0-integration-fix-sqlite-deadlock-fix.
|
|
97776
|
+
var version = "7.2.0-integration-fix-sqlite-deadlock-fix.2";
|
|
97777
97777
|
|
|
97778
97778
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
97779
97779
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -107859,21 +107859,14 @@ var TransactionManager = class {
|
|
|
107859
107859
|
const abortController = new AbortController();
|
|
107860
107860
|
const startTimer = createTimeoutIfDefined(() => abortController.abort(), options.maxWait);
|
|
107861
107861
|
startTimer?.unref?.();
|
|
107862
|
-
transaction.transaction = await
|
|
107863
|
-
|
|
107864
|
-
|
|
107865
|
-
|
|
107866
|
-
tx.rollback().catch((e2) => debug3("error in discarded transaction:", e2));
|
|
107867
|
-
resolve(void 0);
|
|
107868
|
-
} else {
|
|
107869
|
-
resolve(tx);
|
|
107870
|
-
}
|
|
107871
|
-
}, reject).finally(() => clearTimeout(startTimer));
|
|
107872
|
-
});
|
|
107862
|
+
transaction.transaction = await Promise.race([
|
|
107863
|
+
this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing).finally(() => clearTimeout(startTimer)),
|
|
107864
|
+
once(abortController.signal, "abort").then(() => void 0)
|
|
107865
|
+
]);
|
|
107873
107866
|
this.transactions.set(transaction.id, transaction);
|
|
107874
107867
|
switch (transaction.status) {
|
|
107875
107868
|
case "waiting":
|
|
107876
|
-
if (
|
|
107869
|
+
if (abortController.signal.aborted) {
|
|
107877
107870
|
await this.#closeTransaction(transaction, "timed_out");
|
|
107878
107871
|
throw new TransactionStartTimeoutError();
|
|
107879
107872
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.2.0-integration-fix-sqlite-deadlock-fix.
|
|
3
|
+
"version": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
|
|
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",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"vitest": "3.2.4",
|
|
22
22
|
"zod": "4.1.3",
|
|
23
|
-
"@prisma/adapter-pg": "7.2.0-integration-fix-sqlite-deadlock-fix.
|
|
24
|
-
"@prisma/
|
|
25
|
-
"@prisma/adapter-
|
|
26
|
-
"@prisma/
|
|
27
|
-
"@prisma/driver-adapter-utils": "7.2.0-integration-fix-sqlite-deadlock-fix.
|
|
23
|
+
"@prisma/adapter-pg": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
|
|
24
|
+
"@prisma/adapter-mariadb": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
|
|
25
|
+
"@prisma/adapter-mssql": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
|
|
26
|
+
"@prisma/client-engine-runtime": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
|
|
27
|
+
"@prisma/driver-adapter-utils": "7.2.0-integration-fix-sqlite-deadlock-fix.2"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|