[webtorrent] Update to v3 - #75356
Conversation
|
@trim21 Thank you for submitting this PR! This is a live comment that I will keep updated. 1 package in this PR
Code ReviewsBecause this PR edits the configuration file, it can be merged once it's reviewed by a DT maintainer. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis PR has been inactive for 8 days. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 75356,
"author": "trim21",
"headCommitOid": "fc782ac2e032c2a3562c9db05e4aa1a1451a4120",
"mergeBaseOid": "72eec8e92e22f05da10dca6e23d9bc1ca2a56caf",
"lastPushDate": "2026-08-06T14:08:55.000Z",
"lastActivityDate": "2026-08-06T14:12:04.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"tooManyCommits": false,
"tooManyReviews": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "webtorrent",
"kind": "edit",
"files": [
{
"path": "types/webtorrent/index.d.ts",
"kind": "definition"
},
{
"path": "types/webtorrent/package.json",
"kind": "package-meta-ok"
},
{
"path": "types/webtorrent/tsconfig.json",
"kind": "package-meta",
"suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson) and not moving towards it (check: `compilerOptions.lib.1`)"
},
{
"path": "types/webtorrent/webtorrent-tests.ts",
"kind": "test"
}
],
"owners": [
"niieani",
"tlaziuk",
"gjuchault",
"cheeseandcereal"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [],
"mainBotCommentID": 5205831173,
"ciResult": "pass"
} |
|
🔔 @niieani @tlaziuk @gjuchault @cheeseandcereal — please review this PR in the next few days. Be sure to explicitly select |
|
@trim21 The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds that are failing do not end up on the list of PRs for the DT maintainers to review. |
Please fill in this template.
pnpm test <package to test>.Select one of these and delete the others:
If changing an existing definition:
package.json.This PR updates
@types/webtorrentto v3 (webtorrent 3.0.21), continuing the series of PRs that upgraded magnet-uri to v7 (#75277) and parse-torrent to v11 (#75278).Major changes:
export =to ESM default export (export default class WebTorrent), with"type": "module"andexportsinpackage.json.@types/parse-torrent^11(was^5).BufferwithUint8Arrayto match the v3 source.TorrentFilerewritten to match the W3C-likeFileimplementation in v3: removedappendTo/renderTo/getBuffer/getBlob/getBlobURL, addedarrayBuffer/blob/stream/streamTo/includes/async iterator,select(priority).Torrent: removedload()andcreateServer(), addedcritical(),rescanFiles(),getFileModtimes(),addPeer()now takes an optionalsource,deselect()now takes two args;noPeersevent now also reportslsd/ut_pex.client.createServer()returnsNodeServer/BrowserServerwithlisten()support;torrent.createServer()no longer exists.utPex,natUpnp,natPmp,secure,torrentPort,dhtPort,userAgent,seedOutgoingConnections) and static members (UTP_SUPPORT,VERSION).