Repository navigation
Important: This release switches to ESM and node >= 22. The function signature is unchanged, but the etag has changed:
- Strings and buffers use SHA-256 with a base64url digest. Version 1.x used SHA-1 with base64.
- Byte lengths, file sizes, and file modification timestamps are written in radix 32 instead of hexadecimal.
- The separate has changed from
-to~, making 2.x tags easy to recognize. A weak file ETag can look like W/"1~0".
Changed
- Refactor package to TypeScript and ESM in #63
- Use
crypto.hashwhen available for performance by @pimterry in #60 - Accept bigint stats in #64
- Refactor etag outputs and perf optimize in #65
- Support any typed array in #69
- Removed explicit input validation in #70
New Contributors
- @carpasse made their first contribution in #32
- @UlisesGascon made their first contribution in #36
- @Phillip9587 made their first contribution in #48
- @pimterry made their first contribution in #60
- @blakeembrey made their first contribution in #62
Full Changelog: v1.8.1...v2.0.0