Packages

kysely

0.29.9 · 12 Nov 2026MIT32M / weekRepositoryHomepagenpmAtom feed

Your version

0.27.0

30 Dec 2023Where it was published

0.29.9 is the newest release of 0.27.x.

In short

2 breaking1 deprecated10 new4 fixed1 changed

  • Breaking

    selectNoFrom is removed from ExpressionBuilder due to severe typescript performance issues. selectNoFrom still exists in the Kysely instance, 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 for sql expressions like this sql<string>`something`

  • Deprecated

    Deprecated functions eb.cmpr and eb.bxp have been removed. Use eb as a function instead.

Security

Release note

  • Add mssql dialect. A huge effort by @igalklebanov ❤️ #595

  • Add postgres json_agg and to_json functions to function module

  • Add is distinct from operator #673

  • Add set('first_name', 'Jennifer') variant for update query's set method #672

  • Add as statement support for createTable #771. Thank you @viraxslot ❤️

  • Add nulls not distinct option for constraints #770. Thank you @viraxslot ❤️

  • Add addIndex & dropIndex @ AlterTableBuilder #720. Thank you @Gaspero

  • Add 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..doUpdateSet used select types instead of update types. #792. Thank you @igalklebanov ❤️

  • Add eb.jsonPath<$> #791. Thank you @igalklebanov ❤️

  • $narrowType supports new type tag NotNull for an easier way to mark columns not nullable manually

  • Fix #811

  • Support arbitrary expressions in min and max aggregate functions.

Breaking changes

  • Breaking

    selectNoFrom is removed from ExpressionBuilder due to severe typescript performance issues. selectNoFrom still exists in the Kysely instance, 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 for sql expressions like this sql<string>`something`

  • Deprecated

    Deprecated functions eb.cmpr and eb.bxp have been removed. Use eb as 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.