Skip to content

v1.1.1: Stability and logging improvements

Compare
Choose a tag to compare
@Pwuts Pwuts released this 01 Apr 07:29
· 12 commits to main since this release

🚀 Additions

  • path in BadgeAPI.fileSystem.list() return type
  • BadgeAPI.onConnect() hook
  • crcErrors in BadgeUSB.connectionStats

✨ Improvements

  • BadgeUSB.transaction()
    • Implemented transaction queueing
    • Fixed error call stacks
    • Much better debug logging
    • Error response decoding with BadgeUSBError

⚠️ Breaking change ⚠️

BadgeAPI.onConnectionLost is a callable function now instead of a setter.
This is in order to allow setting multiple callbacks.

Before:

badgeApi.onConnect = () => {
  /* callback */
}

After:

badgeApi.onConnect(() => {
  /* callback */
});