github kysely-org/kysely v0.28.18
0.28.18

2 hours ago

Hey 👋

A small batch of bug fixes. Please report any issues. 🤞😰🤞

This maintenance release backports bug fixes and documentation improvements from the 0.29 line.

Controlled transactions get fixes for connection leaks, shared completion state, and commands racing with ongoing queries:

  • Commit, rollback, and savepoint commands now wait for ongoing queries and streams to finish.
  • Close or exhaust active streams before awaiting these commands.
  • A failed rollback now releases the connection and marks the transaction as rolled back.

PostgreSQL and MSSQL now use session-level migration locks, including with disableTransactions: true. PostgreSQL migrations through PgBouncer transaction pooling need a direct connection, session pooling, or custom migration locking.

🚀 Features

🐞 Bugfixes

  • fix: allow explicit undefined in Updateable with exactOptionalPropertyTypes. by @y-hsgw in #1496
  • fix infinite type check recursion by @koskimas in #1960
  • fix: release controlled transaction connection when begin fails by @igalklebanov in #2080
  • fix: share completion state between controlled transaction handles by @igalklebanov in #2090
  • fix: release controlled transaction connection when rollback fails by @B4nan in #2136
  • fix: serialize controlled transaction commands with queries by @igalklebanov in #2081

PostgreSQL 🐘 / MSSQL 🥅

PostgreSQL 🐘 / SQLite 📘

On-conflict WHERE predicates now use column select types, including for columns that cannot be updated.

PostgreSQL 🐘

SQLite 📘

  • fix(sqlite): output RETURNING before ORDER BY and LIMIT in delete queries. by @igalklebanov in #1946

MSSQL 🥅

📖 Documentation

📦 CICD & Tooling

⚠️ Breaking Changes

🐤 New Contributors

What's Changed

Full Changelog: v0.28.17...v0.28.18

Don't miss a new kysely release

NewReleases is sending notifications on new releases.