Releases: ColinTimBarndt/wasm-gzip
Wasm-Gzip v2.1.0
- Added options to
compress
(noCompression, fixedHuffmanCodes) anddecompress
(multi) - Upgraded libflate version to v2.1.0 (coincidence)
- Moved to entirely custom bindings and removed
wasm-bindgen
andjs-sys
dependencies
Wasm-Gzip v2.0.3
The last release did not contain the correct files, this patch fixes it.
Wasm-Gzip v2.0.2
- Updated libflate dependency to
2.0.0
- Fixed error handling (no more wasm panicking)
- Added class
DecompressionError
- error messages
Wasm-Gzip v2.0
Release Notes
This build includes the source code for this version and a release that can be imported as an ES6 module.
How to build
npm run build
The final package (including source mappings which are not included in the npm package) can be found in the dist
directory.
Wasm-Gzip v1.0
Release Notes
This build includes the source code for this version and a release that can be imported as an ES6 module.
Build it yourself
Windows users can run the Batchfile build.bat
. For other systems, use
wasm-pack build --target web
- (Optional) minify the wasm:
wasm-snip --snip-rust-panicking-code --snip-rust-fmt-code -o ./pkg/wasm_gzip_bg.wasm ./pkg/wasm_gzip_bg.wasm
- (Optional) delete the generated
.gitignore
file in./pkg
if you want to use this project with git. - (Optional) minify the file
wasm_gzip.js
in./pkg
. For this release, terser was used:npx terser --compress --mangle -o ./wasm_gzip.js -- ./wasm_gzip.js
Wasm-Gzip Build
Release Notes
This build includes the source code for this version and a release that can be imported as an ES6 module.
Build it yourself
The release can be built from the source using the build.bat file. This should also work for Linux.
You need wasm-bindgen
and wasm-snip
for this. Wasm pack currently has a bug for some users where
it freezes after building.
All generated files that were included in this release can be found in the pkg
directory.
Pre-release
This is version 0.1.2 and needs some more desting before it is suitable for production. Apart from that,
not all browsers fully support WASM and other required APIs yet.