All notable changes to flask-compress
will be documented in this file.
- Add support for Python 3.13 in tox and classifiers
- Expand mimetype defaults, see #57
- Minor performance improvements, cache the algorithm selection logic
- Drop support for Python 3.8 and lower, see #46
- Fix cache pollution caused by caching compression results for different compression algorithms, see #53
- Add support of Zstandard compression.
- Add
text/javascript
mimetype. See #41 - Use brotlicffi for PyPy
- Re-enable compression for streaming, but hide it behind a new option
COMPRESS_STREAMS
that defaults toTrue
. See #36
- Disable compression when response is streamed, see #31
- When compression is enabled, accept-encoding is always added to the
Vary
header, fixes #28
- Automate the release process with GitHub Actions
- Use
setuptools_scm
to manage package versions - The layout is now an actual package rather than a single module
- Clean up unused files
- Add support for the
identity
value in accept-encoding, fixes #19
- The following parameters to control Brotli compression are now available: #10
COMPRESS_BR_MODE
COMPRESS_BR_LEVEL
COMPRESS_BR_WINDOW
COMPRESS_BR_BLOCK
- Add deflate support, with
COMPRESS_DEFLATE_LEVEL
to control compression level (default is-1
) #8 - The default quality level for Brotli is now
4
, which provides compression comparable togzip
at the default setting, while reducing the time required versus the Brotli default of11
- Support for multiple compression algorithms and quality factors #7
- Modified default compression settings to use Brotli when available before
gzip
- Add Brotli support #1