Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

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

## [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**: https://github.com/OpenWonderLabs/node-switchbot/compare/v3.5.1...v3.6.0

## [3.5.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.5.1) (2025-07-25)

### What's Changed
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/hierarchy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

Loading
Loading