Packages

kysely

0.29.9 · 12 Nov 2026MIT32M / weekRepositoryHomepagenpmAtom feed

Your version

0.15.0

5 Jan 2022Where it was published

0.29.9 is the newest release of 0.15.x.

In short

2 breaking1 new

  • Breaking

    The db.migrate module has been removed. You now need to create an instance of Migrator instead.

  • Breaking

    The new Generated interface removes the need for db.generated which has now been removed. Simply mark your db-generated columns with Generated<T> in the table interface and remove db.generated.

Security

Release note

  • New ColumnType and Generated interfaces for defining separate interfaces for select, insert and update operations. See the example in the readme for more info.

Breaking changes

  • Breaking

    The db.migrate module has been removed. You now need to create an instance of Migrator instead.

  • Breaking

    The new Generated interface removes the need for db.generated which has now been removed. Simply mark your db-generated columns with Generated<T> in the table interface and remove db.generated.

Before:

interface Person {
  id: number,
  first_name: string
}
await db.insertInto('person').values({
  id: db.generated,
  first_name: 'Jennifer'
})

Now:

interface PersonTable {
  id: Generated<number>,
  first_name: string
}
type Person = Selectable<PersonTable>
await db.insertInto('person').values({
  first_name: 'Jennifer'
})

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.