datasette 1.0a28
TL;DR · AI 摘要
Datasette 1.0a28 修复了前一版本引入的兼容性问题,并新增资源清理机制与测试插件支持。
核心要点
- 修复 execute_write_fn 回调参数名非 conn 时的兼容性错误
- 新增 datasette.close() 方法统一关闭所有数据库和资源
- 集成 pytest 插件自动清理测试中的临时 Datasette 实例
Releasedatasette 1.0a28— An open source multi-tool for exploring and publishing data
I was upgrading Datasette Cloud to 1.0a27 and discovered a nasty collection of accidental breakages caused by changes in that alpha. This new alpha addresses those directly:
* Fixed a compatibility bug introduced in 1.0a27 where
execute_write_fn()callbacks with a parameter name other thanconnwere seeing errors. (#2691)* Thedatabase.close()method now also shuts down the write connection for that database.
* Newdatasette.close()method for closing down all databases and resources associated with a Datasette instance. This is called automatically when the server shuts down. (#2693)
* Datasette now includes a pytest plugin which automatically calls
datasette.close()on temporary instances created in function-scoped fixtures and during tests. SeeAutomatic cleanup of Datasette instancesfor details. This helps avoid running out of file descriptors in plugin test suites that were written before theDatabase(is_temp_disk=True)feature introduced in Datasette 1.0a27. (#2692)
Most of the changes in this release were implemented using Claude Code and the newly released Claude Opus 4.7.