| 1 | # Changelog |
| 2 | |
| 3 | All notable changes to this project will be documented in this file. |
| 4 | |
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | |
| 8 | ## Unreleased |
| 9 | |
| 10 | ## [1.2.0] - 2025-10-27 |
| 11 | |
| 12 | ### SECURITY |
| 13 | - python: added `Decompressor::can_accept_more_data` method and optional |
| 14 | `output_buffer_limit` argument `Decompressor::process`; |
| 15 | that allows mitigation of unexpectedly large output; |
| 16 | reported by Charles Chan (https://github.com/charleswhchan) |
| 17 | |
| 18 | ### Added |
| 19 | - **decoder / encoder: added static initialization to reduce binary size** |
| 20 | - python: allow limiting decoder output (see SECURITY section) |
| 21 | - CLI: `brcat` alias; allow decoding concatenated brotli streams |
| 22 | - kt: pure Kotlin decoder |
| 23 | - cgo: support "raw" dictionaries |
| 24 | - build: Bazel modules |
| 25 | |
| 26 | ### Removed |
| 27 | - java: dropped `finalize()` for native entities |
| 28 | |
| 29 | ### Fixed |
| 30 | - java: in `compress` pass correct length to native encoder |
| 31 | |
| 32 | ### Improved |
| 33 | - build: install man pages |
| 34 | - build: updated / fixed / refined Bazel buildfiles |
| 35 | - encoder: faster encoding |
| 36 | - cgo: link via pkg-config |
| 37 | - python: modernize extension / allow multi-phase module initialization |
| 38 | |
| 39 | ### Changed |
| 40 | - decoder / encoder: static tables use "small" model (allows 2GiB+ binaries) |
| 41 | |
| 42 | |
| 43 | ## [1.1.0] - 2023-08-28 |
| 44 | |
| 45 | ### Added |
| 46 | - decoder: `BrotliDecoderAttachDictionary` |
| 47 | - decoder: `BrotliDecoderOnFinish` callback behind `BROTLI_REPORTING` |
| 48 | - decoder: `BrotliDecoderSetMetadataCallbacks` |
| 49 | - encoder: `BrotliEncoderPrepareDictionary`, |
| 50 | `BrotliEncoderDestroyPreparedDictionary`, |
| 51 | `BrotliEncoderAttachPreparedDictionary` |
| 52 | - decoder: `BrotliEncoderOnFinish` callback behind `BROTLI_REPORTING` |
| 53 | - common: `BrotliSharedDictionaryCreateInstance`, |
| 54 | `BrotliSharedDictionaryDestroyInstance`, |
| 55 | `BrotliSharedDictionaryAttach` |
| 56 | - CLI: `--dictionary` option |
| 57 | - java: encoder wrapper: `Parameters.mode` |
| 58 | - java: `Brotli{Input|Output}Stream.attachDictionary` |
| 59 | - java: wrapper: partial byte array input |
| 60 | - typescript: decoder (transpiled from Java) |
| 61 | |
| 62 | ### Removed |
| 63 | - build: `BROTLI_BUILD_PORTABLE` option |
| 64 | |
| 65 | ### Fixed |
| 66 | - java: JNI decoder failed sometimes on power of 2 payloads |
| 67 | |
| 68 | ### Improved |
| 69 | - java / js: smaller decoder footprint |
| 70 | - decoder: faster decoding |
| 71 | - encoder: faster encoding |
| 72 | - encoder: smaller stack frames |
| 73 | |
| 74 | |
| 75 | ## [1.0.9] - 2020-08-27 |
| 76 | |
| 77 | Re-release of 1.0.8. |
| 78 | |
| 79 | |
| 80 | ## [1.0.8] - 2020-08-27 |
| 81 | |
| 82 | ### SECURITY |
| 83 | - CVE-2020-8927: potential overflow when input chunk is >2GiB |
| 84 | |
| 85 | ### Added |
| 86 | - encoder: `BROTLI_PARAM_STREAM_OFFSET` |
| 87 | |
| 88 | ### Improved |
| 89 | - CLI: better reporting |
| 90 | - CLI: workaround for "lying feof" |
| 91 | - java: faster decoding |
| 92 | - java: support "large window" |
| 93 | - encoder: use less memory |
| 94 | - release: filter sources for the tarball |
| 95 | |
| 96 | |
| 97 | ## [1.0.7] - 2018-10-23 |
| 98 | |
| 99 | ### Improved |
| 100 | - decoder: faster decoding on ARM CPU |
| 101 | |
| 102 | |
| 103 | ## [1.0.6] - 2018-09-13 |
| 104 | |
| 105 | ### Fixed |
| 106 | - build: AutoMake and CMake build |
| 107 | - java: JDK 8<->9 incompatibility |
| 108 | |
| 109 | |
| 110 | ## [1.0.5] - 2018-06-27 |
| 111 | |
| 112 | ### Added |
| 113 | - scripts: extraction of static dictionary from RFC |
| 114 | |
| 115 | ### Improved |
| 116 | - encoder: better compression at quality 1 |
| 117 | - encoder: better compression with "large window" |
| 118 | |
| 119 | |
| 120 | ## [1.0.4] - 2018-03-29 |
| 121 | |
| 122 | ### Added |
| 123 | - encoder: `BROTLI_PARAM_NPOSTFIX`, `BROTLI_PARAM_NDIRECT` |
| 124 | - CLI: `--large_window` option |
| 125 | |
| 126 | ### Improved |
| 127 | - encoder: better compression |
| 128 | |
| 129 | |
| 130 | ## [1.0.3] - 2018-03-02 |
| 131 | |
| 132 | ### Added |
| 133 | - decoder: `BROTLI_DECODER_PARAM_LARGE_WINDOW` enum |
| 134 | - encoder: `BROTLI_PARAM_LARGE_WINDOW` enum |
| 135 | - java: `BrotliInputStream.setEager` |
| 136 | |
| 137 | ### Fixed |
| 138 | - build: AutoMake build in some environments |
| 139 | - encoder: fix one-shot q=10 1-byte input compression |
| 140 | |
| 141 | ### Improved |
| 142 | - encoder: better font compression |
| 143 | |
| 144 | |
| 145 | ## [1.0.2] - 2017-11-28 |
| 146 | |
| 147 | ### Added |
| 148 | - build: AutoMake |
| 149 | - research: better dictionary generators |
| 150 | |
| 151 | |
| 152 | ## [1.0.1] - 2017-09-22 |
| 153 | |
| 154 | ### Changed |
| 155 | - clarifications in `README.md` |
| 156 | |
| 157 | |
| 158 | ## [1.0.0] - 2017-09-20 |
| 159 | |
| 160 | ### Added |
| 161 | - decoder: `BrotliDecoderSetParameter` |
| 162 | - csharp: decoder (transpiled from Java) |
| 163 | - java: JNI wrappers |
| 164 | - javascript: decoder (transpiled from Java) |
| 165 | - python: streaming decompression |
| 166 | - research: dictionary generator |
| 167 | |
| 168 | ### Changed |
| 169 | - CLI: rename `bro` to `brotli` |
| 170 | |
| 171 | ### Removed |
| 172 | - decoder: `BrotliDecoderSetCustomDictionary` |
| 173 | - encoder: `BrotliEncoderSetCustomDictionary` |
| 174 | |
| 175 | ### Improved |
| 176 | - java: faster decoding |
| 177 | - encoder: faster compression |
| 178 | |
| 179 | |
| 180 | ## [0.6.0] - 2017-04-10 |
| 181 | |
| 182 | ### Added |
| 183 | - CLI: `--no-copy-stat option |
| 184 | - java: pure java decoder |
| 185 | - build: fuzzers |
| 186 | - research: `brotlidump` tool to explore brotli streams |
| 187 | - go: wrapper |
| 188 | |
| 189 | ### Removed |
| 190 | - decoder: API with plain `Brotli` prefix |
| 191 | |
| 192 | ### Deprecated |
| 193 | - encoder: `BrotliEncoderInputBlockSize`, `BrotliEncoderCopyInputToRingBuffer`, |
| 194 | `BrotliEncoderWriteData` |
| 195 | |
| 196 | ### Improved |
| 197 | - encoder: faster compression |
| 198 | - encoder: denser compression |
| 199 | - decoder: faster decompression |
| 200 | - python: release GIL |
| 201 | - python: use zero-copy API |
| 202 | |
| 203 | |
| 204 | ## [0.5.2] - 2016-08-11 |
| 205 | |
| 206 | ### Added |
| 207 | - common: `BROTLI_BOOL`, `BROTLI_TRUE`, `BROTLI_FALSE` |
| 208 | - decoder: API with `BrotliDecoder` prefix instead of plain `Brotli` |
| 209 | - build: Bazel, CMake |
| 210 | |
| 211 | ### Deprecated |
| 212 | - decoder: API with plain `Brotli` prefix |
| 213 | |
| 214 | ### Changed |
| 215 | - boolean argument / result types are re-branded as `BROTLI_BOOL` |
| 216 | |
| 217 | ### Improved |
| 218 | - build: reduced amount of warnings in various build environments |
| 219 | - encoder: faster compression |
| 220 | - encoder: lower memory usage |
| 221 | |
| 222 | |
| 223 | ## [0.5.0] - 2016-06-15 |
| 224 | |
| 225 | ### Added |
| 226 | - common: library has been assembled from shared parts of decoder and encoder |
| 227 | - encoder: C API |
| 228 | |
| 229 | ### Removed |
| 230 | - encoder: C++ API |
| 231 | |
| 232 | |
| 233 | ## [0.4.0] - 2016-06-14 |
| 234 | |
| 235 | ### Added |
| 236 | - encoder: faster compression modes (quality 0 and 1) |
| 237 | - decoder: `BrotliGetErrorCode`, `BrotliErrorString` and |
| 238 | `BROTLI_ERROR_CODES_LIST` |
| 239 | |
| 240 | ### Removed |
| 241 | - decoder: deprecated streaming API (using `BrotliInput`) |
| 242 | |
| 243 | ### Fixed |
| 244 | - decoder: possible pointer underflow |
| 245 | |
| 246 | ### Improved |
| 247 | - encoder: faster compression |
| 248 | |
| 249 | |
| 250 | ## [0.3.0] - 2015-12-22 |
| 251 | |
| 252 | ### LICENSE |
| 253 | License have been upgraded to more permissive MIT. |
| 254 | |
| 255 | ### Added |
| 256 | - CLI: `--window` option |
| 257 | - `tools/version.h` file |
| 258 | - decoder: low level streaming API |
| 259 | - decoder: custom memory manager API |
| 260 | |
| 261 | ### Deprecated |
| 262 | - decoder: streaming API using `BrotliInput` struct |
| 263 | |
| 264 | ### Fixed |
| 265 | - decoder: processing of uncompressed blocks |
| 266 | - encoder: possible division by zero |
| 267 | |
| 268 | ### Improved |
| 269 | - encoder: faster decompression |
| 270 | - build: more portable builds for various CPU architectures |
| 271 | |
| 272 | |
| 273 | ## [0.2.0] - 2015-09-01 |
| 274 | |
| 275 | ### Added |
| 276 | - CLI: `--verbose` and `--repeat` options |
| 277 | |
| 278 | ### Fixed |
| 279 | - decoder: processing of uncompressed blocks |
| 280 | - encoder: block stitching on quality 10 / 11 |
| 281 | |
| 282 | ### Improved |
| 283 | - build: CI/CD integration |
| 284 | - build: better test coverage |
| 285 | - encoder: better compression of UTF-8 content |
| 286 | - encoder: faster decompression |
| 287 | |
| 288 | |
| 289 | ## [0.1.0] - 2015-08-11 |
| 290 | |
| 291 | Initial release. |