Skip to content

Releases: ustclug-dev/brotli-dec-wasm

v2.3.0

19 Apr 04:22
7835ccc
Compare
Choose a tag to compare

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

18 Apr 14:34
787d388
Compare
Choose a tag to compare

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

24 Nov 07:07
8b64e50
Compare
Choose a tag to compare

New features

  • Add the asset entry and export the WASM binary file to help collaborating with various bundlers. See the Usage section in README for details together with examples.

v2.0.3

13 Nov 06:48
c544650
Compare
Choose a tag to compare

Chores

  • Update the Rust crate brotli-decompressor from 2.3.4 to 2.5.1.
    • I do not see things (fixes or new features) that explicitly affect the functionality of this package in the changelog of the crate.

v2.0.2

20 Oct 08:26
8ed3bac
Compare
Choose a tag to compare

Fixes

New features

  • Experimentally add the sync and async subpath exports to help for bundler use
    • sync uses import ... from ... and async uses import(...) 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

13 Jul 03:51
c84ceca
Compare
Choose a tag to compare

Move alias DecompressStream to Rust code for better TS integration

brotli-dec-wasm v2.0.0

12 Jul 12:35
c3461cd
Compare
Choose a tag to compare

BREAKING CHANGES

Make this package a drop-in replacement of brotli-wasm

brotli-dec-wasm v1.3.3

17 Sep 04:08
ad4bca3
Compare
Choose a tag to compare

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

12 May 22:28
2f4265f
Compare
Choose a tag to compare

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

12 May 13:07
85a7391
Compare
Choose a tag to compare

Bug Fix

  • Add last_input_offset() method to report consumed input size