You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: consolidate API to VersionCheck object with consistent options
BREAKING CHANGE: All standalone function exports removed. Use VersionCheck object.
- API consolidation: getCountry, getStoreUrl, getLatestVersion, needsUpdate now VersionCheck methods
- Consistent options: all async methods use object-based parameters { countryCode?, level? }
- compareVersions now part of VersionCheck object
- Country code support: optional region override for store lookups (iOS)
- Made getStoreUrl async for consistency
- 52 comprehensive tests with 87%+ coverage (exceeds 70% thresholds)
- Jest setup with TypeScript support, test files excluded from build
- GitHub Actions CI with coverage enforcement and codecov upload
- Updated iOS/Android native implementations with country code parameter
- All documentation updated (api-reference, migration-guide, usage-examples)
Migration: getCountry() → VersionCheck.getCountry()
getLatestVersion() → VersionCheck.getLatestVersion({ countryCode: 'US' })
compareVersions() → VersionCheck.compareVersions('1.0.0', '2.0.0')
0 commit comments