Skip to content

v5.0.0

Latest

Choose a tag to compare

@sindresorhus sindresorhus released this 14 Nov 20:03

Breaking

  • Require Node.js 22 9c33aa9
  • An invalid outputFormat now rejects with a TypeError be06757
    • Before, any value other than 'hex' silently returned an ArrayBuffer, so a typo like {outputFormat: 'base64'} went unnoticed.

Improvements

  • Accept SharedArrayBuffer and views of shared memory as input e04fae3
  • Accept an ArrayBuffer from another realm (for example, from node:vm or an iframe) be06757
  • Reject unsupported input with a clear TypeError instead of an internal error be06757

Fixes

  • Fix the process never exiting when an input could not be sent to the worker thread 6022bca

v4.0.1...v5.0.0