npm drizzle-orm 1.0.0-rc.2
v1.0.0-rc.2

3 hours ago

Updates

  • Disabled default codec type selectors for custom columns (fixes #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)
  • Updated codecs: geometry -> geometry(point), geometry:tuple -> geometry(point):tuple
  • Switched PG transactions from class properties back to class methods (fixes #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.
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.
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.
{
  "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

Don't miss a new drizzle-orm release

NewReleases is sending notifications on new releases.