Skip to content

Commit 84ee0eb

Browse files
authored
Merge pull request #1 from webtorrent/master
update
2 parents 5588419 + 4b5299b commit 84ee0eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3965
-1946
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci
2+
'on':
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Node ${{ matrix.node }} / ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
node:
15+
- '14'
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: ${{ matrix.node }}
21+
- run: npm install
22+
- run: npm run build --if-present
23+
- run: npm test

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
persist-credentials: false
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 14
21+
- name: Cache
22+
uses: actions/cache@v3
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-npm-
28+
- name: Install dependencies
29+
run: npm i
30+
env:
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
- name: Release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
run: npx semantic-release

.github/workflows/stale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '0 12 * * *'
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
steps:
15+
- uses: actions/stale@v5
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-issue-message: 'Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?'
19+
stale-pr-message: 'Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?'
20+
exempt-issue-labels: accepted,blocked,bug,dependency,enhancement,'help wanted',question,security,meta
21+
exempt-pr-labels: accepted,blocked,bug,dependency,enhancement,'help wanted',question,security,meta
22+
stale-issue-label: 'stale'
23+
stale-pr-label: 'stale'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
package-lock.json

.npmignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
img.png
1+
CONTRIBUTING.md
2+
examples/
3+
img/
4+
test/
5+
tools/
6+
.github/

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

AUTHORS.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Authors
2+
3+
#### Ordered by first contribution.
4+
5+
- Feross Aboukhadijeh ([email protected])
6+
- Mathias Buus ([email protected])
7+
- thermatk ([email protected])
8+
- fisch0920 ([email protected])
9+
- Aliaksei Sapach ([email protected])
10+
- John Hiesey ([email protected])
11+
- hicom150 ([email protected])
12+
13+
14+
- Anthony MOI ([email protected])
15+
- Max Ogden ([email protected])
16+
- Sidd Sridharan ([email protected])
17+
- Nick Rafter ([email protected])
18+
- zckevin ([email protected])
19+
- Michael Williams ([email protected])
20+
- Garret Buell ([email protected])
21+
- Linus Unnebäck ([email protected])
22+
- Aram Drevekenin ([email protected])
23+
- Gustavo Rodrigues ([email protected])
24+
25+
- Harsh Vakharia ([email protected])
26+
- Yoann Ciabaud ([email protected])
27+
28+
- Diego Rodríguez Baquero ([email protected])
29+
- Kirill Fomichev ([email protected])
30+
- Matt Bell ([email protected])
31+
- Diego Rodríguez ([email protected])
32+
- Philipp Henkel ([email protected])
33+
34+
- Nick Frost ([email protected])
35+
- ZunSThy ([email protected])
36+
- vijayanand nandam ([email protected])
37+
- Luigi Pinca ([email protected])
38+
- Diego R. B ([email protected])
39+
- greenkeeper[bot] (greenkeeper[bot]@users.noreply.github.com)
40+
- hrafnkell orri sigurdsson ([email protected])
41+
- Brian Clifton ([email protected])
42+
- James M Snell ([email protected])
43+
- crapthings ([email protected])
44+
45+
46+
- Jimmy Wärting ([email protected])
47+
- Justin Kalland ([email protected])
48+
- greenkeeper[bot] (23040076+greenkeeper[bot]@users.noreply.github.com)
49+
- Eric Guan ([email protected])
50+
- Koushik Dutta ([email protected])
51+
- KayleePop ([email protected])
52+
- Diego Rodriguez Baquero ([email protected])
53+
- Diego Rodríguez Baquero ([email protected])
54+
- Renovate Bot ([email protected])
55+
- Diego Rodríguez Baquero ([email protected])
56+
- Diego Rodriguez Baquero ([email protected])
57+
- semantic-release-bot ([email protected])
58+
- renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
59+
- Jocelyn Liu ([email protected])
60+
- Bruce Hopkins ([email protected])
61+
- Ryan Finnie ([email protected])
62+
63+
- Paul Sharypov ([email protected])
64+
65+
#### Generated by tools/update-authors.sh.

CHANGELOG.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# [9.19.0](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.6...v9.19.0) (2022-06-01)
2+
3+
4+
### Features
5+
6+
* **events:** Support of `paused` client event ([#411](https://github.com/webtorrent/bittorrent-tracker/issues/411)) ([ef76b3f](https://github.com/webtorrent/bittorrent-tracker/commit/ef76b3f3b6beee87f57d74addd0ca2ef2c517b6d))
7+
8+
## [9.18.6](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.5...v9.18.6) (2022-05-11)
9+
10+
11+
### Bug Fixes
12+
13+
* revert [#420](https://github.com/webtorrent/bittorrent-tracker/issues/420) ([8d54938](https://github.com/webtorrent/bittorrent-tracker/commit/8d54938f164347d57a7991268d191e44b752de7f))
14+
15+
## [9.18.5](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.4...v9.18.5) (2022-03-25)
16+
17+
18+
### Bug Fixes
19+
20+
* connection leaks ([#420](https://github.com/webtorrent/bittorrent-tracker/issues/420)) ([f7928cf](https://github.com/webtorrent/bittorrent-tracker/commit/f7928cfcc646cd95556549b64e61228892314682))
21+
22+
## [9.18.4](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.3...v9.18.4) (2022-03-06)
23+
24+
25+
### Bug Fixes
26+
27+
* typo in ws example ([#417](https://github.com/webtorrent/bittorrent-tracker/issues/417)) ([023afb9](https://github.com/webtorrent/bittorrent-tracker/commit/023afb9a3228d60392a18e70f85cdb6af5fa79fb))
28+
29+
## [9.18.3](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.2...v9.18.3) (2021-10-29)
30+
31+
32+
### Bug Fixes
33+
34+
* **deps:** update dependency clone to v2 ([#393](https://github.com/webtorrent/bittorrent-tracker/issues/393)) ([dc6f796](https://github.com/webtorrent/bittorrent-tracker/commit/dc6f7966844216c39491d6623dd412d5ca65d4c4))
35+
36+
## [9.18.2](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.1...v9.18.2) (2021-09-02)
37+
38+
39+
### Bug Fixes
40+
41+
* **deps:** update dependency socks to v2 ([#394](https://github.com/webtorrent/bittorrent-tracker/issues/394)) ([353e1f4](https://github.com/webtorrent/bittorrent-tracker/commit/353e1f40093a5e74cb54219abbae8ef0cc3d9e0b))
42+
43+
## [9.18.1](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.0...v9.18.1) (2021-09-01)
44+
45+
46+
### Bug Fixes
47+
48+
* disable socks in chromeapp ([#398](https://github.com/webtorrent/bittorrent-tracker/issues/398)) ([7fd5877](https://github.com/webtorrent/bittorrent-tracker/commit/7fd587789548453a852ea01e54900a5e9155db67))
49+
50+
# [9.18.0](https://github.com/webtorrent/bittorrent-tracker/compare/v9.17.4...v9.18.0) (2021-08-20)
51+
52+
53+
### Features
54+
55+
* add proxy support for tracker clients ([#356](https://github.com/webtorrent/bittorrent-tracker/issues/356)) ([ad64dc3](https://github.com/webtorrent/bittorrent-tracker/commit/ad64dc3a68cddccc2c1f05d0d8bb833f2c4860b2))
56+
57+
## [9.17.4](https://github.com/webtorrent/bittorrent-tracker/compare/v9.17.3...v9.17.4) (2021-07-22)
58+
59+
60+
### Bug Fixes
61+
62+
* if websocket closed, don't produce a response ([ca88435](https://github.com/webtorrent/bittorrent-tracker/commit/ca88435617e59714a456031c75b3a329897d97bd))
63+
64+
## [9.17.3](https://github.com/webtorrent/bittorrent-tracker/compare/v9.17.2...v9.17.3) (2021-07-02)
65+
66+
67+
### Bug Fixes
68+
69+
* auto update authors on version ([b5ffc70](https://github.com/webtorrent/bittorrent-tracker/commit/b5ffc708ada0bef66e7fa0cd1872527ea6dd8d53))
70+
71+
## [9.17.2](https://github.com/webtorrent/bittorrent-tracker/compare/v9.17.1...v9.17.2) (2021-06-15)
72+
73+
74+
### Bug Fixes
75+
76+
* modernize ([e5994d2](https://github.com/webtorrent/bittorrent-tracker/commit/e5994d2ebdec10fe2165e31f5b498382eeeaaf5f))
77+
78+
## [9.17.1](https://github.com/webtorrent/bittorrent-tracker/compare/v9.17.0...v9.17.1) (2021-06-15)
79+
80+
81+
### Bug Fixes
82+
83+
* add package-lock ([0e486b0](https://github.com/webtorrent/bittorrent-tracker/commit/0e486b09d80d30e1c13d4624e29c4251000d4092))
84+
* **deps:** update dependency bn.js to ^5.2.0 ([2d36e4a](https://github.com/webtorrent/bittorrent-tracker/commit/2d36e4ae60b1bac51773f2dca81c1a158b51cb28))
85+
* **deps:** update dependency chrome-dgram to ^3.0.6 ([a82aaaa](https://github.com/webtorrent/bittorrent-tracker/commit/a82aaaa31963a0d9adb640166f417142c5d7b970))
86+
* **deps:** update dependency run-parallel to ^1.2.0 ([fcf25ed](https://github.com/webtorrent/bittorrent-tracker/commit/fcf25ed40e1fd64e630b10a0281bc09604b901d3))
87+
* **deps:** update dependency run-series to ^1.1.9 ([fa2c33f](https://github.com/webtorrent/bittorrent-tracker/commit/fa2c33fc91f8ef0a47d0f40b7a046ae179ee328a))
88+
* **deps:** update dependency simple-websocket to ^9.1.0 ([96fedbd](https://github.com/webtorrent/bittorrent-tracker/commit/96fedbdf56ddcf6627eb373a33589db885cb4fb7))
89+
* **deps:** update dependency ws to ^7.4.5 ([6ad7ead](https://github.com/webtorrent/bittorrent-tracker/commit/6ad7ead994e5cb99980a406aea908e4b9ff6151c))
90+
* **deps:** update webtorrent ([1e8d47d](https://github.com/webtorrent/bittorrent-tracker/commit/1e8d47dcd8f5f53b42aa75265a129f950d16feef))
91+
* UDP url parsing ([8e24a8c](https://github.com/webtorrent/bittorrent-tracker/commit/8e24a8c97b55bbaaf2c92a496d1cd30b0c008934))

CONTRIBUTING.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributing Guidelines
2+
3+
Contributions welcome!
4+
5+
**Before spending lots of time on something, ask for feedback on your idea first!**
6+
7+
Please search issues and pull requests before adding something new to avoid duplicating
8+
efforts and conversations.
9+
10+
This project welcomes non-code contributions, too! The following types of contributions
11+
are welcome:
12+
13+
- **Ideas**: participate in an issue thread or start your own to have your voice heard.
14+
- **Writing**: contribute your expertise in an area by helping expand the included docs.
15+
- **Copy editing**: fix typos, clarify language, and improve the quality of the docs.
16+
- **Formatting**: help keep docs easy to read with consistent formatting.
17+
18+
## Code Style
19+
20+
[![JavaScript Style Guide][standard-image]][standard-url]
21+
22+
This repository uses [`standard`][standard-url] to maintain code style and consistency,
23+
and to avoid style arguments. `npm test` runs `standard` automatically, so you don't have
24+
to!
25+
26+
[standard-image]: https://cdn.rawgit.com/feross/standard/master/badge.svg
27+
[standard-url]: https://standardjs.com
28+
29+
## Project Governance
30+
31+
Individuals making significant and valuable contributions are given commit-access to the
32+
project to contribute as they see fit. This project is more like an open wiki than a
33+
standard guarded open source project.
34+
35+
### Rules
36+
37+
There are a few basic ground-rules for contributors:
38+
39+
1. **No `--force` pushes** or modifying the Git history in any way.
40+
2. **Non-master branches** should be used for ongoing work.
41+
3. **Significant modifications** like API changes should be subject to a **pull request**
42+
to solicit feedback from other contributors.
43+
4. **Pull requests** are *encouraged* for all contributions to solicit feedback, but left to
44+
the discretion of the contributor.
45+
46+
### Releases
47+
48+
Declaring formal releases remains the prerogative of the project maintainer.
49+
50+
### Changes to this arrangement
51+
52+
This is an experiment and feedback is welcome! This document may also be subject to pull-
53+
requests or changes by contributors where you believe you have something valuable to add
54+
or change.
55+
56+
## Developer's Certificate of Origin 1.1
57+
58+
By making a contribution to this project, I certify that:
59+
60+
- (a) The contribution was created in whole or in part by me and I have the right to
61+
submit it under the open source license indicated in the file; or
62+
63+
- (b) The contribution is based upon previous work that, to the best of my knowledge, is
64+
covered under an appropriate open source license and I have the right under that license
65+
to submit that work with modifications, whether created in whole or in part by me, under
66+
the same open source license (unless I am permitted to submit under a different
67+
license), as indicated in the file; or
68+
69+
- (c) The contribution was provided directly to me by some other person who certified
70+
(a), (b) or (c) and I have not modified it.
71+
72+
- (d) I understand and agree that this project and the contribution are public and that a
73+
record of the contribution (including all personal information I submit with it,
74+
including my sign-off) is maintained indefinitely and may be redistributed consistent
75+
with this project or the open source license(s) involved.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Feross Aboukhadijeh
3+
Copyright (c) Feross Aboukhadijeh and WebTorrent, LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)