@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 +10 -0
- package/dist/atlas/browser.cjs +743 -584
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.d.cts +203 -9
- package/dist/atlas/browser.d.ts +203 -9
- package/dist/atlas/browser.js +732 -583
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +240 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -37
- package/dist/index.d.ts +82 -37
- package/dist/index.js +232 -115
- package/dist/index.js.map +1 -1
- package/dist/symbol-families-D2Kx20HJ.d.cts +47 -0
- package/dist/symbol-families-D2Kx20HJ.d.ts +47 -0
- package/package.json +1 -1
- package/dist/s52-colors-CdVzqt2K.d.cts +0 -17
- package/dist/s52-colors-CdVzqt2K.d.ts +0 -17
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
|