Datasette Alpha
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.clientmethods 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>/-/upsertAPI now rejects rows withnullprimary key values. - Improved the
/-/upsertAPI explorer examples. - Added
"ok": trueto the/<database>.jsonendpoint 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.