v1.1.1: Stability and logging improvements
🚀 Additions
path
inBadgeAPI.fileSystem.list()
return typeBadgeAPI.onConnect()
hookcrcErrors
inBadgeUSB.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 */
});