Datasette 1.0a27のリリース
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Simon Willison Blog
Datasette開発者はバージョン1.0a27を公開し、Django形式のCSRFトークン廃止とモダンブラウザヘッダーへの移行など、セキュリティ関連の主要な変更を実施した。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るSource Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
リリース: datasette 1.0a27
この新しい Datasette アルファ版には、2つの大きな変更があります。その最初のものについては昨日詳しく解説しました。Datasette はもはや Django スタイルの CSRF 形式トークンを使用せず、代わりに Filippo Valsorda が記述したモダンなブラウザヘッダーを採用しています。
2つ目の大きな変更は、Datasette が SQLite トランザクション内でテーブル名が変更されるたびに、新しい RenameTableEvent を発生させるようになった点です。これは有用な変更です。なぜなら、datasette-comments などの一部のプラグインは、テーブル名に基づいてレコードに追加データを関連付けているため、テーブル名が変更された場合、それらのプラグインは適切な方法で対応する必要があるからです。
アルファ版におけるその他の変更点は以下の通りです:
datasette.clientメソッドに新しいactor=パラメータが追加され、特定のアクターとして内部リクエストを行うことができるようになりました。これは特に自動化されたテストの作成に有用です。(#2688)
- 内部データベース用に使用される新しい
Database(is_temp_disk=True)オプションが追加されました。これにより、メモリ上ではなくディスク上のデータベースである場合と比較して生じる、内部データベースに起因する断続的な「データベースロック」エラーの解決に役立ちます。(#2683)(#2684)
///-/upsertAPI(ドキュメント)は、主キー値が null の行を拒否するようになりました。(#1936)
/-/upsertエンドポイント(ドキュメント)の API エクスプローラーにおける例が改善されました。(#1936)
- /.json エンドポイントには、他の JSON API レスポンスとの一貫性のために "ok": true キーが追加されました。
- call_with_supported_arguments() は、サポートされるパブリック API として文書化されました。(#2678)
原文を表示
Release: datasette 1.0a27
Two major changes in this new Datasette alpha. I covered the first of those in detail yesterday - Datasette no longer uses Django-style CSRF form tokens, instead using modern browser headers as described by Filippo Valsorda.
The second big change is that Datasette now fires a new RenameTableEvent any time a table is renamed during a SQLite transaction. This is useful because some plugins (like datasette-comments) attach additional data to table records by name, so a renamed table requires them to react in appropriate ways.
Here are the rest of the changes in the alpha:
New actor= parameter for datasette.client methods, allowing internal requests to be made as a specific actor. This is particularly useful for writing automated tests. (#2688)
New Database(is_temp_disk=True) option, used internally for the internal database. This helps resolve intermittent database locked errors caused by the internal database being in-memory as opposed to on-disk. (#2683) (#2684)
The ///-/upsert API (docs) now rejects rows with null primary key values. (#1936)
Improved example in the API explorer for the /-/upsert endpoint (docs). (#1936)
The /.json endpoint now includes an "ok": true key, for consistency with other JSON API responses.
call_with_supported_arguments() is now documented as a supported public API. (#2678)
Tags: annotated-release-notes, datasette, python
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み