Skip to content

v0.5.0

Latest

Choose a tag to compare

@canermastan canermastan released this 18 Sep 11:01
· 10 commits to master since this release
c6fdca7

Highlights

Jazzy v0.5.0 introduces a complete await-first database workflow for SQLite and PostgreSQL.

  • PostgreSQL support through DB_CONNECTION=postgres and DATABASE_URL
  • Versioned, transactional migrations with jazzy make:migration and jazzy migrate
  • Typed ORM with fluent awaited CRUD
  • CLI generators for models and CRUD controllers
  • Safer schema migrations and portable query-builder improvements

Database

  • Async PostgreSQL connection pools for Mummy workers
  • Same DB.table(...) API on SQLite and PostgreSQL
  • Portable raw SQL placeholders: write ?, Jazzy converts them for PostgreSQL
  • Type-aware PostgreSQL parameters for IDs, UUIDs, booleans, JSONB, and timestamps
  • Identifier quoting, returning(...), affected-row results, NULL/IN conditions, soft deletes, and schema changes

Migrations and CLI

  • jazzy make:migration, jazzy migrate, migrate:status, migrate:rollback, migrate:reset, and migrate:fresh
  • Transactional migration history on SQLite and PostgreSQL
  • jazzy make:model
  • jazzy make:controller
  • jazzy make:seeder and jazzy db:seed
  • jazzy upgrade db-async to help existing projects adopt awaited database calls

Typed ORM

  • Single-block model declarations
  • find, findOrFail, all, where, orderBy, get, first, count, and pagination
  • create, update, patch, save, delete, and destroy
  • Nullable fields, mapped columns, custom primary keys, enums, and DateTime values
  • hasOne, hasMany, belongsTo, and many-to-many relations
  • Nested eager loading, scopes, factories, dirty tracking, and lifecycle hooks

Security and authentication

  • Refresh-token support
  • Automatic CSRF support for browser sessions
  • Hardened production authentication defaults

Upgrade notes

Database operations are now await-first:

let users = await DB.table("users").get()

Existing projects can preview or apply safe conversions:

jazzy upgrade db-async
jazzy upgrade db-async --apply

MySQL/MariaDB support is planned, but not part of v0.5.0.