asgi-gzip 0.3 のリリース
Simon Willison が SSE デプロイ時の不具合を修正し、asgi-gzip 0.3 をリリースした。このバージョンは datasette-gzip との互換性問題を解決し、ASGI アプリケーションでの gzip 圧縮処理を正常に動作させる。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
リリース: asgi-gzip 0.3
SSE を使用した新機能のデプロイ中に、本番環境の Datasette インスタンスで問題が発生しました。そのインスタンスは datasette-gzip を使用しており、これは asgi-gzip に依存していますが、このライブラリが event/text-stream 応答を誤って圧縮していました。
asgi-gzip は Starlette から分離されたものであり、Starlette への更新でこのライブラリにポートする必要がある変更をチェックするための GitHub Actions のスケジュール済みワークフロー を持っています。しかし、そのアクションが実行を停止していたため、この問題に対する Starlette 自身の修正 が見逃されていました。
私はワークフローを実行し、新しい修正を統合しました。その結果、datasette-gzip と asgi-gzip の両方で SSE 応答における text/event-stream が正しく処理されるようになりました。
原文を表示
Release: asgi-gzip 0.3
I ran into trouble deploying a new feature using SSE to a production Datasette instance, and it turned out that instance was using datasette-gzip which uses asgi-gzip which was incorrectly compressing event/text-stream responses.
asgi-gzip was extracted from Starlette, and has a GitHub Actions scheduled workflow to check Starlette for updates that need to be ported to the library... but that action had stopped running and hence had missed Starlette's own fix for this issue.
I ran the workflow and integrated the new fix, and now datasette-gzip and asgi-gzip both correctly handle text/event-stream in SSE responses.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み