pmtiles-swarm 0.35.4 → 0.35.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,27 @@
7
7
  ### 🐞 Bug fixes
8
8
  - _...Add new stuff here..._
9
9
 
10
+ ## 0.35.5
11
+ ### ✨ Features and improvements
12
+
13
+ ### 🐞 Bug fixes
14
+ - **Requires pmtiles-torrent 0.7.4, which stops archives dropping out of the engine a few more with
15
+ every restart.** Seen here as `[restore] <archive>: mismatching info-hash`, beginning with one
16
+ archive and reaching eighteen of twenty. An archive that failed this way was never handed to the
17
+ engine at all, so the console showed it at 0% with no state, a recheck answered `no such
18
+ torrent`, and its data sat complete on the disk the whole time — the preview rendered from it
19
+ perfectly well.
20
+
21
+ The sidecar was writing resume data under the wrong torrent's name: saving it was the last thing
22
+ still popping libtorrent's alert queue on its own thread while the alert pump popped on another,
23
+ and the pump's next pop freed the batch that loop was reading. `add` then refuses such a file
24
+ with "mismatching info-hash". 0.7.2 did not introduce it but made the pump pop far more often,
25
+ which is why it appeared immediately after that upgrade.
26
+
27
+ Restarting on this version is the whole recovery: an add refused over resume data is retried
28
+ without it, and the recheck finds every byte already on disk. Nothing is downloaded again,
29
+ though rechecking a large archive is not quick.
30
+
10
31
  ## 0.35.4
11
32
  ### ✨ Features and improvements
12
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmtiles-swarm",
3
- "version": "0.35.4",
3
+ "version": "0.35.5",
4
4
  "description": "BitTorrent distribution for PMTiles map archives: create torrents, watch folders, publish and subscribe to RSS feeds, and seed through qBittorrent or an embedded client",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -46,7 +46,7 @@
46
46
  "maplibre-gl": "^6.2.0",
47
47
  "parse-torrent": "^11.0.24",
48
48
  "pmtiles": "^4.4.1",
49
- "pmtiles-torrent": "^0.7.2",
49
+ "pmtiles-torrent": "^0.7.4",
50
50
  "webtorrent": "^3.0.21"
51
51
  },
52
52
  "engines": {