kysely
0.29.9 · 12 Nov 2026MIT32M / weekRepositoryHomepagenpmAtom feed
Upgrading kysely From 0.26.3 to 0.27.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 10
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.27.0
- Breaking0.27.0
- Deprecated0.27.0
Security
3 advisories still affect 0.27.0
- Kysely 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 stringshigh · GHSA-8cpq-38p9-67gx
- Kysely: JSON-path traversal injection via unsanitized path-leg metacharacters in `JSONPathBuilder.key()` / `.at()`high · GHSA-pv5w-4p9q-p3v2
- SQL Injection via unsanitized JSON path keys when ignoring/silencing compilation errors or using `Kysely<any>`.high · GHSA-wmrf-hv6w-mr66
Upgrading to 0.28.17 clears them.
Release by release
- 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. - New
Add mssql dialect. A huge effort by @igalklebanov ❤️ #595
- Breaking
1 other line we could not sort, mostly version bumps
- 0.27.0
$narrowTypesupports new type tagNotNullfor an easier way to mark columns not nullable manually
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.