Skip to content

v6.1.1

Choose a tag to compare

@mCodex mCodex released this 29 Apr 12:28
· 19 commits to master since this release

πŸš€ v6.1.1

A small but important patch release that unblocks TypeScript builds for downstream consumers and modernizes the release pipeline. No API changes, no migration steps. πŸŽ‰


πŸ› Bug Fixes

πŸ› οΈ Fixed TS2554 when compiling against older lib targets

Consumer projects whose tsconfig doesn't include the ES2022 lib were failing to type-check against our shipped src/ with:

node_modules/react-native-sensitive-info/src/errors.ts:75:18 - error TS2554: Expected 0-1 arguments, but got 2.
node_modules/react-native-sensitive-info/src/hooks/types.ts:41:18 - error TS2554: Expected 0-1 arguments, but got 2.

βœ… SensitiveInfoError and HookError no longer pass the { cause } options object to super(). The cause is now assigned as a property after construction, so the library type-checks cleanly under any tsconfig lib target.

πŸ”’ Runtime behavior is unchanged β€” error.cause is still populated when provided.

πŸ“‚ Changed files: src/errors.ts, src/hooks/types.ts


πŸ› οΈ Other Changes

πŸ” Migrated release tooling: semantic-release ➜ release-it

Consolidated to a single, conventional-OSS release flow that mirrors what most modern React Native libraries use:

  • πŸ—‘οΈ Removed semantic-release, @semantic-release/changelog, @semantic-release/git, and conventional-changelog-cli.
  • ✨ Added @release-it/conventional-changelog for automatic version bumps and CHANGELOG.md generation from conventional commits β€” preserving the previous emoji section grouping:
    • ✨ Features
    • πŸ› Bug Fixes
    • πŸ’¨ Performance Improvements
    • πŸ”„ Code Refactors
    • πŸ“š Documentation
    • πŸ› οΈ Other changes
  • πŸ“¦ release-it config now lives in package.json (no more separate .release-it.json / release.config.cjs).
  • 🏷️ Single entry point: npm run release (the release:it script was removed).
  • πŸ€– GitHub Actions Release workflow rewritten to run release-it --ci with optional workflow_dispatch inputs:
    • increment: patch / minor / major / prerelease
    • dry-run: preview without publishing
    • Uses a bot git identity and enables npm provenance.
  • 🧹 ~280 transitive dependencies removed (~11 MiB smaller lockfile).

⬆️ Upgrade

No code changes required β€” just bump:

yarn add react-native-sensitive-info@6.1.1
# or
npm install react-native-sensitive-info@6.1.1