drizzle-kit
0.31.11 · 21 Sep 2026MIT42.7M / weekRepositoryHomepagenpmAtom feed
Your version
0.31.11 is the newest release of 0.21.x.
In short
2 changed
Release note
🎉 Added support for
HAVINGclause🎉 Added support for referencing selected fields in
.where(),.having(),.groupBy()and.orderBy()using an optional callback:await db .select({ id: citiesTable.id, name: sql<string>`upper(${citiesTable.name})`.as('upper_name'), usersCount: sql<number>`count(${users2Table.id})::int`.as('users_count'), }) .from(citiesTable) .leftJoin(users2Table, eq(users2Table.cityId, citiesTable.id)) .where(({ name }) => sql`length(${name}) >= 3`) .groupBy(citiesTable.id) .having(({ usersCount }) => sql`${usersCount} > 0`) .orderBy(({ name }) => 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.