-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Deprecate webtorrent-hybrid (#195)
* fix: update tests to use import. * BREAKING CHANGE: Deprecate 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. * fix: Update ci to use NodeJS 16 to match package.json * Update README.md Update `Deprecated Warning` to `Deprecation Warning` Co-authored-by: Cas_ <[email protected]> * fix: re-add WEBTORRENT_ANNOUNCE which is used for adding websocket trackers to magnetURIs which do not already have them. * feat: update webtorrent-cli to v5 --------- Co-authored-by: Cas_ <[email protected]>
- Loading branch information
1 parent
98c8d76
commit fe511bf
Showing
6 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
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.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters