Skip to content

Releases: mongodb-js/zstd

v1.2.0

29 Aug 17:11
Compare
Choose a tag to compare

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

23 Jan 13:56
Compare
Choose a tag to compare

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

18 May 20:54
Compare
Choose a tag to compare

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

18 May 20:19
Compare
Choose a tag to compare
chore(release): 0.0.7

v0.0.6

18 May 18:50
Compare
Choose a tag to compare
chore(release): 0.0.6

v0.0.5

09 May 14:53
Compare
Choose a tag to compare
chore(release): 0.0.5

v0.0.4

06 May 19:10
Compare
Choose a tag to compare
chore(release): 0.0.4

v0.0.3

06 May 17:10
Compare
Choose a tag to compare
chore(release): 0.0.3

v0.0.2

06 May 16:05
Compare
Choose a tag to compare
chore(release): 0.0.2

v0.0.1

05 May 21:02
Compare
Choose a tag to compare
chore(release): 0.0.1