pmtiles-swarm 0.55.1 → 0.55.2

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@
7
7
  ### 🐞 Bug fixes
8
8
  - _...Add new stuff here..._
9
9
 
10
+ ## 0.55.2
11
+ ### 🐞 Bug fixes
12
+ - **The stale-summary re-read never ran for a category URL.** 0.55.1 added it to
13
+ `/archives/<infohash>/tiles.json` and nowhere else, which missed exactly the archives that matter:
14
+ `/latest/<category>/tiles.json` is the URL a style points at, so a category consumed through the
15
+ documented path was the one place a summary stayed stale for ever. An archive only healed if
16
+ somebody happened to ask for it by infohash.
17
+
10
18
  ## 0.55.1
11
19
  ### 🐞 Bug fixes
12
20
  - **0.55.0 reached new archives only.** `encoding` sits in the metadata of archives some nodes have
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmtiles-swarm",
3
- "version": "0.55.1",
3
+ "version": "0.55.2",
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",
package/src/api.js CHANGED
@@ -2274,6 +2274,12 @@ export function createApp({
2274
2274
  });
2275
2275
  }
2276
2276
 
2277
+ // The same background re-read the per-archive route does. Left out
2278
+ // here, it missed exactly the archives that matter most: /latest/ is the
2279
+ // URL a style points at, so a category anyone actually consumes through
2280
+ // the documented path was the one place a stale summary never healed.
2281
+ startMetadataBackfill(entry);
2282
+
2277
2283
  res.setHeader('access-control-allow-origin', '*');
2278
2284
  // Short-lived, and the only mutable document in the system: everything
2279
2285
  // it points at is content-addressed and cached for a year, and this is