v6.1.1
π 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, andconventional-changelog-cli. - β¨ Added
@release-it/conventional-changelogfor automatic version bumps andCHANGELOG.mdgeneration from conventional commits β preserving the previous emoji section grouping:- β¨ Features
- π Bug Fixes
- π¨ Performance Improvements
- π Code Refactors
- π Documentation
- π οΈ Other changes
- π¦
release-itconfig now lives inpackage.json(no more separate.release-it.json/release.config.cjs). - π·οΈ Single entry point:
npm run release(therelease:itscript was removed). - π€ GitHub Actions Release workflow rewritten to run
release-it --ciwith optionalworkflow_dispatchinputs:increment:patch/minor/major/prereleasedry-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