diff --git a/README.md b/README.md index 36fcb6d..749b033 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +# Depricated Warning +This package is deprecated as of WebTorrent >= 2.3.0 as native WebRTC support has been added to WebTorrent. Please switch to using the "webtorrent" package. + # webtorrent-hybrid [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] [ci-image]: https://github.com/webtorrent/webtorrent-hybrid/actions/workflows/ci.yml/badge.svg diff --git a/lib/global.js b/lib/global.js index 8c474c8..e00156d 100644 --- a/lib/global.js +++ b/lib/global.js @@ -1,8 +1 @@ -import { announceList } from 'create-torrent' -import wrtc from 'wrtc' - -globalThis.WEBTORRENT_ANNOUNCE = announceList - .map(arr => arr[0]) - .filter(url => url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0) - -globalThis.WRTC = wrtc +console.warn('webtorrent-hybrid: This package is deprecated as of WebTorrent >= 2.3.0 as native WebRTC support has been added to WebTorrent. Please switch to using the "webtorrent" package.') diff --git a/package.json b/package.json index 5529c09..b850286 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,10 @@ "bugs": { "url": "https://github.com/webtorrent/webtorrent-hybrid/issues" }, + "deprecated": "This package is deprecated as of WebTorrent >= 2.3.0 as native WebRTC support has been added to WebTorrent. Please switch to using the \"webtorrent\" package.", "dependencies": { - "create-torrent": "^5.0.0", - "webtorrent": "^1.0.0", - "webtorrent-cli": "^4.0.0", - "wrtc": "^0.4.6" + "webtorrent": "^2.3.0", + "webtorrent-cli": "^4.0.0" }, "devDependencies": { "@webtorrent/semantic-release-config": "1.0.10", @@ -24,7 +23,7 @@ "standard": "*" }, "engines": { - "node": ">=12.20.0" + "node": ">=16" }, "homepage": "https://webtorrent.io", "keywords": [