Skip to content

Commit

Permalink
BREAKING CHANGE: Deprecate webtorrent-hybrid
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SilentBot1 committed Jun 2, 2024
1 parent d053c93 commit 6963b63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 1 addition & 8 deletions lib/global.js
Original file line number Diff line number Diff line change
@@ -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.')
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@
"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",
"semantic-release": "21.1.2",
"standard": "*"
},
"engines": {
"node": ">=12.20.0"
"node": ">=16"
},
"homepage": "https://webtorrent.io",
"keywords": [
Expand Down

0 comments on commit 6963b63

Please sign in to comment.