Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 13, 2025

This PR contains the following updates:

Package Change Age Confidence
kysely (source) ^0.27.4 β†’ ^0.28.0 age confidence

Release Notes

kysely-org/kysely (kysely)

v0.28.9: 0.28.9

Compare Source

Hey πŸ‘‹

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

πŸš€ Features

🐞 Bugfixes

PostgreSQL 🐘

πŸ“– Documentation

πŸ“¦ CICD & Tooling

⚠️ Breaking Changes

🐀 New Contributors

Full Changelog: kysely-org/kysely@v0.28.8...v0.28.9

v0.28.8: 0.28.8

Compare Source

Hey πŸ‘‹

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

πŸš€ Features
🐞 Bugfixes
PostgreSQL 🐘
πŸ“– Documentation
πŸ“¦ CICD & Tooling
⚠️ Breaking Changes
🐀 New Contributors

Full Changelog: kysely-org/kysely@v0.28.7...v0.28.8

v0.28.7: 0.28.7

Compare Source

Hey πŸ‘‹

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

πŸš€ Features
🐞 Bugfixes
πŸ“– Documentation
πŸ“¦ CICD & Tooling
⚠️ Breaking Changes
🐀 New Contributors

Full Changelog: kysely-org/kysely@v0.28.6...v0.28.7

v0.28.6: 0.28.6

Compare Source

Hey πŸ‘‹

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

Docs site has been optimized and all we got was this animation:

image
πŸš€ Features
🐞 Bugfixes
PostgreSQL 🐘 / MSSQL πŸ₯…
MySQL 🐬
πŸ“– Documentation
πŸ“¦ CICD & Tooling
⚠️ Breaking Changes
🐀 New Contributors

Full Changelog: kysely-org/kysely@v0.28.5...v0.28.6

v0.28.5: 0.28.5

Compare Source

Hey πŸ‘‹

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

πŸš€ Features
🐞 Bugfixes
πŸ“– Documentation
πŸ“¦ CICD & Tooling
⚠️ Breaking Changes
🐀 New Contributors

Full Changelog: kysely-org/kysely@v0.28.4...v0.28.5

v0.28.4: 0.28.4

Compare Source

Hey πŸ‘‹

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

πŸš€ Features
🐞 Bugfixes
PostgreSQL 🐘
πŸ“– Documentation
πŸ“¦ CICD & Tooling
⚠️ Breaking Changes
🐀 New Contributors

Full Changelog: kysely-org/kysely@v0.28.3...v0.28.4

v0.28.3: 0.28.3

Compare Source

Hey πŸ‘‹

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

πŸš€ Features
CockroachDB 🟣
🐞 Bugfixes
MySQL 🐬 / MS SQL Server πŸ₯…
MS SQL Server πŸ₯…
πŸ“– Documentation
πŸ“¦ CICD & Tooling
⚠️ Breaking Changes
🐀 New Contributors

Full Changelog: kysely-org/kysely@0.28.2...v0.28.3

v0.28.2

Compare Source

Hey πŸ‘‹

v0.28 broke an undocumented TypeScript behavior our API had that allowed you to pass table name unions to query builders and enable some DRYing of queries. Seeing that this pattern was quite popular, we decided to support it officially with the addition of the table method in the dynamic module.

You can pull off some crazy complex stuff like:

async function getRowByColumn<
  T extends keyof Database,
  C extends keyof Database[T] & string,
  V extends SelectType<Database[T][C]>,
>(t: T, c: C, v: V) {
  // We need to use the dynamic module since the table name
  // is not known at compile time.
  const { table, ref } = db.dynamic

  return await db
    .selectFrom(table(t).as('t'))
    .selectAll()
    .where(ref(c), '=', v)
    // `id` can be directly referenced since every table has it.
    .orderBy('t.id')
    .executeTakeFirstOrThrow()
}

const person = await getRowByColumn('person', 'first_name', 'Arnold')

...and it'll narrow the downstream query context to the intersection of all the possible shapes of tables in the union type. (DONT DO THIS AT HOME KIDS!)

A simpler example would be:

async function deleteItem(id: string, table: 'person' | 'pet') {
  await db
    .deleteFrom(db.dynamic.table(table).as('t'))
    .where('id', '=', id)
    .executeTakeFirstOrThrow()
}

If you attempt to refer to a column that doesn't exist in both "person" and "pet" (e.g. "pet"'s "species" column), the compiler will correctly yell at you.

πŸš€ Features

🐞 Bugfixes

SQLite πŸ“˜

πŸ“– Documentation

πŸ“¦ CICD & Tooling

⚠️ Breaking Changes

🐀 New Contributors

Full Changelog: kysely-org/kysely@0.28.1...0.28.2

v0.28.1

Compare Source

Hey πŸ‘‹

Just a small crucial bug fix release. Please inform us if you see any more regressions since v0.28. πŸ™

πŸš€ Features

🐞 Bugfixes

PostgreSQL 🐘

πŸ“– Documentation

πŸ“¦ CICD & Tooling

⚠️ Breaking Changes

🐀 New Contributors

Full Changelog: kysely-org/kysely@0.28.0...0.28.1

v0.28.0

Compare Source

Hey πŸ‘‹

Transactions are getting a lot of love in this one!

As part an effort to replace Knex with Kysely, B4nan, the author of mikro-orm drove the new setAccessMode('read only'|'read write') method when starting transactions.

You can now commit/rollback transactions manually and there's even savepoint support:

const trx = await db.startTransaction().execute()

try {
  // do stuff with `trx`, including work with savepoints via the new `savepoint(name)`, `rollbackToSavepoint(name)` and `releaseSavepoint(name)` methods!

  await trx.commit().execute()
} catch (error) {
  await trx.rollback().execute()

  throw error
}

We also added using keyword support, so now you can write:

await using db = new Kysely({...})

and db.destroy() will be called automatically once the current scope is exited.
If you plan on trying this out (it is optional, you can still const db = new Kysely({...}) and await db.destroy() manually), the using keyword requires typescript >= 5.2 and the following tsconfig.json options:

{
  "compilerOptions": {
    "target": "ES2022",
    "lib": ["ESNext", ...],
    ...
  }
  ...
}

We also added a plugin to handle in () and not in (). It comes with 2 handling strategies, one similar to how Knex.js, PrismaORM, Laravel and SQLAlchemy do it, and one similar to how TypeORM and Sequelize do it. It also supports custom strategies, e.g. throwing an error to avoid making a call to the database and wasting resources. Here's an example with one of the strategies we ship:

import {
  // ...
  HandleEmptyInListsPlugin,
  // ...
  replaceWithNoncontingentExpression,
  // ...
} from 'kysely'

const db = new Kysely<Database>({
  // ...
  plugins: [
    new HandleEmptyInListsPlugin({
      strategy: replaceWithNoncontingentExpression
    })
  ],
})

// ...
  .where('id', 'in', [])
  .where('first_name', 'not in', []) // => `where 1 = 0 and 1 = 1`

πŸš€ Features

PostgreSQL 🐘 / MySQL 🐬
PostgreSQL 🐘 / MS SQL Server πŸ₯…
PostgreSQL 🐘 / SQLite πŸ“˜
PostgreSQL 🐘
MySQL 🐬
MS SQL Server πŸ₯…
SQLite πŸ“˜

🐞 Bugfixes

PostgreSQL 🐘

πŸ“– Documentation

πŸ“¦ CICD & Tooling

⚠️ Breaking Changes

  • InferResult now outputs InsertResult[], UpdateResult[], DeleteResult[], MergeResult[], instead of InsertResult, UpdateResult, DeleteResult, MergeResult. To get the singular form, use type Result = InferResult<T>[number].
  • Some generic/wide usages of QueryCreator's methods should no longer pass type checks. We never supported these officially.
  • As preventAwait is now removed on all builders, you must avoid awaiting builders without calling execute-like methods on your own.
  • TypeScript versions 4.5 and older are no longer supported. You will get an immediate compilation error telling you to upgrade.
  • QueryResult.numUpdatedOrDeletedRows has been removed (after spending ~2 years in deprecation). We still log a warning. Outdated dialects that don't use QueryResult.numAffectedRows should be updated OR forked.
  • DefaultQueryExecutor.compileQuery now requires passing a queryId argument. Use the newly exported createQueryId() as that argument value from now on.
  • UpdateValuesNode type has been removed.
  • MssqlDialectConfig.tedious.resetConnectionOnRelease has been deprecated, and had it's default flipped to false. Use MssqlDialectConfig.resetConnectionsOnRelease instead.
  • MssqlDialectConfig.tarn.options.validateConnections has been deprecated. Use MssqlDialectConfig.validateConnections instead.
  • String literals are now ' injection protected, hopefully. Please report any issues.

🐀 New Contributors

Full Changelog: kysely-org/kysely@0.27.6...0.28.0

v0.27.6

Compare Source

Hey πŸ‘‹

v0.28 is right around the corner! πŸ‘€

πŸš€ Features

🐞 Bugfixes

PostgreSQL 🐘
SQLite πŸ“˜

πŸ“– Documentation

PostgreSQL 🐘

πŸ“¦ CICD & Tooling

⚠️ Breaking Changes

🐀 New Contributors

Full Changelog: kysely-org/kysely@0.27.5...0.27.6

v0.27.5

Compare Source

Hey πŸ‘‹

Long-time community member and ambassador @​thelinuxlich has joined the contributors club! πŸ…

v0.28 is right around the corner! πŸ‘€

πŸš€ Features

PostgreSQL 🐘 / MySQL 🐬 / SQLite πŸ“˜
PostgreSQL 🐘 / MySQL 🐬
PostgreSQL 🐘
MS SQL Server πŸ₯…

🐞 Bugfixes

πŸ“– Documentation

πŸ“¦ CICD & Tooling

⚠️ Breaking Changes

🐀 New Contributors

Full Changelog: kysely-org/kysely@0.27.4...0.27.5


Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Apr 13, 2025
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from b93b2bc to 023ad8d Compare May 12, 2025 22:26
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from 023ad8d to 291dac4 Compare August 2, 2025 07:52
@renovate renovate bot force-pushed the renovate/kysely-0.x branch 3 times, most recently from 2187f96 to a76933e Compare August 13, 2025 11:58
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from a76933e to a2fcf24 Compare August 19, 2025 13:55
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from a2fcf24 to 58601d0 Compare August 31, 2025 14:03
@renovate renovate bot force-pushed the renovate/kysely-0.x branch 2 times, most recently from 440d059 to 0547386 Compare September 14, 2025 17:05
@renovate renovate bot force-pushed the renovate/kysely-0.x branch 6 times, most recently from 55d578c to e964c7c Compare September 29, 2025 09:06
@renovate renovate bot force-pushed the renovate/kysely-0.x branch 8 times, most recently from 32bf6d6 to 989643a Compare October 10, 2025 20:14
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from 989643a to d099348 Compare October 21, 2025 10:37
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from d099348 to 763b39a Compare November 10, 2025 17:37
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from 763b39a to bc24aaa Compare November 18, 2025 14:16
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from bc24aaa to 86c8b27 Compare December 3, 2025 16:56
@renovate renovate bot force-pushed the renovate/kysely-0.x branch from 86c8b27 to e4f8fba Compare December 13, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant