2.1.15 (2023-07-24)
- deps: update webtorrent (f9b34d6)
2.1.14 (2023-07-23)
2.1.13 (2023-07-19)
2.1.12 (2023-07-05)
2.1.11 (2023-06-17)
2.1.10 (2023-06-17)
2.1.9 (2023-06-17)
2.1.8 (2023-06-16)
2.1.7 (2023-06-16)
2.1.6 (2023-06-16)
2.1.5 (2023-06-16)
2.1.4 (2023-06-16)
2.1.3 (2023-06-16)
2.1.2 (2023-06-16)
- deps: update dependency fs-chunk-store to ^4.1.0 (c9103bf)
2.1.1 (2023-06-15)
2.1.0 (2023-06-13)
2.0.37 (2023-06-08)
2.0.36 (2023-06-08)
- deps: update dependency torrent-discovery to ^10.0.11 (9415322)
2.0.35 (2023-06-07)
2.0.34 (2023-06-05)
2.0.33 (2023-06-05)
2.0.32 (2023-06-05)
2.0.31 (2023-06-05)
2.0.30 (2023-06-05)
2.0.29 (2023-06-04)
2.0.28 (2023-06-03)
2.0.27 (2023-05-31)
2.0.26 (2023-05-31)
- deps: update dependency parse-torrent to ^11.0.12 (2766f6f)
2.0.25 (2023-05-30)
2.0.24 (2023-05-30)
2.0.23 (2023-05-28)
2.0.22 (2023-05-27)
2.0.21 (2023-05-27)
2.0.20 (2023-05-27)
2.0.19 (2023-05-27)
- deps: update dependency torrent-discovery to ^10.0.8 (714535b)
2.0.18 (2023-05-07)
2.0.17 (2023-05-04)
2.0.16 (2023-04-03)
- deps: update webtorrent (7a7838c)
2.0.15 (2023-03-20)
2.0.14 (2023-02-22)
- deps: update dependency create-torrent to ^6.0.10 (d9e6784)
2.0.13 (2023-02-13)
2.0.12 (2023-02-06)
2.0.11 (2023-02-01)
2.0.10 (2023-02-01)
2.0.9 (2023-02-01)
2.0.8 (2023-01-31)
2.0.7 (2023-01-31)
2.0.6 (2023-01-30)
2.0.5 (2023-01-30)
2.0.4 (2023-01-28)
2.0.3 (2023-01-28)
2.0.2 (2023-01-28)
2.0.1 (2023-01-25)
- deps: update dependency hybrid-chunk-store to ^1.1.3 (2b7c435)
2.0.0 (2023-01-23)
- dependencies (9bd7933)
- deprecate render-media (#2180) (8b5ecea)
- deps: update dependency streamx to ^2.13.1 (#2430) (fb5f5a6)
- deps: update dependency streamx to ^2.13.2 (#2438) (4a177d7)
- documentation, unity (9ae5f17)
- ESM browser tests (975c463)
- remove dead code (2839c7a)
- remove tap-spec where it's not necessary (5188eca)
- revert bittorent-protocol ver (28df830)
- standard [whitespace] (a4bc0c3)
- standard linting (a64a719)
-
fix release node 18 (25eb995)
-
Merge pull request #2260 from webtorrent/v2 (f8c545a), closes #2260
-
feat, perf: w3c-like File, file-iterator (#2414) (69d85a8), closes #2414
- esm (98353d9)
- rescan of torrent should get all (in)valid events (#1903) (4745739)
- sw-renderer tests (73aff7f)
- unify HTTP server and SW renderer (7aeea17)
- use storage (FSA+IDB) instead of memory in browser (00e1c9f)
- drop browserify (c73d28e)
- drop chunk store stream (cf4d593)
- drop rusha, drop Buffer (#2390) (9ac1dfa)
- use mime-lite (c83734c)
-
v2
-
ESM only, drop node 12 and ndoe 14
-
deprecate getBuffer
-
fix: reading when destroyed
1.9.7 (2023-01-12)
1.9.6 (2022-12-03)
- fix: fix: error loop (14fe83f)
1.9.5 (2022-12-03)
- infinite error loop, connecting after destroy (79dbf69)
1.9.4 (2022-11-21)
1.9.3 (2022-11-18)
- removePeer error after destroy (36a64a1)
1.9.2 (2022-11-11)
1.9.1 (2022-10-28)
1.9.0 (2022-10-28)
1.8.32 (2022-10-09)
- deps: update dependency torrent-discovery to ^9.4.14 (8fadd4f)
1.8.31 (2022-10-08)
1.8.30 (2022-09-12)
1.8.29 (2022-09-03)
- deps: update dependency create-torrent to ^5.0.6 (03a0f50)
1.8.28 (2022-09-02)
- deps: update dependency fast-blob-stream to ^1.1.1 (a441dea)
- deps: update dependency join-async-iterator to ^1.1.1 (09b9958)
1.8.27 (2022-09-02)
- dedupe packages (9ea33c2)
- drop multi-stream (5d87d1b)
- null opts causing error (3a8f901)
- use streamx instead of stream (8b97ee8)
1.8.26 (2022-07-04)
- deps: update dependency create-torrent to ^5.0.4 (3728336)
1.8.25 (2022-07-03)
- deps: update dependency create-torrent to ^5.0.3 (5009d10)
1.8.24 (2022-06-23)
1.8.23 (2022-06-23)
- deps: update dependency torrent-discovery to ^9.4.13 (1e3373a)
1.8.22 (2022-05-24)
- deps: update dependency bittorrent-dht to ^10.0.4 (327d723)
1.8.21 (2022-05-23)
1.8.20 (2022-05-14)
1.8.19 (2022-05-11)
- deps: update dependency torrent-discovery to ^9.4.12 (36e931a)
1.8.18 (2022-05-11)
1.8.17 (2022-05-11)
1.8.16 (2022-04-28)
- deps: update dependency bittorrent-protocol to ^3.5.5 (3522080)
1.8.15 (2022-04-26)
1.8.14 (2022-04-22)
- deps: update dependency bitfield to ^4.1.0 (#2303) (a778522)
- deps: update dependency bittorrent-protocol to ^3.5.3 (#2302) (11f9426)
1.8.13 (2022-03-30)
- deps: update dependency fs-chunk-store to ^2.0.5 (2eef418)
1.8.12 (2022-03-28)
- deps: update dependency bittorrent-protocol to ^3.5.2 (13fb0d6)
1.8.11 (2022-03-27)
1.8.10 (2022-03-27)
1.8.9 (2022-03-26)
- deps: update dependency parse-torrent to ^9.1.5 (650a8c9)
1.8.8 (2022-03-25)
- deps: update dependency debug to ^4.3.4 (017c488)
1.8.7 (2022-03-24)
1.8.6 (2022-03-11)
1.8.5 (2022-03-06)
- deps: update dependency torrent-discovery to ^9.4.9 (5a08647)
1.8.4 (2022-03-03)
1.8.3 (2022-02-21)
1.8.2 (2022-02-17)
- deps: update dependency simple-peer to ^9.11.1 (34df41a)
1.8.1 (2022-02-03)
- going for 1.8.1 (e39057f)
1.8.0 (2022-02-03)
- 1.8.0 fixing (cac563b)
1.7.4 (2022-02-03)
1.7.3 (2022-02-03)
1.7.2 (2022-01-27)
1.7.1 (2022-01-20)
1.7.0 (2022-01-20)
1.6.0 (2022-01-17)
1.5.11 (2022-01-14)
- deps: update dependency debug to ^4.3.3 (#2228) (e268096)
- deps: update dependency mime to v3 (#2216) (77da8cb)
1.5.10 (2022-01-14)
- use @webtorrent/http-node (699d747)
1.5.9 (2022-01-12)
1.5.8 (2021-10-26)
1.5.7 (2021-10-25)
1.5.6 (2021-10-05)
- http-node git location (67ddac0)
1.5.5 (2021-09-02)
1.5.4 (2021-08-25)
1.5.3 (2021-08-20)
1.5.2 (2021-08-20)
1.5.1 (2021-08-20)
1.5.0 (2021-08-19)
1.4.0 (2021-08-17)
1.3.10 (2021-08-16)
1.3.9 (2021-08-06)
1.3.8 (2021-08-06)
1.3.7 (2021-08-05)
1.3.6 (2021-08-05)
1.3.5 (2021-08-04)
1.3.4 (2021-07-30)
1.3.3 (2021-07-25)
- log error when failing to load blocklist ip set (c0a07fb)
1.3.2 (2021-07-24)
1.3.1 (2021-07-24)
1.3.0 (2021-07-23)
1.2.6 (2021-07-23)
1.2.5 (2021-07-19)
1.2.4 (2021-07-13)
1.2.3 (2021-07-13)
1.2.2 (2021-07-11)
1.2.1 (2021-07-11)
1.2.0 (2021-07-09)
1.1.6 (2021-07-08)
1.1.5 (2021-07-06)
1.1.4 (2021-07-03)
1.1.3 (2021-07-02)
- add preversion (55fe206)
1.1.2 (2021-07-02)
1.1.1 (2021-07-02)
1.1.0 (2021-06-30)
1.0.4 (2021-06-30)
1.0.3 (2021-06-30)
1.0.2 (2021-06-23)
- enable UTP by default if there's support (0df9eb6)
1.0.1 (2021-06-17)
1.0.0 (2021-05-21)
- bring back release config (d78055b)
- getAnnounceOpts (#2075) (633b922)
- install config (6ba44c4)
- deps: update webtorrent (18a8962)
- ci (134721c)
- github ci secrets (fc7ec9f)
- version strategy gh actions (1cba675)
- chore: add release
- add semantic release config
- Update release.yml
- Ensure that
appendTo
callback is called once video tag is added to DOM, not after play (#1967)
- Add Local Service Discovery (BEP14)
- bitfield@4
- Fix BEP53 implementation
- Support Implement the peer address property (x.pe) from BEP09
- Fix "Cannot read property 'utp' of null"
- Peer reconnect timeout throwing error after torrent is destroyed
- refactor torrent._rechoke()
- simple-get@4
- electron@9
- deps
- Add stale bot config
- Create no-response.yml
- Create config.yml
- Update no-response.yml
- Add uTP support (BEP29)
- check if torrent is destroyed before emitting download/upload event
- ut_pex 2.0.1
- browserify@17
- electron@10
- update deps
- bump deps
- add test for downloading from a manually added peer
- fix: not setting initial wire interest
- update interest when a peer's bitfield changes
- Create
webtorrent.chromeapp.js
- update bittorrent-dht to version 10.0.0
- Change parseRange.parse to parseRange
- implement store destruction option
- Fix drag-drop.min.js link
- update parse-numeric-range to version 1.2.0
- browsers: add tests for safari, edge, android, iphone
- fix ratio calculation
- Check if client is set when debug logging
- downgrade end-of-stream to v1.4.1
private
option overrides default, only if it's defined- use native Set instead of uniq library
- Improve code readability
- Unbreak built file
- fix git commit reference to
http-node
package
- Return server from server.listen for method chaining to work
- Update .gitignore
- Added tests to check the order of torrent events
- Fixed how first piece's irrelevant bytes are calculated
- Added timeout option for
requestIdlecallback
to prevent longer delays in download
- Server now uses relative urls
- Added a check in case user destroys torrent in response to
metadata
event
- Fixed the torrent event emission order; now
metadata
is emitted beforeready
anddone
- Updated to simple-sha1@3
- Updated jsdelivr urls to use latest Webtorrent
- Fixed XSS vulnerability in the http Server (issue)
- No meaningful changes
- Added api documentation for some torrent properties
- Bug fix: trackers now recieve 0 while seeding file instead of the file size
- Updated org-wide security policies and contributing guidelines
- No meaningful changes
- Scripts are now more verbose
- Updated to stream-to-bolob-url@3
- Added
chromeapp
field to package.json for specifying Chrome App dependency substitutions
- Smaller build with tinify
- Added size-disc script to visualize bundle
- Updated to electron@6
- Dropped support for node versions < 10
- Now uses 'application/octet-stream' mimetype as fallback instead of null
- Fixed server
hostname
option to mitigate DNS rebinding attack (issue)
- Bug fixed: Video streaming is now fixed in Brave nightly and chromium nightly (issue)
- Updated to parse-torrent@7
- Added manual verification for torrent files
- Updated to chunk-store-stream@4
- Updated to multistream@3
- Updated to create-torrent@4
- Dropped support for node versions < 8
- No meaningful changes
- Updated to electron@5
- Added the ability to close and restore streaming server
- Updated to electron@4
- Bug fixed: File progress is no longer shown in negative
- No longer verifies file hashes passed to seed
- No longer calls torrent.load() when seeding FS filepath
- Reduced download impact on slower computers: now download chunks at a lower priority (rationale)
- No meaningful changes
- Removed xtend
- Removed the concurrency limit in browser
- Reduced installtion size by removing zero-fill
- Updated to bittorrent-dht@9
- Update some webtorrent packages to ES6 (webtorrent/#1443)
- No meaningful changes
- Updated to chunk-store-stream@3
- Updated to immediate-chunk-store@2
- Updated to [email protected]
- Updated to bittorrent-protocol@3
- Optimized peers: peers now start as uninterested and only move to interested if/once they have a piece that we need (webtorrent/#1059)
- No meaningful changes
- Implemented BEP53 to alow file selection using
select only
parameter in MagnetURIs (webtorrent/#1395)
- Use updated
babel-minify
minifier instead of deprecatedbabili
- Add extra check to prevent invalid
peer.conn.remotePort
from being used (webtorrent-hybrid/#76)
- Use
.npmignore
to prevent unneeded files from being included in the published package
- Expose
WebTorrent.VERSION
(#1358) - Update to simple-get@3
- Update to parse-torrent@6
renderTo()
/appendTo()
does not autoplay by default anymore (rationale)- Pass
{autoplay: true}
torenderTo()
/appendTo()
to get the old behavior.
- Pass
renderTo()
/appendTo()
has a newmuted
option to mute the video by default.
- Add hostname option to mitigate DNS rebinding (#1260)
- Update to simple-peer@9
- Browser testing: switch from
zuul
toairtap
- Update to bitfield@2
- Update to browserify@16
- Update to bittorrent-dht@8
- Update to pump@3
- Update to pump@2
- Update to mime@2
- Update to cross-spawn@6
- Update to browserify@15
- Fix
file.downloaded
for last piece - Fix destroyed torrent debug
- Update to mime@2
- Update to debug@3
- Update to electron@1
- Add
origin
option for torrent.createServer() (#1096) - Add
file.progress
property (#1140) - Switch to ES6-compatible minifier
- Transfer webtorrent from @feross to @webtorrent organization.
- Fix uncaught exception (#1103)
- Update to simple-peer@8
- No meaningful changes
- Add filename to URLs on server index page (#1078)
- No meaningful changes
- Fix files under 16Kb are not downloaded correctly (#1077)
- Fix detection of seeding peers (#1076)
- Update to bittorrent-tracker@9
- Update to finalhandler@1
- Update to simple-peer@7
- wait to notify() or updateInterest() at end of GC (#1044)
- Update to cross-spawn@5
- Change os.tmpDir() to os.tmpdir() (#1043)
- Refactor http server; support content-disposition (#1039)
- Don't print debug log after torrent is destroyed
- Be more defensive: prevent code from running after destroy
- Fix "Cannot read property 'complete' of null" (#1022)
- Include infoHash in torrent.js debug logs
- Update to browserify@14
- Emit more warnings (#1021)
- Set user-agent header for http tracker requests (#1019)
- Don't send 'completed' event to tracker on client.seed (#991)
- Set user-agent header for http tracker requests (#962)
- Don't emit 'completed' on client.seed
- Do not choke on web seeds (#972)
- Add property for downloaded bytes per file (
file.downloaded
) (#974) - Cross-origin HTTP redirect workaround for web seeds (#909)
- Creating a WebTorrent client with the
{tracker: false}
to disable communication with trackers should not affect creating a torrent with.seed()
. The resulting torrent file should still contain the normalannounce
field. (#928) - Add more peer ID entropy
- Handle invalid range handers instead of throwing (#921)
- Add option to disable BEP19 web seeds (
webSeeds
option to theWebTorrent
constructor)
- Fix exceptions in
server.close()
andserver.destroy()
- Warn when WebTorrent is installed on Node.js older than v4.0.0.
- Better docs for .renderTo()
- Replace 'hat' with 'randombytes'
- Better debug logs
- Prevent possible stack overflow
- Add options to disable autoplay/hide controls with
appendTo()
andrenderTo()
- Allow deselecting the entire torrent with
deselect()
to happen earlier
- Fix support for FileList input to client.seed()
- Skip blocklist logic when opts.blocklist is not set
- Fix WebTorrent version string
- HEAD requests to HTTP server should not send entire body
- WebTorrent, LLC is now the steward of the project
- Emit 'seed' event on the torrent object
- API: Add
file.getBlob()
method - Fix rare exception in
lib/tcp-pool.js
- Support torrent with a single 0 byte file
- Use
<
since it handlesNaN
in a predictable way, i.e.false
- Use
safe-buffer
for improved buffer safety
- Fix rare exception in
lib/file.js
- Make WebTorrent user agent string consistent across whole codebase
- Support exact source (xs) paramter of magnet URIs, for retreiving metadata
- Fix rare exception caused by race condition in
lib/peer.js
- Don't unset
{tracker: {wrtc: false}}
option toWebTorrent
constructor.
- When a duplicate torrent is added, don't emit the 'infoHash' event after 'error'. The 'error' event should be the last event.
- Remove
path-exists
dependency.
-
Move tracker options (
rtcConfig
andwrtc
) intoopts.tracker
.Before:
var client = new WebTorrent({ rtcConfig: {}, wrtc: {} })
After:
var client = new WebTorrent({ tracker: { rtcConfig: {}, wrtc: {} } })
-
Add new event:
torrent.on('noPeers', function (announceType) {})
Emitted whenever a DHT or tracker announce occurs, but no peers have been found.
announceType
is either'tracker'
or'dht'
depending on which announce occurred to trigger this event. Note that if you're attempting to discover peers from both a tracker and a DHT, you'll see this event separately for each.
- Fix exception: "peer._destroy is not a function" when calling
torrent.pause()
- Fix
torrent.swarm
from causing an infinite recursion.
- Test node v6
- Emit 'done' event after sending the
'complete'
message to the tracker.
-
client.listening
property to signal whether TCP server is listening for incoming connections. -
client.dhtPort
property reflects the actual DHT port when user doesn't specify one (this is parallel toclient.torrentPort
for the TCP torrent listening server)
-
Merged
Swarm
class intoTorrent
object. Properties ontorrent.swarm
(liketorrent.swarm.wires
) now exist ontorrent
(e.g.torrent.wires
). -
Deprecate: Do not use
torrent.swarm
anymore. Usetorrent
instead. -
torrent.addPeer
can no longer be called before theinfoHash
event has been emitted. -
Remove
torrent.on('listening')
event. Useclient.on('listening')
instead. -
Remove support from
TCPPool
for listening on multiple ports. This was not used by WebTorrent and just added complexity. There is now a singleTCPPool
instance for the whole WebTorrent client. -
Deprecate: Do not use
client.download()
anymore. Useclient.add()
instead. -
Only pass
torrent.infoHash
to the Chunk Store constructor, instead of theTorrent
instance itself, to prevent accidental memory leaks of theTorrent
object by the store. (Open an issue if you were using other properties. They can be re-added.) -
Non-fatal errors with a single torrent will be emitted at
torrent.on('error')
. You should listen to this event. Previously, all torrent errors were also emitted onclient.on('error')
and handlingtorrent.on('error')
was optional. This design is better since now it is possible to distinguish between fatal client errors (client.on('error')
) when the whole client becomes unusable versus recoverable errors where only a single torrent fails (torrent.on('error')
) but the client can continue to be used. However, if there is notorrent.on('error')
event, then the error will be forwarded toclient.on('error')
. This prevents crashing the client when the user only has a listener on the client, but it makes it impossible for them to determine a client error versus a torrent error. -
Removed
torrent.numBlockedPeers
property. Use theblockedPeer
event to track this yourself.
-
If
client.get
is passed aTorrent
instance, it now only returns it if it is present in the client. -
Errors creating a torrent with
client.seed
are now emitted on the returnedtorrent
object instead of the client (unless there is no event listeners ontorrent.on('error')
as previously discussed). The torrent object is now also destroyed automatically for the user, as was probably expected. -
Do not return existing torrent object when duplicate torrent is added. Fire an
'error'
event instead. -
Memory leaks of
Torrent
object caused by many internal subclasses of WebTorrent, includingRarityMap
,TCPPool
,WebConn
,Server
,File
. -
client.ratio
andtorrent.ratio
are now calculated asuploaded / received
instead ofuploaded / downloaded
.
We did not maintain a changelog for versions prior to v0.91.0. The initial release of WebTorrent was on Dec 4, 2013.