Skip to content

Releases: napi-rs/node-rs

@node-rs/[email protected]

22 Dec 15:13
@node-rs/[email protected]
baa8a47
Compare
Choose a tag to compare

Features

  • Upgrade to NAPI-RS v2 @Brooooooklyn
    • Remove @node-rs/helper dependency
    • Support Android armv7

@node-rs/[email protected]

22 Dec 15:13
@node-rs/[email protected]
baa8a47
Compare
Choose a tag to compare

Features

  • Upgrade to NAPI-RS v2 @Brooooooklyn
    • Remove @node-rs/helper dependency
    • Support Android armv7

@node-rs/[email protected]

22 Dec 15:14
@node-rs/[email protected]
baa8a47
Compare
Choose a tag to compare

Features

  • Upgrade to NAPI-RS v2 @Brooooooklyn
    • Remove @node-rs/helper dependency
    • Support Android armv7

@node-rs/[email protected]

22 Dec 15:14
@node-rs/[email protected]
baa8a47
Compare
Choose a tag to compare

Features

  • Upgrade to NAPI-RS v2 @Brooooooklyn
    • Remove @node-rs/helper dependency
    • Support Android armv7

@node-rs/[email protected]

22 Dec 15:14
@node-rs/[email protected]
baa8a47
Compare
Choose a tag to compare

Features

  • Upgrade to NAPI-RS v2 @Brooooooklyn
    • Remove @node-rs/helper dependency
    • Support Android armv7

@node-rs/[email protected]

15 Nov 10:02
@node-rs/[email protected]
f28384a
Compare
Choose a tag to compare

1.0.1 (2021-11-15)

Bug Fixes

@node-rs/[email protected]

02 Nov 10:55
@node-rs/[email protected]
42d3dab
Compare
Choose a tag to compare

1.10.3 (2021-11-02)

Bug Fixes

  • deno-lint: has_error value (6dcd9b4)

@node-rs/[email protected]

22 Oct 06:22
@node-rs/[email protected]
dd15741
Compare
Choose a tag to compare

First release 🚀

xxhash-rust binding for Node.js.

Performance

@node-rs/xxhash 64 x 43,532 ops/sec ±1.33% (88 runs sampled)
xxhash C++ x 41,658 ops/sec ±1.45% (90 runs sampled)
wasm x 32,415 ops/sec ±1.38% (90 runs sampled)
xxhashjs h64 x 47.52 ops/sec ±3.20% (62 runs sampled)
xxh64 bench suite: Fastest is @node-rs/xxhash 64

Support matrix

node12 node14 node16
Windows x64
Windows x32
Windows arm64
macOS x64
macOS arm64 (m chips)
Linux x64 gnu
Linux x64 musl
Linux arm gnu
Linux arm64 gnu
Linux arm64 musl
Android arm64
FreeBSD x64

API

export type BufferLike =
  | Buffer
  | string
  | Uint8Array
  | ArrayBuffer
  | SharedArrayBuffer
  | ReadonlyArray<number>
  | number[]

export function xxh32(input: BufferLike, seed?: number): number
export function xxh64(input: BufferLike, seed?: BigInt): BigInt

export class Xxh32 {
  constructor(seed?: number)
  update(input: BufferLike): this
  digest(): number
  reset(): void
}

export class Xxh64 {
  constructor(seed?: BigInt)
  update(input: BufferLike): this
  digest(): BigInt
  reset(): void
}

export class Xxh3 {
  static withSeed(seed?: BigInt): Xxh3
  static withSecret(secret: BufferLike): Xxh3
  private constructor() {}
  update(input: BufferLike): this
  digest(): BigInt
  reset(): void
}

export const xxh3: {
  xxh64: (input: BufferLike, seed?: BigInt) => BigInt
  xxh64WithSecret: (input: BufferLike, secret: BufferLike) => BigInt
  xxh128: (input: BufferLike, seed?: BigInt) => BigInt
  xxh128WithSecret: (input: BufferLike, secret: BufferLike) => BigInt
  Xxh3: typeof Xxh3
}

@node-rs/[email protected]

22 Oct 06:09
@node-rs/[email protected]
12ee17c
Compare
Choose a tag to compare

1.4.1 (2021-10-22)

Note: Version bump only for package @node-rs/jieba

@node-rs/[email protected]

22 Oct 06:09
@node-rs/[email protected]
12ee17c
Compare
Choose a tag to compare

1.10.2 (2021-10-22)

Note: Version bump only for package @node-rs/deno-lint