- Add option to disable BEP19 web seeds (
webSeedsoption to theWebTorrentconstructor)
- 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 handlesNaNin a predictable way, i.e.false
- Use
safe-bufferfor 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 toWebTorrentconstructor.
- When a duplicate torrent is added, don't emit the 'infoHash' event after 'error'. The 'error' event should be the last event.
- Remove
path-existsdependency.
-
Move tracker options (
rtcConfigandwrtc) 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.
announceTypeis 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.swarmfrom causing an infinite recursion.
- Test node v6
- Emit 'done' event after sending the
'complete'message to the tracker.
-
client.listeningproperty to signal whether TCP server is listening for incoming connections. -
client.dhtPortproperty reflects the actual DHT port when user doesn't specify one (this is parallel toclient.torrentPortfor the TCP torrent listening server)
-
Merged
Swarmclass intoTorrentobject. Properties ontorrent.swarm(liketorrent.swarm.wires) now exist ontorrent(e.g.torrent.wires). -
Deprecate: Do not use
torrent.swarmanymore. Usetorrentinstead. -
torrent.addPeercan no longer be called before theinfoHashevent has been emitted. -
Remove
torrent.on('listening')event. Useclient.on('listening')instead. -
Remove support from
TCPPoolfor listening on multiple ports. This was not used by WebTorrent and just added complexity. There is now a singleTCPPoolinstance for the whole WebTorrent client. -
Deprecate: Do not use
client.download()anymore. Useclient.add()instead. -
Only pass
torrent.infoHashto the Chunk Store constructor, instead of theTorrentinstance itself, to prevent accidental memory leaks of theTorrentobject 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.numBlockedPeersproperty. Use theblockedPeerevent to track this yourself.
-
If
client.getis passed aTorrentinstance, it now only returns it if it is present in the client. -
Errors creating a torrent with
client.seedare now emitted on the returnedtorrentobject 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
Torrentobject caused by many internal subclasses of WebTorrent, includingRarityMap,TCPPool,WebConn,Server,File. -
client.ratioandtorrent.ratioare now calculated asuploaded / receivedinstead 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.