Prepare Air 0.49.0 - #1166
Open
audreyfeldroy wants to merge 9 commits into
Open
Conversation
audreyfeldroy
marked this pull request as ready for review
August 11, 2026 03:56
audreyfeldroy
force-pushed
the
agent/release-0.49.0
branch
from
August 11, 2026 04:43
2c0db21 to
1ded1f1
Compare
AirModel can now declare former physical table and column names that development backends use to preserve data across deliberate renames. The new legacy_database_tables() and legacy_database_columns() classmethods are opt-in: defaults stay empty, and production schema changes still go through reviewed, versioned SQL migrations.
Air gains one CSRF validation path shared by forms and plain endpoints: - require_csrf() dependency helper returns a 403 on failure, so callers can guard a route with a single `if resp := await require_csrf(...)` line. - AirForm.csrf_max_age lets a long-lived form extend token validity without lengthening the window for every other form. - The unused ValidCsrfToken type is removed in favor of the single validation. Also add reusable slugify, header_get, parse_cache_control_directives, and is_public_without_no_store helpers, re-exported from the top-level package.
Air 0.49.0 was shaped by building WriterStead, which now runs on Air in production with accounts, subscriptions, forms, and author sites. Note that real-world use in the release notes, README, docs showcase, and a source-level note, so readers can see Air is proven in production while remaining free and open source.
Add the new legacy_table_names / legacy_column_names capability to the 0.49.0 release notes. Also stop naming the not-yet-published AirD1 package anywhere in Air; swappable-backend examples now reference AirPostgres alone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepare Air 0.49.0 for release and backport the complete backend-neutral work staged in Writerstead's vendored Air tree.
AirModelBackendprotocolAirDatabaseconvenience base andDatabaseNotConfigurederrorDATABASE_URL/app.dbbehaviorAirForm.render_csrf()for custom form layoutsair check, WebAssembly support, form/HTML improvements, and fixes merged since 0.48.1Release impact
This is a breaking migration for applications that use Air's former built-in PostgreSQL integration. Model definitions and public CRUD calls remain stable, but applications must install and configure AirPostgres explicitly.
AirPostgres 0.2.0 is prepared as the companion backend release. AirD1 has also been extracted, reviewed, and validated against this Air release line.
Validation
mainafter Docs improvements #1162just qajust test— 705 passedllms-full.txt0.49.0and public backend importsPublication
This PR prepares the release only. Pushing tag
v0.49.0will trigger the trusted PyPI publication workflow, which requires approval in the protectedpypienvironment.