Skip to content

Commit 118390d

Browse files
v3.6.0 (#298)
## [3.6.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.6.0) (2025-08-27) ### What's Changed - Housekeeping and update dependencies - **BREAKING**: Fixed compatibility with `@stoprocent/noble` v2.3.4 and `@stoprocent/bluetooth-hci-socket` v2.2.3 - **Enhancement**: Added comprehensive input validation utilities (`ValidationUtils` class) - **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._state` to `noble.state` for 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
1 parent d64cb32 commit 118390d

File tree

259 files changed

+8220
-4169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+8220
-4169
lines changed

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
44

5+
## [3.6.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.6.0) (2025-08-27)
6+
7+
### What's Changed
8+
- Housekeeping and update dependencies
9+
- **BREAKING**: Fixed compatibility with `@stoprocent/noble` v2.3.4 and `@stoprocent/bluetooth-hci-socket` v2.2.3
10+
- **Enhancement**: Added comprehensive input validation utilities (`ValidationUtils` class)
11+
- **Enhancement**: Improved error handling with more descriptive error messages
12+
- **Enhancement**: Added command constants to replace magic numbers for better maintainability
13+
- **Enhancement**: Enhanced type safety with proper TypeScript assertions
14+
- **Enhancement**: Improved buffer validation with configurable minimum length
15+
- **Enhancement**: Better resource cleanup in error scenarios with try-catch-finally blocks
16+
- **Enhancement**: Removed deprecated parameter checker in favor of modern validation
17+
- **Fix**: Updated `noble._state` to `noble.state` for compatibility with newer noble versions
18+
- **Fix**: Enhanced NobleTypes interface to properly support newer noble version
19+
- **Code Quality**: Improved JSDoc documentation throughout device classes
20+
- **Code Quality**: Standardized validation across all device classes
21+
- **Docs**: Updated BLE.md and OpenAPI.md for new validation and error handling features
22+
- **Internal**: Refactored device instantiation logic for consistency
23+
- **Internal**: Improved test coverage for validation utilities and error scenarios
24+
- **Chore**: Synced package scripts and documentation with latest development workflow
25+
26+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v3.5.1...v3.6.0
27+
528
## [3.5.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.5.1) (2025-07-25)
629

730
### What's Changed

docs/assets/hierarchy.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/main.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/navigation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)