diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b43fd2..b73db67f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [10.0.8](https://github.com/webtorrent/bittorrent-tracker/compare/v10.0.7...v10.0.8) (2023-06-07) + + +### Bug Fixes + +* bigInt ([#472](https://github.com/webtorrent/bittorrent-tracker/issues/472)) ([d7061f7](https://github.com/webtorrent/bittorrent-tracker/commit/d7061f73b2ebff072e064971a5960749a7335bae)) + ## [10.0.7](https://github.com/webtorrent/bittorrent-tracker/compare/v10.0.6...v10.0.7) (2023-06-05) diff --git a/lib/client/udp-tracker.js b/lib/client/udp-tracker.js index b3218bc5..3a3ad42a 100644 --- a/lib/client/udp-tracker.js +++ b/lib/client/udp-tracker.js @@ -323,7 +323,7 @@ function toUInt64 (n) { if (n > MAX_UINT || typeof n === 'string') { const buf = new Uint8Array(8) const view = new DataView(buf.buffer) - view.setBigUint64(0, n) + view.setBigUint64(0, BigInt(n)) return buf } return concat([new Uint8Array(4), common.toUInt32(n)]) diff --git a/package.json b/package.json index 9172092d..850c8890 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bittorrent-tracker", "description": "Simple, robust, BitTorrent tracker (client & server) implementation", - "version": "10.0.7", + "version": "10.0.8", "author": { "name": "WebTorrent LLC", "email": "feross@webtorrent.io", @@ -54,7 +54,7 @@ "@mapbox/node-pre-gyp": "1.0.10", "@webtorrent/semantic-release-config": "1.0.9", "magnet-uri": "7.0.5", - "semantic-release": "20.1.3", + "semantic-release": "21.0.3", "standard": "*", "tape": "5.6.3", "webtorrent-fixtures": "2.0.2",