kysely
0.29.9 · 12 Nov 2026MIT32M / weekRepositoryHomepagenpmAtom feed
0.29.9 is the newest release of 0.14.x.
In short
2 breaking1 changed
- Breaking
All
expressionmethods in the schema module previously took a raw SQL string. Those all now take adb.rawinstance instead for consistency. - Breaking
onConflictDoNothingandonConflictUpdatemethods have been replaced by a single onConflict method.
Security
1 advisory affects 0.14.0; 0.28.14 fixes them
Release note
Kysely now supports all the features of SQLite on conflict clause (almost all features of the PostgreSQL on conflict clause)
Breaking changes
- Breaking
All
expressionmethods in the schema module previously took a raw SQL string. Those all now take adb.rawinstance instead for consistency.
// Before
db.schema
.alterTable('person')
.addCheckConstraint('some_constraint', 'a < b')
// Now
db.schema
.alterTable('person')
.addCheckConstraint('some_constraint', db.raw('a < b'))- Breaking
onConflictDoNothingandonConflictUpdatemethods have been replaced by a single onConflict method.
// Before
db.insertInto('pet').values(pet).onConflictUpdate('name', updates)
// Now
db.insertInto('pet').values(pet).onConflict(
// Also see the `columns` and `constraint` methods.
(oc) => oc.column('name').doUpdateSet(updates)
)// Before
db.insertInto('pet').values(pet).onConflictDoNothing('name')
// Now
db.insertInto('pet').values(pet).onConflict(
(oc) => oc.column('name').doNothing()
)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.