Releases: ustclug-dev/brotli-dec-wasm
Releases · ustclug-dev/brotli-dec-wasm
v2.3.0
Changes
- Bump the Rust crate brotli-decompressor version to v4.0.0
This does not introduce breaking changes, because the major version change of brotli-decompressor is about FFI.
That has no impact on this project.
Thanks to the update of brotli-decompressor, the size of this package has decreased to 200KB
v2.2.0
Breaking Changes
- Remove the asset entry
The root export (import('brotli-dec-wasm')
) does not change, which is still a drop-in replacement of brotli-wasm
New features
- Export the JS API generated by wasm-pack
These APIs can help to arrive the same functionality as the removed asset entry
v2.1.0
v2.0.3
v2.0.2
Fixes
- Fix ESM exports to pass are the types wrong
New features
- Experimentally add the
sync
andasync
subpath exports to help for bundler usesync
usesimport ... from ...
andasync
usesimport(...)
to import the WASM binary- Bundlers that can recognize any of them (e.g., webpack with options) can automatically copy the WASM binary to the output dir
- Instead of the default import method in the root path, which is to fetch the WASM binary with the URL relative to the importing module
brotli-dec-wasm v2.0.1
Move alias DecompressStream
to Rust code for better TS integration
brotli-dec-wasm v2.0.0
BREAKING CHANGES
Make this package a drop-in replacement of brotli-wasm
brotli-dec-wasm v1.3.3
Security
- Remove the deprecated dependency wee_alloc
- The package bundle size is not affected, which is still about 300KB
brotli-dec-wasm v1.3.2
Changes
- Enable
console_error_panic_hook
by default- It only increases about 4KB in size, which should be worthy
- Rename methods of
BrotliDecStream
to camalCase in JavaScript- According to GitHub Used By, no code is affected by the change
brotli-dec-wasm-1.3.1
Bug Fix
- Add
last_input_offset()
method to report consumed input size