Releases: 1mb-dev/murmur-hash
Releases · 1mb-dev/murmur-hash
v2.0.0
What's New
Complete TypeScript rewrite with 128-bit hash support.
Added
- TypeScript rewrite - Full TypeScript source with type definitions
- 128-bit hash functions -
hash128()(x86) andhash128x64()(x64) - Streaming API -
createHash32(),createHash128(),createHash128x64() - BigInt output - Option to return 128-bit hashes as BigInt
- Uint8Array support - Hash binary data directly
- Dual format build - ESM and CJS outputs
Changed
- Flat API - Use
hash32(),hash128(),hash128x64()directly - Zero dependencies - Removed
debugdependency - Modern target - Requires Node.js 20+
Deprecated
- v3 API -
v3.x86.hash32()etc. still work but show deprecation warning
Migration from v1
// v1 (deprecated)
import { v3 } from 'murmur-hash';
v3.x86.hash32('hello');
// v2
import { hash32 } from 'murmur-hash';
hash32('hello');Full Changelog: https://github.com/vnykmshr/murmur-hash/blob/main/docs/CHANGELOG.md