@prisma/client-engine-runtime 7.2.0-integration-fix-enums-mapped-types-v7.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 CHANGED
@@ -2043,16 +2043,14 @@ var TransactionManager = class {
2043
2043
  const abortController = new AbortController();
2044
2044
  const startTimer = createTimeoutIfDefined(() => abortController.abort(), options.maxWait);
2045
2045
  startTimer?.unref?.();
2046
- const startTransactionPromise = this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing);
2047
2046
  transaction.transaction = await Promise.race([
2048
- startTransactionPromise.finally(() => clearTimeout(startTimer)),
2047
+ this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing).finally(() => clearTimeout(startTimer)),
2049
2048
  once(abortController.signal, "abort").then(() => void 0)
2050
2049
  ]);
2051
2050
  this.transactions.set(transaction.id, transaction);
2052
2051
  switch (transaction.status) {
2053
2052
  case "waiting":
2054
2053
  if (abortController.signal.aborted) {
2055
- void startTransactionPromise.then((tx) => tx.rollback()).catch((e) => debug("error in discarded transaction:", e));
2056
2054
  await this.#closeTransaction(transaction, "timed_out");
2057
2055
  throw new TransactionStartTimeoutError();
2058
2056
  }
package/dist/index.mjs CHANGED
@@ -1992,16 +1992,14 @@ var TransactionManager = class {
1992
1992
  const abortController = new AbortController();
1993
1993
  const startTimer = createTimeoutIfDefined(() => abortController.abort(), options.maxWait);
1994
1994
  startTimer?.unref?.();
1995
- const startTransactionPromise = this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing);
1996
1995
  transaction.transaction = await Promise.race([
1997
- startTransactionPromise.finally(() => clearTimeout(startTimer)),
1996
+ this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing).finally(() => clearTimeout(startTimer)),
1998
1997
  once(abortController.signal, "abort").then(() => void 0)
1999
1998
  ]);
2000
1999
  this.transactions.set(transaction.id, transaction);
2001
2000
  switch (transaction.status) {
2002
2001
  case "waiting":
2003
2002
  if (abortController.signal.aborted) {
2004
- void startTransactionPromise.then((tx) => tx.rollback()).catch((e) => debug("error in discarded transaction:", e));
2005
2003
  await this.#closeTransaction(transaction, "timed_out");
2006
2004
  throw new TransactionStartTimeoutError();
2007
2005
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-engine-runtime",
3
- "version": "7.2.0-integration-fix-enums-mapped-types-v7.1",
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
  "module": "dist/index.mjs",
@@ -30,10 +30,10 @@
30
30
  "nanoid": "5.1.5",
31
31
  "ulid": "3.0.0",
32
32
  "uuid": "11.1.0",
33
- "@prisma/client-runtime-utils": "7.2.0-integration-fix-enums-mapped-types-v7.1",
34
- "@prisma/debug": "7.2.0-integration-fix-enums-mapped-types-v7.1",
35
- "@prisma/sqlcommenter": "7.2.0-integration-fix-enums-mapped-types-v7.1",
36
- "@prisma/driver-adapter-utils": "7.2.0-integration-fix-enums-mapped-types-v7.1"
33
+ "@prisma/client-runtime-utils": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
34
+ "@prisma/debug": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
35
+ "@prisma/driver-adapter-utils": "7.2.0-integration-fix-sqlite-deadlock-fix.2",
36
+ "@prisma/sqlcommenter": "7.2.0-integration-fix-sqlite-deadlock-fix.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/jest": "29.5.14",