daShangDao_newAdmin/node_modules/usb/CHANGELOG.md
2025-06-05 10:35:45 +08:00

13 KiB

Changelog

[2.15.0] - 2025-02-21

Added

  • Added support for device.setAutoDetachKernelDriver and set this to true for all devices in the WebUSB API - 859 (Rob Moran)

[2.14.0] - 2024-09-15

Fixed

  • Fixed fatal exceptions by using ThrowAsJavaScriptException instead of Napi::Error::Fatal - 817 (cleoo)

[2.13.0] - 2024-05-26

Changed

Added

  • Added nullchecks and errorchecks in descriptor parsing - 764 (Seth Foster)

[2.12.1] - 2024-03-09

Changed

  • Rolled back prebuildify to 5.0.1 to avoid naming issue - 744 (Rob Moran)

[2.12.0] - 2024-03-02

Added

  • Added prebuilt binary for Windows Arm64 - 735 (Rob Moran)
  • Added exception handling - 738 (Rob Moran)
  • Added exception when trying to transfer and device is closed - 715 (Rob Moran)

Changed

  • Precreate async transfer functions to increase speed - 725 (Cosmin Tanislav)
  • Precreate all other async functions to increase speed - 730 (Rob Moran)

Fixed

[2.11.0] - 2023-10-02

Fixed

[2.10.0] - 2023-08-22

Fixed

[2.9.0] - 2023-03-16

Changed

[2.8.3] - 2023-03-09

Fixed

[2.8.2] - 2023-03-06

Added

  • Added new usb.pollHotplug setting to allow users to force hotplug detection using polling - 576 (Rob Moran)

[2.8.1] - 2023-02-26

Changed

  • Reworked WebUSB options.allowedDevices to allow pre-authorisation using any filter - 574 (Rob Moran)
  • Updated requestDevice errors to use correct names - 575 (Rob Moran)

[2.8.0] - 2023-02-11

Changed

  • Minor tweaks to avoid some race conditions - 569 (Rob Moran)

[2.7.0] - 2023-01-25

Fixed

[2.6.0] - 2022-12-10

Changed

  • Updated build dependencies and now using Python 3.x for builds (shouldn't affect package) - 563 (Rob Moran)

[2.5.3] - 2022-12-06

Changed

[2.5.2] - 2022-09-24

Fixed

  • Allow errors during WebUSBDevice creation to be thown - 549 (Rob Moran)
  • Ensure cmNotifyFilter is kept alive for the duration of the hotplug detetion on Windows - 541 (Julian Waller)

Changed

  • Export all types at the top level of the package - 544 (Rob Moran)
  • Trimmed TypeScript source from release package - 536 (Rob Moran)

[2.5.1] - 2022-08-29

Fixed

  • USB device plug/unplug detection on Windows when devce already attached - 531 (Rob Moran)
  • Removed dependency on yarn in package.json scripts - 535 (Rob Moran)

[2.5.0] - 2022-07-30

Fixed

[2.4.3] - 2022-06-21

Fixed

[2.4.2] - 2022-05-27

Fixed

  • Fixed multiple events with device detection on Windows - 512 (Alba Mendez)

[2.4.1] - 2022-05-07

Fixed

  • Fixed node engine ranges in package.json - (Rob Moran)

[2.4.0] - 2022-05-02

Fixed

Changed

  • Breaking: Updated to N-API version 6 (Node >=10.20.0 <11.x, >=12.17.0 <13.0, >=14.0.0) - 509 (Rob Moran)

Added

Removed

  • Removed USE_POLL build definition to simplify code - 507 (Rob Moran)

[2.3.1] - 2022-04-11

Changed

  • Removed device access mutex from WebUSB API - 501 (Rob Moran)

[2.3.0] - 2022-04-11

Changed

[2.2.0] - 2022-03-25

Added

  • Added useUsbDkBackend() method for switching libusb backend on Windows - 489 (Rob Moran)

Changed

  • Changed libusb dependency to upstream v1.0.25 - 490 (Rob Moran)

Fixed

  • Shortcut getStringDescriptor() to return undefined when passed index 0 - 487 (Rob Moran)
  • Fixed race issue with garbage collected devices - 492 (Alba Mendez)

[2.1.3] - 2022-03-18

Fixed

[2.1.2] - 2022-02-09

Fixed

  • Fixed error being thrown when searching for interface endpoint - 479 (Rob Moran)

[2.1.1] - 2022-02-07

Fixed

  • Fixed prebuildify tags which lead to missing binaries - 477 (Rob Moran)

[2.1.0] - 2022-01-29

Added

Fixed

  • Fixed lack of universal binary for MacOS darwin arm64 - 473 (Rob Moran)

[2.0.3] - 2021-12-13

Added

  • Added definition for NAPI_VERSION 4 and added N-API v4 target to prebuildify - (Rob Moran)

[2.0.2] - 2021-12-12

Fixed

  • Fixed error with trying to close WebUSB devices after they had failed to open - (Rob Moran)

[2.0.1] - 2021-12-11

Added

  • Added new WebUSB API - 443 (Rob Moran)
  • Switched to TypeScript
  • Switched to yarn instead of npm
  • Added docs using Typedoc

[1.9.2] - 2021-12-05

Fixed

  • Fixed exit delay and hang by moving queue start/stop to device open/close - 460 (MikeColeGuru)

[1.9.1] - 2021-11-14

Fixed

  • Reverted fix for exit delay fixing a segfault issue it introduced - 456 (Rob Moran)

[1.9.0] - 2021-11-08

Changed

  • Changed libusb dependency to upstream v1.0.23 - 453 (Rob Moran)

[1.8.1] - 2021-11-08

Added

Fixed

[1.8.0] - 2021-10-14

Added

  • Added prebuildify and GitHub action for native binaries - 450 (Rob Moran)

Fixed

Changed

[1.7.2] - 2021-08-30

Fixed

  • Fixed crash when exiting on MacOS with Electron 9 - 440 (Daniel Main)

Changed

  • Breaking: Changed minimum Node.js version to 10 - 428 (Rob Moran)

[1.7.1] - 2021-05-08

Fixed

[1.7.0] - 2021-04-10

Changed

[1.6.5] - 2021-02-14

Changed

Removed

[1.6.4] - 2021-01-30

Added

  • Added prebuild for Electron 10 and 12 beta - 407 (Rob Moran)
  • Added prebuild for Electron 9 - 362 (Luke Whyte)

Changed

  • Changed to GitHub Actions for prebuild workflow - 404 (Rob Moran)
  • Changed Node.js 13 prebuild target to Node.js 14 - 374 (Micah Zoltu)