pmtiles-swarm 0.24.0 → 0.24.1

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 +19 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@
7
7
  ### 🐞 Bug fixes
8
8
  - _...Add new stuff here..._
9
9
 
10
+ ## 0.24.1
11
+ ### 🐞 Bug fixes
12
+ - **Takes pmtiles-torrent 0.4.5, which stops a torrent that is not ready yet reporting a corrupt
13
+ one.** Reading a piece from an archive whose metadata had not arrived — or that was still checking
14
+ what is on disk, which is how a resync starts — came back as `invalid piece index in slot list`.
15
+ The piece count is zero until metadata lands, so every index is out of range including the valid
16
+ ones, and what is really "ask again in a moment" arrived under a name that reads as a damaged
17
+ archive. Head warming took that at its word and applied its full doubling backoff, so an archive
18
+ sat unservable for minutes on a node that was downloading it at 60 MiB/s throughout.
19
+
20
+ The floor is raised rather than the range widened, because `^0.4.2` already permitted 0.4.5 and
21
+ the lockfile is what a deployment installs from: `npm ci` would have kept fetching 0.4.2 and none
22
+ of this would have reached a node.
23
+
24
+ Worth knowing how much rides on that single read. The PMTiles v3 specification requires the root
25
+ directory to lie within the first 16,384 bytes, so a 16 KiB read at offset 0 fetches the header
26
+ and the root directory together — one piece, after which the archive is servable. A mirror is
27
+ unservable until exactly that read succeeds.
28
+
10
29
  ## 0.24.0
11
30
  ### ✨ Features and improvements
12
31
  - **A mirror now inherits the archive summary from the feed it follows.** `renderItem` has always
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmtiles-swarm",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
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.4.2",
49
+ "pmtiles-torrent": "^0.4.5",
50
50
  "webtorrent": "^3.0.21"
51
51
  },
52
52
  "engines": {