Skip to content

Conversation

donavanbecker
Copy link
Collaborator

@donavanbecker donavanbecker commented Aug 11, 2025

3.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

@github-actions github-actions bot added enhancement New feature or request dependencies Pull requests that update a dependency file docs latest labels Aug 11, 2025
@coveralls
Copy link

coveralls commented Aug 11, 2025

Pull Request Test Coverage Report for Build 17275048892

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 262 of 642 (40.81%) changed or added relevant lines in 9 files are covered.
  • 11 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+18.3%) to 32.625%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/parameter-checker.ts 14 16 87.5%
docs/assets/main.js 0 5 0.0%
src/switchbot-openapi.ts 20 29 68.97%
src/switchbot-ble.ts 7 80 8.75%
src/device.ts 191 482 39.63%
Files with Coverage Reduction New Missed Lines %
docs/assets/main.js 1 0.0%
src/switchbot-ble.ts 1 16.33%
src/device.ts 9 32.06%
Totals Coverage Status
Change from base Build 17117994006: 18.3%
Covered Lines: 1037
Relevant Lines: 3329

💛 - Coveralls

@donavanbecker donavanbecker assigned Copilot and unassigned Copilot Aug 27, 2025
@donavanbecker donavanbecker linked an issue Aug 27, 2025 that may be closed by this pull request
## [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
@donavanbecker donavanbecker changed the title Beta 3.6.0 v3.6.0 Aug 27, 2025
@donavanbecker donavanbecker merged commit 118390d into latest Aug 27, 2025
4 checks passed
@donavanbecker donavanbecker deleted the beta-3.6.0 branch August 27, 2025 18:14
donavanbecker added a commit that referenced this pull request Sep 18, 2025
## [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file docs enhancement New feature or request latest workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Dependencies

5 participants