kysely
0.29.9 · 12 Nov 2026MIT32M / weekRepositoryHomepagenpmAtom feed
0.29.9 is the newest release of 0.26.x.
In short
8 new
Security
3 advisories affect 0.26.2; 0.28.17 fixes them
- HighKysely: JSON-path traversal injection via unsanitized path-leg metacharacters in `JSONPathBuilder.key()` / `.at()`GHSA-pv5w-4p9q-p3v2 · 11 May 2026Fixed in 0.28.17
- HighKysely has a MySQL SQL Injection via Insufficient Backslash Escaping in `sql.lit(string)` usage or similar methods that append string literal values into the compiled SQL stringsGHSA-8cpq-38p9-67gx · 20 Mar 2026Fixed in 0.28.14
- HighSQL Injection via unsanitized JSON path keys when ignoring/silencing compilation errors or using `Kysely<any>`.GHSA-wmrf-hv6w-mr66 · 18 Mar 2026Fixed in 0.28.12
Release note
Added support for select statements without a
fromclause. The function is called selectNoFrom. The function name was selected after a lot of discussion. The most natural name would just beselect, but new users would find that in a list of autocompletions beforeselectFromand naturally use it when trying to create aselect fromquery. This would be especially true for people coming from knex where aselect fromquery is started using aselectcall. #605Add object variants of
andandorfunctions. Allows easywhere(eb => eb.and(object))filters. #583Add addPrimaryKeyConstraint for AlterTableBuilder. #639 Thank you @n7olkachev ❤️
Add
anyfunction to function module. #612Add
betweenmethod to expression builder. #602Add
litmethod to expression builder. #600Add multi-column variant of
orderBy. #423 Thank you @igalklebanov ❤️
An example of an object and call:
const persons = await db
.selectFrom('person')
.selectAll()
.where((eb) => eb.and({
first_name: 'Jennifer',
last_name: eb.ref('first_name')
}))
.execute()select * from "person" where "first_name" = $1 and "last_name" = "first_name"
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.