Breaking Changes
- SDK methods now return promises and require
await
- Device instances must be created via
Device.create()
static factory method - Changed
info
property to asyncgetInfo()
method
Improvements
- Better error handling with async SDK operations
- Improved concurrent operations with
Promise.all
- SDK version information is now immutable after initialization
Migration Guide
Before:
const device = new Device('192.168.1.100')
const info = device.info
After
const device = await Device.create('192.168.1.100')
const info = await device.getInfo()
Full Changelog: v1.1.0...v2.0.0