usb 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.4.1] - 2022-05-07
4
+
5
+ ### Fixed
6
+ - Fixed node engine ranges in package.json - ([Rob Moran](https://github.com/thegecko))
7
+
8
+ ## [2.4.0] - 2022-05-02
9
+
10
+ ### Fixed
11
+ - Made addon context aware - [`512`](https://github.com/node-usb/node-usb/pull/512) ([Rob Moran](https://github.com/thegecko) & [Alba Mendez](https://github.com/mildsunrise))
12
+ - Fixed deprecation of `libusb_set_option` - [`510`](https://github.com/node-usb/node-usb/pull/510) ([Rob Moran](https://github.com/thegecko))
13
+
14
+ ### Changed
15
+ - **Breaking:** Updated to N-API version 6 (Node >=10.20.0 <11.x, >=12.17.0 <13.0, >=14.0.0) - [`509`](https://github.com/node-usb/node-usb/pull/509) ([Rob Moran](https://github.com/thegecko))
16
+
17
+ ### Added
18
+ - Added `rebuild` command - [`511`](https://github.com/node-usb/node-usb/pull/511) ([Rob Moran](https://github.com/thegecko))
19
+
20
+ ### Removed
21
+ - Removed `USE_POLL` build definition to simplify code - [`507`](https://github.com/node-usb/node-usb/pull/507) ([Rob Moran](https://github.com/thegecko))
22
+
23
+ ## [2.3.1] - 2022-04-11
24
+
25
+ ### Changed
26
+ - Removed device access mutex from WebUSB API - [`501`](https://github.com/node-usb/node-usb/pull/501) ([Rob Moran](https://github.com/thegecko))
27
+
3
28
  ## [2.3.0] - 2022-04-11
4
29
 
5
30
  ### Changed
6
31
  - Changed libusb dependency to upstream v1.0.26 - [`505`](https://github.com/node-usb/node-usb/pull/505) ([Rob Moran](https://github.com/thegecko))
7
-
8
32
  - Cleaned up Windows device polling method - [`496`](https://github.com/node-usb/node-usb/pull/496) ([Alba Mendez](https://github.com/mildsunrise))
9
33
 
10
34
  ## [2.2.0] - 2022-03-25
package/README.md CHANGED
@@ -10,7 +10,7 @@ This is a refactoring / rewrite of Christopher Klein's [node-usb](https://github
10
10
 
11
11
  # Prerequisites
12
12
 
13
- [Node.js >= v10.16.0](https://nodejs.org), which includes `npm`.
13
+ [Node.js >= v10.20.0](https://nodejs.org), which includes `npm`.
14
14
 
15
15
  ## Windows
16
16
 
package/binding.gyp CHANGED
@@ -26,13 +26,12 @@
26
26
  'defines': [
27
27
  '_FILE_OFFSET_BITS=64',
28
28
  '_LARGEFILE_SOURCE',
29
- 'NAPI_VERSION=<(napi_build_version)',
29
+ 'NAPI_VERSION=6',
30
30
  ],
31
31
  'include_dirs+': [
32
32
  'src/',
33
33
  "<!@(node -p \"require('node-addon-api').include\")"
34
34
  ],
35
-
36
35
  'conditions' : [
37
36
  ['use_system_libusb=="false" and OS!="freebsd"', {
38
37
  'dependencies': [
@@ -93,7 +92,8 @@
93
92
  'AdditionalOptions': [ '/EHsc' ],
94
93
  },
95
94
  },
96
- }]
95
+ }
96
+ ]
97
97
  ]
98
98
  },
99
99
  ]
@@ -21,7 +21,6 @@ export declare class WebUSBDevice implements USBDevice {
21
21
  productName?: string | undefined;
22
22
  serialNumber?: string | undefined;
23
23
  configurations: USBConfiguration[];
24
- private deviceMutex;
25
24
  private constructor();
26
25
  get configuration(): USBConfiguration | undefined;
27
26
  get opened(): boolean;