Repository navigation
v1.0.97 - Enhanced Authentication & Regional Support
π What's New
This release introduces a comprehensive overhaul of the VeSync authentication system with enhanced regional support and improved reliability for international users.
β¨ Key Features
- π Enhanced Authentication: New two-step VeSync authentication flow with automatic legacy fallback
- π Regional API Support: Automatic US/EU endpoint detection and cross-region error handling
- π Improved Reliability: Better authentication success rates and error recovery mechanisms
- π§ͺ Testing Framework: Comprehensive authentication test suite for validation
π§ Changes
Added
- Enhanced Authentication Flow: Implemented new two-step VeSync authentication system
- Added support for authorize code and bizToken authentication flow
- Implemented automatic fallback to legacy authentication for backward compatibility
- Added comprehensive cross-region authentication error handling
- Regional API Support: Full support for regional VeSync API endpoints
- Added automatic US/EU endpoint detection based on user country codes
- Implemented cross-region error handling with automatic region switching
- Enhanced regional API routing for improved global user experience
- Authentication Test Suite: Added comprehensive authentication testing framework
- Created test/test-auth.ts with multiple authentication flow validation
- Added support for testing new authentication flow, legacy flow, and EU region detection
- Enhanced debugging capabilities for authentication troubleshooting
Changed
- API Version Compatibility: Updated APP_VERSION to 5.6.60 for latest VeSync API compatibility
- Authentication Architecture: Redesigned authentication system for improved reliability
- Regional Support: Enhanced regional API handling throughout the library
- Documentation: Updated README.md with recent authentication and regional improvements
Fixed
- Authentication Reliability: Resolved authentication issues across different regions
- Fixed "app version is too low" errors with updated API version
- Improved handling of authentication failures with intelligent retry mechanisms
- Enhanced token and account ID validation and error recovery
- Cross-Region Support: Fixed authentication issues for international users
- Resolved cross-region authentication errors with automatic region switching
- Improved EU region support with proper endpoint routing
π¦ Installation
npm install tsvesync@1.0.97π‘ Usage Impact
- International Users: Significantly improved authentication success rates for EU and other regions
- Developers: Enhanced debugging capabilities and more reliable authentication flows
- Backward Compatibility: Existing code continues to work with automatic fallback mechanisms
π€ Generated with Claude Code