Releases: mongodb-js/zstd
Releases · mongodb-js/zstd
v2.0.0-alpha.0
chore(main): release 2.0.0-alpha.0 (#41) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Bailey Pearson <[email protected]>
v1.2.2
v1.2.1
v1.2.0
The MongoDB Node.js team is pleased to announce version 1.2.0 of the zstd package!
Release Highlights
This release fixes a security vulnerability introduced in the zstd-safe library
v1.1.0
The MongoDB Node.js team is pleased to announce version 1.1.0 of the zstd package!
Release Highlights
This release allows the use of the library on Alpine Linux (musl).
v1.0.0
The MongoDB Node.js team is pleased to announce version 1.0.0 of the zstd package!
Release Highlights
This library allows zstd compression in Node.js, which can compress and decompress buffers with various levels (1-22).
Usage
import { compress, decompress } from '@mongodb-js/zstd';
(async () => {
const buffer = Buffer.from('test');
const compressed = await compress(buffer, 10);
const decompressed = await decompress(compressed);
})();
API
export function compress(buffer: Buffer | ArrayBuffer | Uint8Array, level: number): Promise<Buffer>
export function decompress(buffer: Buffer): Promise<Buffer>
Supported Platforms
node12 | node14 | node16 | node17 | |
---|---|---|---|---|
Windows x64 | ✓ | ✓ | ✓ | ✓ |
macOS x64 | ✓ | ✓ | ✓ | ✓ |
macOS arm64 | ✓ | ✓ | ✓ | ✓ |
Linux x64 gnu | ✓ | ✓ | ✓ | ✓ |
Linux arm gnu | ✓ | ✓ | ✓ | ✓ |
Linux arm64 gnu | ✓ | ✓ | ✓ | ✓ |
v0.0.7
chore(release): 0.0.7
v0.0.6
chore(release): 0.0.6
v0.0.5
chore(release): 0.0.5
v0.0.4
chore(release): 0.0.4