Skip to content
All news
ReleaseAI-written

Prisma ORM 7.10.1 fixes nested transactions and updates mariadb

Prisma ORM 7.10.1 fixes nested transaction state corruption, adds shadow database validation, and updates mariadb to 3.5.4 for security.

Prisma ORM 7.10.1 addresses critical defects in nested interactive transactions and refreshes several security-sensitive dependencies. This patch release ensures that transaction isolation remains intact during complex database operations.

A previous flaw allowed nested interactive transactions to corrupt the state of subsequent, unrelated transactions. The update stops Prisma Client from altering the options object supplied to nested $transaction calls. This change prevents the outer transaction ID from being written into that object. Previously, reusing an options object after a nested transaction could trigger error P2028 if the original transaction had already committed. If the original transaction remained open, reusing the object could cause new transactions to execute silently as savepoints within a different request's transaction context.

Prisma Migrate now validates the shadow database configuration more strictly. It rejects execution with error P3025 when the shadow database URL matches the main database URL. This prevents accidental migration runs against the primary data store.

The @prisma/adapter-mariadb package upgrades its dependency to mariadb version 3.5.4. This specific version resolves multiple security advisories found in version 3.5.3. The adapter also stops rewriting IPv6 hosts in connection strings, as the newer mariadb library accepts them in their original format. IPv6 connection strings function without modification following this dependency update.

  • mysql2 dependency updated
  • fast-uri dependency updated
  • deepmerge-ts dependency updated
  • source-map-js dependency updated