-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depend on upstream WebTorrent #3134
Conversation
3129a14
to
a4242c2
Compare
'dgram': 'chrome-dgram', | ||
'dns': path.resolve(__dirname, '../common/dns.ts'), | ||
'net': 'chrome-net', | ||
'torrent-discovery': path.resolve(__dirname, '../../node_modules/torrent-discovery') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- No more need to depend on
bittorrent-tracker
ortorrent-discovery
fork. - No more need to specify
net
tochrome-net
ordgram
tochrome-dgram
alias.
} | ||
// TODO(feross): Publish chrome-dns and add to "chromeapp" package.json | ||
// field so this isn't required anymore | ||
dns: path.resolve(__dirname, '../common/dns.ts') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to shim dns
as well, but haven't done that yet. Once I publish chrome-dns
, I will include it in webtorrent
's "chromeapp"
field in package.json
and then we can remove this line as well :)
}, | ||
// For explanation of "chromeapp", see: | ||
// https://github.com/brave/brave-browser/issues/5587 | ||
aliasFields: ['chromeapp'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tells webpack
to use "chromeapp"
instead of "browser"
in package.json
.
"unique-selector": "^0.4.1", | ||
"webtorrent": "github:brave/webtorrent#652fbeecd6c05076fdfd0f1e64ccb3957d51e21f" | ||
"webtorrent": "^0.107.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're depending on upstream!
a4242c2
to
3a3c1e9
Compare
Fixes: brave/brave-browser#5587 Fixes: brave/brave-browser#856 Fixes: brave/brave-browser#5489 This makes Brave depend on upstream WebTorrent instead of the fork. This also removes the need for forks of torrent-discovery and bittorrent-tracker.
3a3c1e9
to
d187598
Compare
@feross I think it's more safe to do some manual testing on this PR, could you update the test plan and labelled the main issue as QA/Yes? |
@yrliou Done. I updated the test plan and added |
The latest CI failure was just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through the test plan and LGTM, thanks for the effort on this one!
Of course! I think this is a great improvement. Should be a lot less work to stay on the latest webtorrent now :) |
Fixes: brave/brave-browser#5587
Fixes: brave/brave-browser#856
Fixes: brave/brave-browser#5489
This makes Brave depend on upstream WebTorrent instead of the fork. This also removes the need for forks of torrent-discovery and bittorrent-tracker.
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.