Commit Graph

1112 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
20368d2113 9.14.3 2019-08-14 15:23:50 -07:00
Feross Aboukhadijeh
55cc025b51
Merge pull request #330 from webtorrent/useless-set
Remove useless assignment
2019-08-14 15:23:12 -07:00
Eric Guan
fc2f84ad60 Check if socket is already connected in _openSocket(). Fixes https://github.com/webtorrent/webtorrent/issues/1245. 2019-08-14 14:20:18 -07:00
Feross Aboukhadijeh
695ade5b86 Remove useless assignment 2019-08-12 18:20:45 -07:00
Feross Aboukhadijeh
5b9da4a5e2 9.14.2 2019-08-11 14:32:35 -07:00
Feross Aboukhadijeh
da70afd3b3 add additional info in debug logs 2019-08-11 14:32:15 -07:00
Feross Aboukhadijeh
8381502f3c Delete package-lock.json 2019-08-09 12:03:28 -07:00
Feross Aboukhadijeh
6f403e9855 9.14.1 2019-08-08 20:05:01 -07:00
Feross Aboukhadijeh
ddee6b96b5 Fix URL constructor on udp:// urls in Chrome App environment
For: https://github.com/brave/brave-browser/issues/5604

`bittorrent-tracker` is broken when run in a Chrome App environment.

The issue is that the `URL` constructor is buggy Chromium. https://bugs.chromium.org/p/chromium/issues/detail?id=734880

We switched to `URL` from `require('url')` in `bittorrent-tracker@9.13.0`. Commit: 93b41391a9

This code path was not exercised by `bittorrent-tracker`'s tests because UDP trackers are normally only used in a Node.js environment. Braves run the code in a Chrome extension environment which we don't test.
2019-08-08 20:04:41 -07:00
Feross Aboukhadijeh
91148ce40b 9.14.0 2019-08-07 19:03:47 -07:00
Feross Aboukhadijeh
6b68180d68
Merge pull request #328 from webtorrent/chromeapp
Add "chromeapp" field to `package.json`
2019-08-07 19:02:34 -07:00
Feross Aboukhadijeh
0227983663 Add "chromeapp" field to package.json
I'm attempting to make a defacto standard for specifying Chrome App dependency substitutions using the `"chromeapp"` field in `package.json`.

The `"chromeapp"` field is just like the [`"browser"` field in `package.json`](https://github.com/defunctzombie/package-browser-field-spec) except it's intended for Chrome Apps instead of a generic browser environment. Bundler tools like `browserify` or `webpack` can be configured to look for the `"chromeapp"` field instead of the `"browser"` field when doing a build for a Chrome App.

In this specific package, since Chrome Apps can use raw sockets we want to replace e.g. `require('net')` with `require('chrome-net')`.
2019-08-07 19:00:25 -07:00
Feross Aboukhadijeh
e3ec9da607
Merge pull request #329 from webtorrent/wrtc
Use wrtc for more reliable tests
2019-08-07 19:00:00 -07:00
Feross Aboukhadijeh
adb8ee237b Use wrtc for more reliable tests 2019-08-07 18:56:31 -07:00
Feross Aboukhadijeh
c87d3d1239 fix travis build 2019-08-07 18:56:31 -07:00
Feross Aboukhadijeh
cbbd0b682b 9.13.0 2019-08-06 17:59:01 -07:00
Feross Aboukhadijeh
d6751dac41 remove safe-buffer 2019-08-06 17:58:05 -07:00
Feross Aboukhadijeh
93b41391a9 BREAKING: drop Node 8 support 2019-08-05 14:54:20 -07:00
Feross Aboukhadijeh
770d57c549 9.12.1 2019-08-01 18:51:44 -07:00
Feross Aboukhadijeh
c8f417e4c7
Merge pull request #327 from webtorrent/greenkeeper/simple-websocket-8.0.0
Update simple-websocket to the latest version 🚀
2019-08-01 18:49:19 -07:00
greenkeeper[bot]
cb0d4403dc fix(package): update simple-websocket to version 8.0.0 2019-08-02 01:40:03 +00:00
Feross Aboukhadijeh
b88cdf7d0a standard 2019-07-27 20:35:35 -07:00
Feross Aboukhadijeh
bf709ccd07 Update AUTHORS.md 2019-07-12 11:42:46 -07:00
Feross Aboukhadijeh
9f227ef9e4 9.12.0 2019-07-12 11:37:27 -07:00
Feross Aboukhadijeh
497bf78f55
Merge pull request #325 from webtorrent/greenkeeper/bn.js-5.0.0
Update bn.js to the latest version 🚀
2019-07-12 11:35:10 -07:00
greenkeeper[bot]
1273af9836 fix(package): update bn.js to version 5.0.0 2019-07-07 16:18:36 +00:00
Feross Aboukhadijeh
1a075bd159 standard 2019-07-05 14:36:14 -07:00
Feross Aboukhadijeh
db4a06d97f standard 2019-07-05 13:12:24 -07:00
Feross Aboukhadijeh
85e7a606a6 standard 2019-07-04 21:58:13 -07:00
Feross Aboukhadijeh
c37aac7277 'url.parse' was deprecated since v11.0.0. Use 'url.URL' constructor instead 2019-07-04 21:41:39 -07:00
Diego Rodríguez Baquero
2c3058294b
Merge pull request #321 from webtorrent/greenkeeper/ws-7.0.0
Update ws to the latest version 🚀
2019-06-19 11:55:10 -05:00
greenkeeper[bot]
7b53065a32 fix(package): update ws to version 7.0.0 2019-04-30 16:14:33 +00:00
Diego Rodríguez
c0331ea541
authors 2019-04-09 16:40:47 -05:00
Diego Rodríguez
a3ebc7971d
9.11.0 2019-04-09 16:40:24 -05:00
Diego Rodríguez Baquero
28978e239a
Merge pull request #320 from alxhotel/validate-port
Add tests to validate tracker
2019-04-09 16:37:55 -05:00
Alex
a8869b0d28 Add tests to validate tracker 2019-04-08 20:43:50 +02:00
Diego Rodríguez Baquero
b0efe653fb
Merge pull request #319 from alxhotel/validate-port
Add validation for tracker port
2019-04-08 09:17:18 -05:00
Alex
5c90b2b6ac Add validation for tracker port 2019-04-06 00:10:20 +02:00
Diego Rodríguez Baquero
24d942288e
Merge pull request #314 from jimmywarting/patch-1
inherits is not used
2019-03-12 07:52:45 -05:00
Jimmy Wärting
57f30603fa
inherits is not used 2019-03-12 10:20:29 +01:00
Diego Rodríguez Baquero
19a363dde9
Merge pull request #305 from justinkalland/fix-no-case-declarations
Wrap lexical declarations inside switch cases
2018-12-20 15:16:47 -05:00
Diego Rodríguez Baquero
dd861404e2
Leave default case without brackets 2018-12-20 15:03:15 -05:00
Justin Kalland
dc79834f77 Use blocks with brackets 2018-12-20 12:59:53 -07:00
Justin Kalland
bc861ef10a Revert "Remove declarations from inside switch statements"
This reverts commit d1b9047c03.
2018-12-20 12:52:05 -07:00
Justin Kalland
d1b9047c03 Remove declarations from inside switch statements 2018-12-20 12:36:54 -07:00
Diego Rodríguez Baquero
e21a3809f7
Merge pull request #295 from jimmywarting/modernize_server.js
Modernize server.js
2018-11-22 11:05:04 -05:00
Diego Rodríguez Baquero
16e735d277
Merge pull request #297 from jimmywarting/modernize_lib_client
Modernize lib/client
2018-11-22 11:03:54 -05:00
Diego Rodríguez Baquero
d410c6c088
Merge branch 'master' into modernize_lib_client 2018-11-22 11:00:48 -05:00
Diego Rodríguez Baquero
941c78c0f3
Merge pull request #296 from jimmywarting/modernize_client.js
modernize client and index using lebab
2018-11-22 11:00:03 -05:00
Diego Rodríguez Baquero
f7d3e9b7c0
Lower reconnect min and increase variance
This will allow servers to "breathe" when lots of peers are reconnecting.
2018-11-22 10:59:34 -05:00