Skip to content

Aurora MVC 1.0.0a9

Pre-release
Pre-release

Choose a tag to compare

@sigmascript sigmascript released this 28 Nov 21:27
· 1 commit to main since this release

Aurora MVC 1.0.0a9 — 29 November 2026

Alpha 9 simplifies everyday AuroraSQL and controller work, adds integrated session storage, and extends guarded schema migrations.

Breaking changes

  • Pass one positional mapping to Model.create({...}) or Model.using(connection).create({...}) instead of column keyword arguments. Both forms return a native dictionary.
  • Replace Application(environment=...) and the retired AURORA_ENV operational switch with the project-local production Boolean. Generated configurations include this setting; omission defaults to production mode. Development exceptions can be logged while unexpected HTTP error responses remain sanitized.
  • The exceptional --reconcile-interrupted option is no longer part of the public migration CLI. Internal verified recovery safeguards remain; never retry uncertain MySQL DDL blindly.

Added

  • Use ordinary project-aware AuroraSQL CRUD without manually supplying a connection when a model resolves to one configured database. Use aurora.db.connection() for an owned connection scope or aurora.db.transaction() for an explicit transaction; existing explicit connection APIs remain supported.
  • CLI model creation and removal maintain managed package-local model exports for shared MVC and Modular app models without replacing developer-owned package code.
  • Import JSONResponse directly from aurora; its existing import path remains available.
  • Use database_errors() and integrity_errors() from aurora.database to recognize native driver exceptions without wrapping or replacing them.
  • Use synchronous session.rotate() and session.revoke() in controllers; existing asynchronous regenerate() and invalidate() remain supported.
  • Use login_abort(..., api=True) to refuse authenticated callers to guest-only endpoints with HTTP 409 instead of redirecting them.
  • Store sessions in standalone SQLite or integrate them into a configured SQLite, MySQL, or PostgreSQL database. Integrated mode uses a verified __sessions__ table, explicitly provisioned through aurora db init, with independent session transactions. It supports fresh initialization and guarded enable-later provisioning; standalone sessions remain compatible.

Changed

  • Supported controller dictionaries, lists and materialized AuroraSQL read/JOIN records become JSON HTTP responses, including optional (data, status) shorthand.
  • Synchronous controllers can call request.form() and request.json() using bounded, on-demand parsing without blocking the ASGI event loop. Asynchronous parsing remains supported.
  • Add eligible required columns without defaults to verified empty MySQL and PostgreSQL tables, rechecking emptiness before DDL. SQLite supports eligible NOT NULL additions to verified empty tables through a reviewed atomic rebuild; populated tables are refused for these operations.
  • Support reviewed mixed table creation/removal atomically on SQLite and PostgreSQL. MySQL creates replacements before reviewed removal and reports uncertain partial DDL without automatic retry.
  • Permit reviewed child-table removal when outgoing foreign keys exist but no surviving tables depend on the removed table. Destructive acknowledgments and integrity checks remain required.
  • Refresh the six database command help pages and developer guides for model imports, CRUD, request parsing, controller HTTP verbs, connection scopes, session provisioning, CSRF, custom HTTP errors, production settings and full configuration restarts.

Fixed

  • Improve ineligible repeated SQLite initialization diagnostics and direct ready databases to aurora db init without changing their state.
  • Preserve Windows CRLF model-package files when maintaining managed exports.
  • Reuse the active owned connection for nested connection scopes inside a transaction, so outer rollback covers their writes; reject cross-thread scope reuse.
  • Allow reviewed SQLite parent-table UNIQUE changes when incoming foreign keys reference unchanged columns, preserving child data and forward history.
  • Return sanitized HTTP 500 for unhandled application database and filesystem failures, while genuine session-storage failures remain fail-closed with HTTP 503.

Scope

  • Migrations remain reviewed and forward-only; supported operations depend on the backend and verified physical schema. Backups remain optional and separate. Restore execution is disabled.
  • Integrated session fresh and enable-later workflows were accepted on SQLite, MySQL, and PostgreSQL within bounded development tests. These results are not production load or security certification.
  • Aurora MVC remains alpha software. Review supported functionality and boundaries before production use.