From c0331b424114eb4adbc62db6b8d2732742c73d08 Mon Sep 17 00:00:00 2001 From: Nicholas Dobie Date: Wed, 7 May 2025 22:03:16 -0500 Subject: [PATCH 1/2] Add reference to @hono/bun-compress --- docs/middleware/builtin/compress.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/middleware/builtin/compress.md b/docs/middleware/builtin/compress.md index f55979d8..27fba41f 100644 --- a/docs/middleware/builtin/compress.md +++ b/docs/middleware/builtin/compress.md @@ -5,7 +5,7 @@ This middleware compresses the response body, according to `Accept-Encoding` req ::: info **Note**: On Cloudflare Workers and Deno Deploy, the response body will be compressed automatically, so there is no need to use this middleware. -**Bun**: This middleware uses `CompressionStream` which is not yet supported in bun. +**Bun**: This middleware uses `CompressionStream` which is not yet supported in Bun, for Bun support use the drop-in replacement [@hono/bun-compress](https://www.npmjs.com/package/@hono/bun-compress) ::: ## Import From f4e1c4d85550d0ad272e1a5c892508f6387a0717 Mon Sep 17 00:00:00 2001 From: Nicholas Dobie Date: Wed, 7 May 2025 22:04:45 -0500 Subject: [PATCH 2/2] Update third-party.md --- docs/middleware/third-party.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/middleware/third-party.md b/docs/middleware/third-party.md index ad1a167f..628c904d 100644 --- a/docs/middleware/third-party.md +++ b/docs/middleware/third-party.md @@ -33,6 +33,7 @@ Most of this middleware leverages external libraries. ### Others - [Bun Transpiler](https://github.com/honojs/middleware/tree/main/packages/bun-transpiler) +- [Bun Compress](https://github.com/honojs/middleware/tree/main/packages/bun-compress) - [esbuild Transpiler](https://github.com/honojs/middleware/tree/main/packages/esbuild-transpiler) - [Event Emitter](https://github.com/honojs/middleware/tree/main/packages/event-emitter) - [GraphQL Server](https://github.com/honojs/middleware/tree/main/packages/graphql-server)