Vai al contenuto
verdict:

Drizzle ORM 1.0.0-rc.2

preview

note: la sintesi e le note di rilascio sono in inglese

note: nessuna sintesi per questa release più vecchia

Sintetizziamo le release recenti. Le note di rilascio originali di questa versione sono qui sotto.

release-notesgithub.com/drizzle-team/drizzle-orm · 36 righe
  1. ### Updates
  2. - Disabled default codec type selectors for custom columns (fixes [#5711](https://github.com/drizzle-team/drizzle-orm/issues/5711))
  3. - Сallback type overload for codec selector in custom pg columns (`codec: (config) => config?.withTimeZone ? 'timestamptz' : 'timestamp'`)
  4. - Extended list of postgis types for codecs (improvement for [#5711](https://github.com/drizzle-team/drizzle-orm/issues/5711))
  5. - Updated codecs: `geometry` -> `geometry(point)`, `geometry:tuple` -> `geometry(point):tuple`
  6. - Switched PG transactions from class properties back to class methods (fixes [#5709](https://github.com/drizzle-team/drizzle-orm/issues/5709))
  7. - Updated `AWS Data Api` codecs, removed query typings, improved input param mapping
  8. - Removed prepared query `typings` field from all builders
  9. - Added `column` argument to `CastParam`,`CastArrayParam` codecs
  10. ### Migration updates in SQLite
  11. - 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.
  12. ```bash
  13. npx drizzle-kit generate
  14. ```
  15. - If the conflict is expected and you want to continue anyway, pass `--ignore-conflicts` to skip the conflict check for that command.
  16. ```bash
  17. npx drizzle-kit generate --ignore-conflicts
  18. npx drizzle-kit check --ignore-conflicts
  19. ```
  20. - 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.
  21. ```json
  22. {
  23. "prevIds": ["first-open-leaf-id", "second-open-leaf-id"]
  24. }
  25. ```
  26. - Fixed `DrizzleQueryError` and `TransactionRollbackError` constructors to properly set the error name for better instanceof checks
  27. - Fixed error handling in aws-data-api to properly show database error messages

vedi su githubimported 2026-09-28 via npm