@chrtco/sdk 0.10.41 → 0.10.43

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
@@ -14,6 +14,16 @@ All notable changes to `@chrtco/sdk` will be documented in this file.
14
14
  source themselves, such as the tile-worker's TileJSON.
15
15
 
16
16
  ### Fixed
17
+ - **`offline.download()` left a second copy of every pack in a browser's HTTP
18
+ cache.** In a browser, an Electron renderer or Electron `net.fetch`, the
19
+ bundle GET was stored in the profile's disk cache as well as written through
20
+ the `fs` adapter, so each pack cost about twice its size on disk and pushed
21
+ tiles out of the cache. The signed URL is never fetched twice, so that copy
22
+ was never read. The bundle GET, including a ranged resume, now passes
23
+ `cache: "no-store"`. Node, Bun and Deno have no HTTP cache and behave as
24
+ before. On a runtime that rejects the field, such as Cloudflare Workers
25
+ before compatibility date 2024-11-11, it is left off. The API calls around
26
+ the download are unchanged.
17
27
  - **The `CHRT_LAND` and `CHRT_RELIEF` sources carried no attribution.**
18
28
  `generateStyle({ land: true })` emitted a `CHRT_LAND` source with no
19
29
  `attribution`, so a map using MapLibre's attribution control showed no