v2.0.0
2.0.0 (2025-03-31)
Features
- adding more flexability to how to pick a driver (a4bfc4b)
BREAKING CHANGES
- Modified module export structure
The module's export structure has been changed from direct driver export to a new API that supports explicit driver selection.
Old usage:
const bluetooth = require(‘@stoprocent/bluetooth-hci-socket');
// Automatically selected driver based on platform/envNew usage:
const hci = require('@stoprocent/bluetooth-hci-socket');
// Using default (automatic) driver selection
const defaultDriver = hci.default;
// OR explicitly selecting a driver
const nativeDriver = hci.loadDriver(‘native);
const uartDriver = hci.loadDriver('uart');
const usbDriver = hci.loadDriver('usb');This change allows users to explicitly control which driver they want to use, but requires updating import statements and usage patterns in existing code.