@unmap/sdk 0.19.0 → 0.21.0

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/README.md +4 -4
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -74,15 +74,15 @@ A `File` goes as multipart, a plain object as GeoJSON, raw bytes as PMTiles.
74
74
  The same SDK loads from a script tag, with MapLibre already inside it:
75
75
 
76
76
  ```html
77
- <link rel="stylesheet" href="https://cdn.unmap.dev/sdk/0.19.0/unmap.css">
77
+ <link rel="stylesheet" href="https://cdn.unmap.dev/sdk/0.21.0/unmap.css">
78
78
  <div id="map" style="height: 400px"></div>
79
- <script src="https://cdn.unmap.dev/sdk/0.19.0/unmap.js"></script>
79
+ <script src="https://cdn.unmap.dev/sdk/0.21.0/unmap.js"></script>
80
80
  <script>
81
81
  unmap.createMap({ key: 'um_live_...', container: '#map', center: [-114.07, 51.05] })
82
82
  </script>
83
83
  ```
84
84
 
85
- Everything above is on the `unmap` global: `unmap.Unmap`, `unmap.Geocoder`, `unmap.Router`, `unmap.maplibregl`. Pin the exact version in production; `/sdk/0.19/` follows patches and `/sdk/latest/` follows everything.
85
+ Everything above is on the `unmap` global: `unmap.Unmap`, `unmap.Geocoder`, `unmap.Router`, `unmap.maplibregl`. Pin the exact version in production; `/sdk/0.21/` follows patches and `/sdk/latest/` follows everything.
86
86
 
87
87
  ## Options
88
88
 
@@ -116,7 +116,7 @@ resolves.
116
116
 
117
117
  MapLibre 6 parses tiles in a module worker and locates it through `import.meta.url`, which does not
118
118
  reliably resolve inside a bundler's module graph. Bundler users make a one-time `setWorkerUrl()`
119
- call after copying `maplibre-gl-worker.mjs` and `maplibre-gl-shared.mjs` into their own `public/`.
119
+ call after copying `maplibre-gl-worker.mjs` into their own `public/`.
120
120
  Skip it and the map never finishes loading, with no error thrown and no failed request — see
121
121
  [@unmap/maps](https://www.npmjs.com/package/@unmap/maps#web-worker) for the script and the call, or
122
122
  [the quickstart](https://unmap.dev/docs/start/quickstart#if-the-map-never-finishes-loading).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unmap/sdk",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "One key, the whole unmap platform: map + geocoder + router",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -15,11 +15,11 @@
15
15
  "homepage": "https://unmap.dev/docs/start/quickstart",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+https://github.com/unmap-dev/unmap.git",
18
+ "url": "git+https://github.com/unmap-dev/sdk-js.git",
19
19
  "directory": "packages/sdk"
20
20
  },
21
21
  "bugs": {
22
- "url": "https://github.com/unmap-dev/unmap/issues"
22
+ "url": "https://github.com/unmap-dev/sdk-js/issues"
23
23
  },
24
24
  "type": "module",
25
25
  "main": "./dist/index.js",
@@ -39,12 +39,12 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "maplibre-gl": "^6.7.0",
43
- "@unmap/core": "0.19.0",
44
- "@unmap/elevation": "0.19.0",
45
- "@unmap/geocoding": "0.19.0",
46
- "@unmap/maps": "0.19.0",
47
- "@unmap/routing": "0.19.0"
42
+ "maplibre-gl": "^6.9.0",
43
+ "@unmap/core": "0.21.0",
44
+ "@unmap/elevation": "0.21.0",
45
+ "@unmap/geocoding": "0.21.0",
46
+ "@unmap/maps": "0.21.0",
47
+ "@unmap/routing": "0.21.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "tsup": "^8.3.0",