Packages

drizzle-kit

0.31.11 · 21 Sep 2026MIT42.7M / weekRepositoryHomepagenpmAtom feed

Your version

187 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 0.20.x
  2. 0.20.4 – 0.20.1815 releases without a noteShow each
  3. 0.20.3

    17 Nov 2023
    • 🎉 Added support for locking clauses in SELECT (SELECT ... FOR UPDATE):

      PostgreSQL

      await db
        .select()
        .from(users)
        .for('update')
        .for('no key update', { of: users })
        .for('no key update', { of: users, skipLocked: true })
        .for('share', { of: users, noWait: true });

      MySQL

      await db.select().from(users).for('update');
      await db.select().from(users).for('share', { skipLocked: true });
      await db.select().from(users).for('update', { noWait: true });
    • 🎉🐛 Custom column types now support returning SQL from toDriver() method in addition to the driverData type from generic.

  4. 0.20.2

    12 Nov 2023
    • 🎉 Added PostgreSQL network data types:

  5. 0.20.1

    9 Nov 2023
    • 🎉 Added { logger: true } shorthand to drizzle() to enable query logging. See logging docs for detailed logging configuration.

  6. 0.20.0

    9 Nov 2023
    • Deprecated

      ❗ sql`query`.as<type>() is now sql<type>`query`(). Old syntax is still supported, but is deprecated and will be removed in one of the next releases.

    • 🎉 Implemented support for WITH clause (docs). Example usage:

      const sq = db
        .select()
        .from(users)
        .prepareWithSubquery('sq');
      
      const result = await db
        .with(sq)
        .select({
          id: sq.id,
          name: sq.name,
          total: sql<number>`count(${sq.id})::int`(),
        })
        .from(sq)
        .groupBy(sq.id, sq.name);
    • 🐛 Fixed various bugs with selecting/joining of subqueries.

  7. 0.19.x
  8. 0.19.2 – 0.19.1312 releases without a noteShow each
  9. 0.19.1

    17 Jun 2023
    • Add char data type support for postgresql

    • Adding new section with New Contributors for release notes. Took this template from bun release notes pattern

  10. 0.19.0

    17 Jun 2023
    • 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 with db.select({ ... }).from(table) to look more like its SQL counterpart.

  11. 0.18.x
  12. 0.18.1

    25 May 2023
  13. 0.18.0

    19 May 2023
    • Improved join result types for partial selects (refer to the docs page for more information)

    • Renamed import paths for Postgres.js and SQL.js drivers to avoid bundling errors:

  14. 0.17.x
  15. 0.17.6

    23 Apr 2023

    Fix circular dependency for query building on all pg and mysql drivers

  16. 0.17.5

    18 Apr 2023

    We have released Planetscale Serverless driver support

  17. 0.17.4

    4 Apr 2023

    We have released SQLite Proxy Driver

  18. 0.17.3

    3 Apr 2023

    We have released AWS Data API support for PostgreSQL

  19. 0.17.2

    2 Apr 2023
    • Fixed package.json require path in drizzle-orm/version

  20. 0.17.1

    27 Mar 2023
    • Added feature showcase section to README

  21. 0.17.0

    3 Mar 2023
    • import { ... } from 'drizzle-orm-pg' -> import { ... } from 'drizzle-orm/pg-core'

    • import { ... } from 'drizzle-orm-pg/node' -> import { ... } from 'drizzle-orm/node-postgres'

    • import { ... } from 'drizzle-orm-pg/neondb' -> import { ... } from 'drizzle-orm/neon'

  22. 0.16.x
  23. 0.16.2 – 0.16.98 releases without a noteShow each

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.