AI Briefing
KO

Datasette Alpha

·2026.04.16 08:16

Key point

Datasette alpha replaces CSRF tokens and adds a table rename event.

Details

Datasette 1.0a27 introduces two major changes. First, CSRF form tokens are no longer used, replaced by the modern browser header approach described by Filippo Valsorda.

The other is that a new RenameTableEvent is now fired whenever a table name changes during a SQLite transaction. Plugins that attach extra data based on table names, such as datasette-comments, can adjust their behavior in response to this change.

The remaining changes are as follows.

  • actor= parameter: datasette.client methods can now send internal requests as a specific actor, useful for automated testing.
  • Database(is_temp_disk=True): keeps the internal database as a disk-based temporary DB, reducing the intermittent locked errors that occurred with in-memory DBs.
  • The /<database>/<table>/-/upsert API now rejects rows with null primary key values.
  • Improved the /-/upsert API explorer examples.
  • Added "ok": true to the /<database>.json endpoint to align it with other JSON APIs.
  • Documented call_with_supported_arguments() as a supported public API.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.