note: die Zusammenfassung und die Release Notes sind auf Englisch
note: keine Zusammenfassung für dieses ältere Release
Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.
release-notesgithub.com/drizzle-team/drizzle-orm · 36 Zeilen
- ### Updates
- - Disabled default codec type selectors for custom columns (fixes [#5711](https://github.com/drizzle-team/drizzle-orm/issues/5711))
- - Сallback type overload for codec selector in custom pg columns (`codec: (config) => config?.withTimeZone ? 'timestamptz' : 'timestamp'`)
- - Extended list of postgis types for codecs (improvement for [#5711](https://github.com/drizzle-team/drizzle-orm/issues/5711))
- - Updated codecs: `geometry` -> `geometry(point)`, `geometry:tuple` -> `geometry(point):tuple`
- - Switched PG transactions from class properties back to class methods (fixes [#5709](https://github.com/drizzle-team/drizzle-orm/issues/5709))
- - Updated `AWS Data Api` codecs, removed query typings, improved input param mapping
- - Removed prepared query `typings` field from all builders
- - Added `column` argument to `CastParam`,`CastArrayParam` codecs
- ### Migration updates in SQLite
- - Added migration conflict detection for SQLite. When migration history has multiple open branches, `drizzle-kit generate` now checks whether those branches can be merged safely before creating the next migration. This helps catch cases where two migrations were created from the same parent and then changed the same SQLite object in incompatible ways, for example two branches changing the same table, index, or view.
- ```bash
- npx drizzle-kit generate
- ```
- - If the conflict is expected and you want to continue anyway, pass `--ignore-conflicts` to skip the conflict check for that command.
- ```bash
- npx drizzle-kit generate --ignore-conflicts
- npx drizzle-kit check --ignore-conflicts
- ```
- - Added proper SQLite migration tree merging. New snapshots now collect all open leaf snapshot IDs and write them as parents, instead of keeping only one latest parent. This means a new migration generated after branching can merge all open leaves and use the combined SQLite state for the next snapshot diff.
- ```json
- {
- "prevIds": ["first-open-leaf-id", "second-open-leaf-id"]
- }
- ```
- - 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