Skip to content

v0.14.0 - Enhanced Schema Loading & Documentation

Latest

Choose a tag to compare

@remcostoeten remcostoeten released this 11 Oct 14:32
· 1 commit to master since this release

What's New in v0.14.0

🔍 Enhanced Schema Auto-Loading

  • Parent directory search: Automatically searches up to 5 parent directories for `drizzle.config.ts`
  • Monorepo support: Works seamlessly in monorepos and nested project structures
  • Better error messages: Actionable error messages show exactly where the system searched

✅ Schema Validation

  • Automatic validation: Detects invalid or empty schemas before runtime
  • Helpful guidance: Clear error messages explain how to fix schema issues
  • Type checking: Validates that exports are actual Drizzle table definitions

🛠️ Manual Schema Override

  • Bypass auto-loading: Pass schema directly for Next.js 15/Turbopack compatibility
  • Flexible configuration: `initializeConnection(url, { schema })`
  • Perfect for edge cases: Solves module resolution issues in complex bundling scenarios

📚 Documentation Overhaul

  • Bun-exclusive: All commands updated to use `bun add` instead of npm/yarn
  • Import clarity: Consistent `/server` and `/client` import paths throughout
  • New FAQs: Added 3 new FAQs covering schema loading errors
  • Better examples: All code examples follow project conventions

Breaking Changes

None! This release is fully backward compatible.

Migration Guide

No migration needed. New features are opt-in:

```typescript
// New manual schema override (optional)
import * as schema from './schema'
const db = await initializeConnection(process.env.DATABASE_URL!, { schema })
```

Full Changelog

See CHANGELOG.md for complete details.

Installation

```bash
bun add @remcostoeten/drizzleasy drizzle-orm
```

Links