feat(compression): Improve compression implementation (buffering and threshold), add Deno brotli support, add compression tests and dynamic route API
This commit is contained in:
11
changelog.md
11
changelog.md
@@ -1,5 +1,16 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-12-05 - 1.3.0 - feat(compression)
|
||||
Improve compression implementation (buffering and threshold), add Deno brotli support, add compression tests and dynamic route API
|
||||
|
||||
- Buffer response bodies before compressing and perform size threshold check after buffering; return uncompressed responses when below threshold.
|
||||
- Set Content-Length to the compressed size and use provider.compress to produce full compressed payloads instead of streaming compression from the middleware.
|
||||
- Add Deno-native brotli support via Deno.compress and use CompressionStream for gzip/deflate; brotli streaming is not attempted in web runtime.
|
||||
- Pass compression threshold from SmartServe configuration into compressResponse so route/global thresholds are honored.
|
||||
- Expose ControllerRegistry.addRoute and dynamicRoutes to allow adding dynamic routes without controller classes.
|
||||
- Add comprehensive compression tests (gzip and brotli) using raw HTTP requests to avoid Node fetch auto-decompression; tests cover large/small responses, @Compress/@NoCompress behavior, and global compression disable.
|
||||
- Change test runner invocation to use verbose mode.
|
||||
|
||||
## 2025-12-05 - 1.2.0 - feat(compression)
|
||||
Add cross-runtime response compression (Brotli/gzip), per-route decorators, and pre-compressed static file support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user