drizzle-kit
0.31.11 · 21 Sep 2026MIT42.7M / weekRepositoryHomepagenpmAtom feed
Your version
0.31.11 is the newest release of 0.19.x.
In short
1 new1 changed
Release note
Implemented selecting and joining a subquery. Example usage:
const sq = db .select({ categoryId: courseCategoriesTable.id, category: courseCategoriesTable.name, total: sql`count(${courseCategoriesTable.id})`.as<number>(), }) .from(courseCategoriesTable) .groupBy(courseCategoriesTable.id, courseCategoriesTable.name) .subquery('sq');After that, just use the subquery instead of a table as usual.
❗ Replaced
db.select(table).fields({ ... })syntax withdb.select({ ... }).from(table)to look more like its SQL counterpart.
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.