Releases: OpenWonderLabs/node-switchbot
Releases · OpenWonderLabs/node-switchbot
v3.6.0
What's Changed
- Housekeeping and update dependencies
- BREAKING: Fixed compatibility with
@stoprocent/noblev2.3.4 and@stoprocent/bluetooth-hci-socketv2.2.3 - Enhancement: Added comprehensive input validation utilities (
ValidationUtilsclass) - Enhancement: Improved error handling with more descriptive error messages
- Enhancement: Added command constants to replace magic numbers for better maintainability
- Enhancement: Enhanced type safety with proper TypeScript assertions
- Enhancement: Improved buffer validation with configurable minimum length
- Enhancement: Better resource cleanup in error scenarios with try-catch-finally blocks
- Enhancement: Removed deprecated parameter checker in favor of modern validation
- Fix: Updated
noble._statetonoble.statefor compatibility with newer noble versions - Fix: Enhanced NobleTypes interface to properly support newer noble version
- Code Quality: Improved JSDoc documentation throughout device classes
- Code Quality: Standardized validation across all device classes
- Docs: Updated BLE.md and OpenAPI.md for new validation and error handling features
- Internal: Refactored device instantiation logic for consistency
- Internal: Improved test coverage for validation utilities and error scenarios
- Chore: Synced package scripts and documentation with latest development workflow
Full Changelog: v3.5.1...v3.6.0
v3.6.0-beta.12
**Beta Release**
Version: v3.6.0-beta.12
How To Test Beta Releases
v3.6.0-beta.11
**Beta Release**
Version: v3.6.0-beta.11
How To Test Beta Releases
v3.6.0-beta.10
**Beta Release**
Version: v3.6.0-beta.10
How To Test Beta Releases
v3.6.0-beta.9
**Beta Release**
Version: v3.6.0-beta.9
How To Test Beta Releases
v3.5.1
What's Changed
Full Changelog: v3.5.0...v3.5.1
v3.5.0
No New Releases During Lent
What's Changed
- Fix the return value of SwitchBotOpenAPI.getDeviceStatus() method #290, Thanks @kemuridama
- Fix circular dependencies
- Housekeeping and update dependencies
Full Changelog: v3.4.0...v3.5.0
v3.4.9
What's Changed
- Add BLE comands for Relay Switch 1 && Relay Switch 1 PM, not yet functional
- Housekeeping and update dependencies
Full Changelog: v3.4.8...v3.4.9
v3.4.8
What's Changed
- Add exports for Relay Switch 1 && Relay Switch 1 PM
- Housekeeping and update dependencies
Full Changelog: v3.4.7...v3.4.8
v3.4.7
What's Changed
- Add Types for Relay Switch 1 && Relay Switch 1 PM
- Housekeeping and update dependencies
Full Changelog: v3.4.6...v3.4.7