kysely
0.29.9 · 12 Nov 2026MIT32M / weekRepositoryHomepagenpmAtom feed
0.29.9 is the newest release of 0.27.x.
In short
2 breaking1 deprecated10 new4 fixed1 changed
- Breaking
selectNoFromis removed fromExpressionBuilderdue to severe typescript performance issues.selectNoFromstill exists in theKyselyinstance, and in most cases, you can use that instead. See this example on how to migrate: kyse.link. - Breaking
Types are once again a little bit stricter in some places. You might get type errors from code like
where('first_name', '=', sql`something`). You need to explicitly give a type forsqlexpressions like thissql<string>`something` - Deprecated
Deprecated functions
eb.cmprandeb.bxphave been removed. Useebas a function instead.
Security
3 advisories affect 0.27.0; 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
Add mssql dialect. A huge effort by @igalklebanov ❤️ #595
Add postgres
json_aggandto_jsonfunctions to function moduleAdd
is distinct fromoperator #673Add
set('first_name', 'Jennifer')variant for update query'ssetmethod #672Add
asstatement support for createTable #771. Thank you @viraxslot ❤️Add
nulls not distinctoption for constraints #770. Thank you @viraxslot ❤️Add
addIndex&dropIndex@ AlterTableBuilder #720. Thank you @GasperoAdd
stream()support for sqlite dialect #754. Thank you @tgriesser ❤️Fix query and error logging both occur on error. #796. Thank you @igalklebanov ❤️
Fix type issue with
$if#793. Thank you @igalklebanov ❤️Fix issue where
onConflict..doUpdateSetused select types instead of update types. #792. Thank you @igalklebanov ❤️Add
eb.jsonPath<$>#791. Thank you @igalklebanov ❤️$narrowTypesupports new type tagNotNullfor an easier way to mark columns not nullable manuallyFix #811
Support arbitrary expressions in
minandmaxaggregate functions.
Breaking changes
- Breaking
selectNoFromis removed fromExpressionBuilderdue to severe typescript performance issues.selectNoFromstill exists in theKyselyinstance, and in most cases, you can use that instead. See this example on how to migrate: kyse.link. - Breaking
Types are once again a little bit stricter in some places. You might get type errors from code like
where('first_name', '=', sql`something`). You need to explicitly give a type forsqlexpressions like thissql<string>`something` - Deprecated
Deprecated functions
eb.cmprandeb.bxphave been removed. Useebas a function instead.
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.