v1.0.0-beta.15
📦 drizzle-ormView on GitHub →
✨ 3 features🐛 1 fixes⚡ 2 deprecations🔧 14 symbols
Summary
This release consolidates all validator packages into the main `drizzle-orm` package, simplifying dependency management. A new integration with Effect Schema is also introduced, alongside a bug fix for SQLite ordering/grouping.
Migration Steps
- Update imports for validation schemas from old packages (e.g., `drizzle-zod`) to use paths within `drizzle-orm` (e.g., import from `drizzle-orm/zod`).
- If using TypeBox validation, choose between importing from `drizzle-orm/typebox` (new) or `drizzle-orm/typebox-legacy` (for compatibility with `@sinclair/typebox`).
✨ New Features
- Validator schemas are now consolidated within the main `drizzle-orm` package.
- New validation package available: `drizzle-orm/effect-schema` for integration with Effect Schema.
- The `name` argument in `.prepare(name)` is now optional for `Gel`, `Postgres`, and `Cockroach` dialects, generating a name automatically if omitted.
🐛 Bug Fixes
- Fixed an issue in SQLite where SQL.Aliased was not allowed in `.orderBy(...)` and `.groupBy(...)` clauses.
Affected Symbols
⚡ Deprecations
- The separate validator packages (`drizzle-zod`, `drizzle-valibot`, etc.) are deprecated in favor of importing validation schemas directly from `drizzle-orm`.
- Usage of `drizzle-typebox` should migrate to `drizzle-orm/typebox` (using `typebox`) or `drizzle-orm/typebox-legacy` (using `@sinclair/typebox`).