chiitiler 1.24.1 → 1.24.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/README.md CHANGED
@@ -167,6 +167,11 @@ Prewarm is enabled by default: one tile is rendered at startup **before** the se
167
167
 
168
168
  ### Cache
169
169
 
170
+ Renderer Maps are reused per style and rendering mode without an idle timeout.
171
+ They are released when their pool is evicted from the 10-entry LRU or explicitly
172
+ closed. This avoids repeated initialization after quiet periods, at the cost of
173
+ retaining native renderer memory between requests.
174
+
170
175
  | Flag | Env | Default |
171
176
  | --- | --- | --- |
172
177
  | `--cache <none\|memory\|file\|s3\|gcs>` | `CHIITILER_CACHE_METHOD` | `none` |
@@ -50,6 +50,10 @@ async function getRenderPool(style, cache, mode) {
50
50
  destroy: (map) => {
51
51
  map.release();
52
52
  },
53
+ }, {
54
+ // Keep initialized Maps until their pool is evicted or closed. Disable
55
+ // idle housekeeping rather than running a timer in warm Lambda environments.
56
+ houseKeepInterval: 0,
53
57
  });
54
58
  mapPoolCache.set(cacheKey, newPool);
55
59
  return newPool;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chiitiler",
4
- "version": "1.24.1",
4
+ "version": "1.24.2",
5
5
  "description": "Tiny map rendering server for MapLibre Style Spec",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",