Simon Willison 博客· Simon Willison·· 2026-04-17
datasette 1.0a28 发布
datasette 1.0a28
AI 导读
datasette 发布 1.0a28 版本,主要修复 1.0a27 引入的兼容性缺陷。更新包括:修复 execute_write_fn() 回调函数参数命名错误导致的异常;database.close() 方法现可关闭写入连接;新增 datasette.close() 方法用于释放所有数据库资源;内置 pytest 插件自动清理测试实例,防止文件描述符耗尽。此次更新多数代码由 Claude Code 配合 Claude Opus 4.7 完成。
正文 · 原文
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)- The database.close() method now also shuts down the write connection for that database.
- New datasette.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. See Automatic cleanup of Datasette instances for 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.
17th April 2026
来源:Simon Willison 博客 · simonwillison.net