Comparing version 2.13.0 to 2.14.0
# Changelog | ||
## [2.14.0] - 2024-09-15 | ||
### Fixed | ||
- Fixed fatal exceptions by using `ThrowAsJavaScriptException` instead of `Napi::Error::Fatal` - [`817`](https://github.com/node-usb/node-usb/pull/817) ([cleoo](https://github.com/cleoo)) | ||
## [2.13.0] - 2024-05-26 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { DeviceDescriptor, ConfigDescriptor, BosDescriptor } from './descriptors'; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { Device } from './bindings'; | ||
@@ -3,0 +2,0 @@ import { CapabilityDescriptor } from './descriptors'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
/** A structure representing the standard USB device descriptor */ | ||
@@ -3,0 +2,0 @@ export interface DeviceDescriptor { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import * as usb from './bindings'; | ||
@@ -3,0 +2,0 @@ import { Interface } from './interface'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -4,0 +2,0 @@ import { LibUSBException, Transfer, Device } from './bindings'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="w3c-web-usb" /> | ||
import * as usb from '../usb'; | ||
@@ -4,0 +2,0 @@ import { EventEmitter } from 'events'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="w3c-web-usb" /> | ||
import * as usb from '../usb'; | ||
@@ -3,0 +2,0 @@ /** |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "2.13.0", | ||
"version": "2.14.0", | ||
"main": "dist/index.js", | ||
@@ -70,4 +70,4 @@ "engines": { | ||
"prebuildify-ci": "^1.0.5", | ||
"prebuildify-cross": "^5.0.0", | ||
"typedoc": "^0.25.13", | ||
"prebuildify-cross": "thegecko/prebuildify-cross#fix-docker", | ||
"typedoc": "^0.26.7", | ||
"typescript": "^5.4.5" | ||
@@ -74,0 +74,0 @@ }, |
@@ -33,2 +33,6 @@ # USB Library for Node.JS | ||
You may need to modify your udev and permission rules in order to access your desired device. Along the lines of: | ||
SUBSYSTEM=="usb", ATTR{idVendor}=="USB-VENDOR-ID", ATTR{idProduct}=="USB-PRODUCT-ID", MODE="0660", GROUP="GROUP-YOUR-USER-IS-IN" | ||
# Troubleshooting | ||
@@ -207,2 +211,8 @@ | ||
If using a packaging system for electron, ensure the `node-usb` library does not get recompiled as the correct binaries are already shipped with the package. For example, for [electron-builder](https://www.electron.build/), use these settings: | ||
- buildDependenciesFromSource: true | ||
- nodeGypRebuild: false | ||
- npmRebuild: false | ||
# APIs | ||
@@ -209,0 +219,0 @@ Since `v2.0.0`, the `node-usb` library supports two APIs: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6822814
650
2488