Skip to content

Releases: drizzle-team/drizzle-orm

0.25.1

23 Apr 14:09
619568f
Compare
Choose a tag to compare
  • 🐛 Fix package.json exports field

0.25.0

23 Apr 12:51
77212c6
Compare
Choose a tag to compare

ESM support

  • 🎉 Added ESM support! You can now use drizzle-orm in both ESM and CJS environments.
  • 🎉 Added code minification and source maps.
  • ❗ Removed several nested import paths. Most notably, everything from drizzle-orm/sql and drizzle-orm/expressions should now be imported from drizzle-orm instead.

0.24.5

23 Apr 08:31
e5597eb
Compare
Choose a tag to compare
  • Add possibility to have placeholders in .limit() and .offset()
const stmt = db
  .select({
    id: usersTable.id,
    name: usersTable.name,
  })
  .from(usersTable)
  .limit(placeholder('limit'))
  .offset(placeholder('offset'))
  .prepare('stmt');

const result = await stmt.execute({ limit: 1, offset: 1 });

0.24.4

19 Apr 19:10
ad72b8a
Compare
Choose a tag to compare
  • 🐛 Added verbose error when .values() is called without values (#441)
  • 🐛 Fixed nested PG arrays mapping (#460)
  • ❗ Removed spread syntax in .values() (#269)
  • 🐛 Fixed passing undefined as field value to insert/update (#375)

0.24.3

19 Apr 16:28
442aac3
Compare
Choose a tag to compare
  • 🐛 Fixed query generation when selecting from alias

0.24.2

18 Apr 21:30
b003e52
Compare
Choose a tag to compare
  • 🐛 Pool connections opened for transactions are now closed after the transaction is committed or rolled back

0.24.1

18 Apr 15:21
ae6c73b
Compare
Choose a tag to compare

Bugs

🐛 Fix onConflict targets in #475 - thanks @wkunert ❤️

Documentation

Thanks to @tmcw we have started our way to get JSDoc documentation

📄 JSDoc for conditions in #467 - thanks @tmcw ❤️

0.24.0

17 Apr 18:28
86cb375
Compare
Choose a tag to compare
  • 🎉 Added iterator support to mysql2 (sponsored by @rizen ❤). Read more in the docs
  • .prepare() in MySQL no longer requires a name argument

0.23.13

14 Apr 21:52
490de7b
Compare
Choose a tag to compare
  • 🎉 All enum and text enum columns now have a properly typed enumValues property

0.23.12

14 Apr 18:58
6e1aa47
Compare
Choose a tag to compare
  • 🐛 Fixed multi-level join results (e.g. joining a subquery with a nested join)