Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

chore: add deprecation notice to readme #169

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

Julusian
Copy link
Contributor

As suggested in #127, I think it is time to think about deprecating this library.

https://github.com/node-usb/node-usb/releases/tag/v2.5.0 now supports native hotplug detection on a wider range of platforms, and will mitigate the very common issue users here have of node abi version mismatches, or missing prebuilds for new node/electron versions.

README.md Outdated

This library is now deprecated. We recommend using [`usb`](https://github.com/node-usb/node-usb#migrating-from-node-usb-detection) for hotplug detection instead. It supports a wider range of platforms, using a more proven codebase.

For help migrating, refer to the [documentation for `usb`](https://github.com/node-usb/node-usb#migrating-from-node-usb-detection)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md Outdated
@@ -6,6 +6,13 @@
`usb-detection` allows you to listen for insert/remove events of USB devices on your system.


## Deprecated
Copy link
Owner

@MadLittleMods MadLittleMods Aug 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this section is very easy to miss. Put it at the very top. Maybe some 🛑 emoji.

Any good examples to pull from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better?

I can't think of any good examples. Most things that I find are deprecated are marked as deprecated on npm and archived on github without much explanation

@MadLittleMods MadLittleMods merged commit 01d3004 into MadLittleMods:master Mar 7, 2023
@MadLittleMods
Copy link
Owner

Thanks for updating this @Julusian! 🐆

I also updated the changelog, pushed a new npm version so the notice is visible, and deprecated the project. Will archive the GitHub project shortly ⏩

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants