- Library is now deprecated. For help migrating, refer to the documentation for
usb
- Attempt to get more build more prebuild binaries. Still missing a lot!
- Prebuild binaries from new Node.js v16 LTS but this didn't help, https://github.com/MadLittleMods/node-usb-detection/commit/c246d9fa85adeda8846317fefb6c1e9a7c63995e
- The problem stems from a fix to skip Node.js v17.0.0 which fails to build, #165 (comment)
- Fill in
device.deviceAddress
(asdevnum
) anddevice.locationId
(asbusnum
) on Linux which were previously always hard-coded as0
- Thanks to @efuturetoday for the contribution
- Fix segmentation fault (segfault) crash after
stopMonitoring
on Linux- Thanks to @umbernhard, @antelle and @Julusian for the contribution
Developer facing:
- Fix GitHub Actions CI failing on Windows runners (
windows-2022
) (prebuild failing to build binaries), #165 - Explain why test can fail when not enough devices from different vendors, #166
- Skipping linting/testing when publishing to npm via CI
- Add specific instructions for rebuilding for Electron, #133
- Replace TravisCI and AppVeyor with GitHub Actions
- Thanks to @mcous for the contribution
- Bumped Node.js in CI to 12, 14, and 16
- Bumped recommended Node.js version to 14
- Dropped Linux x86 from CI, since Node.js stopped officially publishing Linux x86 builds after v8
- Update and simplify development section in README as follows,
- Thanks to @mcous for the contribution
- Remove Python 2 requirement, because
node-gyp
now only supports Python 3 and Python 2 has been EOL'd - Remove some outdated links and instructions in favor of linking to
node-gyp
documentation
- Use SPDX identifier for MIT in
package.json
license field- Thanks to @mcous for the contribution
- Add install for Electron instructions to readme
- Thanks to @mcous for the contribution
- Add prebuilds for latest node and Electron versions
- Thanks to @NoahAndrews for the contribution
- Update
node-gyp@6.1.0
, #109 - Update
prebuild-install@5.3.5
andnode-abi@2.18.0
to support Electron 9- Thanks to @NoahAndrews for the contribution
- Update dependencies (
npm audit fix
), #108 - Remove
fprintf
logging from macOS and add conditional--debug
flag when building if you want logs- Thanks to @DomiR for the contribution
- Update
prebuild
dependencies to latest- Thanks to @mcous for the contribution
- Fix deprecation warnings for
Nan::Callback:Call()
- Thanks to @kryops for the contribution
- Update TypeScript definitions
- Thanks to @RicoBrase for the contribution
- Add support for Node.js v13
- Thanks to @kryops for the contribution
- Unbind ATL lib on Windows (
atlstr.h
)- Thanks to @sarakusha for the contribution
- Fix
deviceName
garbled in Windows- Thanks to @nononoone for the contribution
- Add support for Node.js v12
- Thanks to @kryops for the contribution
- Add note about
usbDetect.find()
requiringusbDetect.startMonitoring()
for proper results after insert/remove- Thanks to @mikew for the contribution
- Fix
usbDetect.find(...)
promise syntax/callback not working- Thanks to @erikkallen for the contribution
- Add Windows backslash normalization for instance id's to fix certain USB devices not being detected
- Thanks to @LanetheGreat for the contribution
- Use native Promises, #69
- Now requires Node.js >=4
- Update dependencies based on npm security audit, #70
- Add TypeScript declarations/definitions
- Thanks to @thegecko for the contribution
- Add serial number support to Windows
- Thanks to @doganmurat for the contribution
- Show multiple/duplicate USB devices on Windows
- Thanks to @doganmurat for the contribution
- Update all dependencies
- Add npm
install
hook that will use our prebuilt binaries instead of having to compile from source with node-gyp. - Remove side-effects when you
require('usb-detection')
so the process won't hang from just requiring. - Fix 100% CPU usage on Linux, #2
- Thanks to @sarakusha for the contribution
- Ensure the process will exit gracefully across all platforms, #35
- Remove npm
install
hook to prevent hanging the install process caused byprebuild-install
verify require and our side-effects.- Thanks to @Lange for noticing an issue.
Remove side-effects when youNow requires an explicit call torequire('usb-detection')
so the process won't hang from just requiring.usbDetect.startMonitoring()
to begin listening to USB add/remove/change events.- Add npm
install
hook that will use our prebuilt binaries instead of having to compile from source with node-gyp.
- Remove npm
install
hook to prevent hanging the install process caused byprebuild-install
verify require and our side-effects.- Thanks to @Lange for figuring out the root cause.
- Add check for null before notifying of addition/removal
- Thanks to @reidmweber for this contribution via #37
- Create prebuilt binaries on tagged releases
- Thanks to @jayalfredprufrock for the PoC and @Lange for the contribution
- Add compatibility for
node@0.10.x
by using morenan
types and methods.- Thanks to @apla for this contribution!
- Add compatibility for Node 4
- Upgrade
nan
dependency nan@2.x. Thank you @lorenc-tomasz
- Upgrade
- New maintainer/owner @MadLittleMods. Previously maintained by @adrai 👍
- Add tests
npm test
find
now also returns a promise- Format js and c++
- Added eslint file, linter code style guidelines
- Alias
insert
as theadd
event name for.on
- Update readme
- Fix usage section
.on
callbacks which do not actually have aerr
parameter passed to the callback - Add API section to document clearly all of the methods and events emitted
- Add test instructions
- Fix usage section
- Add support for Node v0.12.x
- Revert "ready for node >= 0.11.4"
- Fix issues found via cppcheck
- Ready for node >= 0.11.4
- First release