Skip to content

v2.0.0 - Async SDK Migration

Latest
Compare
Choose a tag to compare
@mrhyde mrhyde released this 22 Oct 22:05
· 23 commits to master since this release
ea1fe98

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 async getInfo() 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