• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenWonderLabs / node-switchbot / 17274805745
33%
latest: 33%

Build:
Build:
LAST BUILD BRANCH: v3.6.0
DEFAULT BRANCH: latest
Ran 27 Aug 2025 06:03PM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Aug 2025 06:03PM UTC coverage: 32.538% (+17.9%) from 14.642%
17274805745

Pull #298

github

donavanbecker
v3.6.0 release

## [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
Pull Request #298: v3.6.0

84 of 107 branches covered (78.5%)

Branch coverage included in aggregate %.

260 of 642 new or added lines in 9 files covered. (40.5%)

11 existing lines in 3 files now uncovered.

1034 of 3329 relevant lines covered (31.06%)

0.76 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
51.16
41.5% src/parameter-checker.ts
5
0.0
0.0% docs/assets/main.js
9
29.53
25.68% src/switchbot-openapi.ts
75
15.1
12.88% src/switchbot-ble.ts
291
32.06
16.22% src/device.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% docs/assets/main.js
1
15.1
12.88% src/switchbot-ble.ts
9
32.06
16.22% src/device.ts
Jobs
ID Job ID Ran Files Coverage
1 run-22 - 17274805745.1 27 Aug 2025 06:03PM UTC 14
32.54
GitHub Action Run
Source Files on build 17274805745
  • Tree
  • List 14
  • Changed 10
  • Source Changed 10
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #17274805745
  • Pull Request #298
  • PR Base - latest (#16524572898)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc