v1.0.5 — Full hash suite, Android coroutines, iOS performance
-
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.
- Migrated to Kotlin coroutines with lifecycle-aware cancel in
-
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.
- Uses
-
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
.npmrcpoints@preeternalto GitHub Packages, switch to npmjs.com. - iOS: run
pod installafter upgrading. - Android: ensure
kotlinx-coroutines-androidis available in your build.
- If