0.36.1

drizzle-team/drizzle-orm0.36.1Nov 6, 2024by github-actions[bot]

AI Summary

This is a bug fix release addressing 4 issues related to prepared statements, dynamic queries, identity columns, and BigInt type handling. All fixes were contributed by @L-Mario564.

Key Highlights

  • Fixed sql.placeholder with limit and/or offset in prepared statements causing TypeScript errors
  • Fixed dynamic query modification when queries contain placeholders
  • Fixed inserting array of new rows using generatedAlwaysAsIdentity() for id columns
  • Fixed BigInt type compatibility with Bun runtime

Full Release Notes

# Bug Fixes

- [[BUG]: Using sql.placeholder with limit and/or offset for a prepared statement produces TS error](https://github.com/drizzle-team/drizzle-orm/issues/2146) - thanks @L-Mario564
- [[BUG] If a query I am trying to modify with a dynamic query (....$dynamic()) contains any placeholders, I'm getting an error that says No value for placeholder.... provided](https://github.com/drizzle-team/drizzle-orm/issues/2272) - thanks @L-Mario564
- [[BUG]: Error thrown when trying to insert an array of new rows using generatedAlwaysAsIdentity() for the id column](https://github.com/drizzle-team/drizzle-orm/issues/2849) - thanks @L-Mario564
- [[BUG]: Unable to Use BigInt Types with Bun and Drizzle](https://github.com/drizzle-team/drizzle-orm/issues/2603) - thanks @L-Mario564