Skip to content

v1.0.5 — Full hash suite, Android coroutines, iOS performance

Choose a tag to compare

@Preeternal Preeternal released this 14 Sep 13:50
· 78 commits to master since this release
  • Highlights

    • Adds MD5, SHA‑1, SHA‑224, SHA‑256, SHA‑384, SHA‑512 across Android and iOS.
    • Faster async: Android coroutines; iOS OperationQueue + 64 KiB chunks.
    • README updated; CI now publishes only to npmjs.com.
  • Android

    • Migrated to Kotlin coroutines with lifecycle-aware cancel in invalidate().
    • Supports file://, content://, and plain paths; 64 KiB buffer for large files.
    • Explicit mapping to JCA names; unsupported → E_UNSUPPORTED_ALGORITHM.
  • iOS

    • Uses OperationQueue (maxConcurrentOperationCount = 2) and 64 KiB chunked reads.
    • SHA‑224 via CommonCrypto (CryptoKit doesn’t provide SHA‑224).
    • Thin Obj‑C extern (RCT_EXTERN_MODULE) kept for Old/New Arch robustness.
  • JS/Types

    • THashAlgorithm: 'MD5' | 'SHA-1' | 'SHA-224' | 'SHA-256' | 'SHA-384' | 'SHA-512' (default 'SHA-256').
  • Docs/CI

    • README documents all algorithms and examples.
    • Publishing to GitHub Packages removed to avoid registry conflicts.
  • Breaking changes

    • None expected. Public API unchanged; types widened to include more algorithms.
  • Upgrade notes

    • If .npmrc points @preeternal to GitHub Packages, switch to npmjs.com.
    • iOS: run pod install after upgrading.
    • Android: ensure kotlinx-coroutines-android is available in your build.