Skip to content

v2.0.0

Latest

Choose a tag to compare

@blakeembrey blakeembrey released this 21 Nov 00:10
ea49ad3

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.hash when 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

Full Changelog: v1.8.1...v2.0.0