bun install @chneau/elysia-compression
import { compression } from "@chneau/elysia-compression";
import { Elysia } from "elysia";
const app = new Elysia().use(compression()).listen(8080);
- Updated to the Elysia 1.4 API (
status instead of the removed error).
- Replaced
bun-plugin-dts with tsc for declaration generation.
- Custom status responses with an object payload are now serialized as JSON
instead of
[object Object].
- More tests covering thresholds, allowed/negotiated encodings, custom status
codes, redirects, explicit
Response content types and async handlers.
- Fixed all tests. Compression if working again!
- Fixed potential null pointer exception.
- Working with elysia static, json and errors.
- Working with elysia static, json and errors.
- Working with elysia static.