Skip to content

v0.2.4: Fix cross-module Buffer compatibility and improve Android linker support

Latest

Choose a tag to compare

@iwater iwater released this 11 Feb 08:23
· 3 commits to main since this release

Fix cross-module Buffer compatibility and improve Android linker support

  • Update android/CMakeLists.txt to force both sysv and gnu hash styles for
    Android loader compatibility
  • Add ensureArrayBuffer() utility to safely handle Buffer, TypedArray, and
    ArrayBuffer inputs across different module instances, preventing
    Buffer.isBuffer() failures in Cipheriv and Decipheriv constructors
  • Extend Cipheriv/Decipheriv update() and final() methods to support
    'utf8'/'utf-8' outputEncoding alongside existing 'hex' and 'base64' options
  • Refactor all Buffer/ArrayBuffer conversion utilities (toArrayBuffer(),
    binaryLikeToArrayBuffer(), prepareBuffer()) to use ArrayBuffer.isView()
    instead of Buffer.isBuffer() for cross-module compatibility
  • Update Hash.update() method to properly handle TypedArray inputs
  • Bump package version from 0.2.3 to 0.2.4