v1.0.0-rc.2
Breaking Changes📦 drizzle-ormView on GitHub →
⚠ 1 breaking✨ 3 features🐛 3 fixes🔧 8 symbols
Summary
This release introduces significant improvements to SQLite migration handling, including conflict detection and better tree merging, alongside fixes for custom column codecs and PG transaction implementation details.
⚠️ Breaking Changes
- PG transactions switched from class properties back to class methods. Code relying on transaction methods being accessible as properties must be updated to call them as methods (e.g., `tx.method()` instead of `tx.property`).
Migration Steps
- If you were accessing PG transaction methods as properties, update the calls to use them as methods.
- When generating SQLite migrations, if you encounter conflict detection errors and wish to proceed, use the `--ignore-conflicts` flag with `drizzle-kit generate` or `drizzle-kit check`.
✨ New Features
- Added migration conflict detection for SQLite in `drizzle-kit generate` to check for unsafe merges when multiple migration branches exist.
- Added proper SQLite migration tree merging, where new snapshots collect all open leaf snapshot IDs as parents.
- Added `column` argument to `CastParam` and `CastArrayParam` codecs.
🐛 Bug Fixes
- Disabled default codec type selectors for custom columns (fixes #5711).
- Fixed `DrizzleQueryError` and `TransactionRollbackError` constructors to properly set the error name for better instanceof checks.
- Fixed error handling in aws-data-api to properly show database error messages.