@kahwee/sf-map-svg 3.1.0 → 4.0.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.
- package/CHANGELOG.md +6 -1
- package/README.md +3 -1
- package/dist/data/README.md +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ User-visible changes are recorded here. Unreleased entries describe changes on `
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 4.0.0 — 2026-09-28
|
|
8
|
+
|
|
9
|
+
- Breaking: require Node 24 or newer for server rendering and development. Validate the minimum supported major alongside Node 26 in CI; browser runtime requirements are unchanged.
|
|
10
|
+
- No map API, geographic data, rendering, or animation changes. Existing v3 integrations only need a supported Node runtime to upgrade.
|
|
11
|
+
|
|
7
12
|
## 3.1.0 — 2026-09-28
|
|
8
13
|
|
|
9
14
|
- Add `createGuideController` and `mountGuideController` with the grouped options, camera, subscriptions, and lifecycle of `createMap`; preserve existing element-based guide factories.
|
|
@@ -236,7 +241,7 @@ consistent home, and makes animation and subscription ownership predictable.
|
|
|
236
241
|
- Add overlay color options, TypeScript declarations, source records, and SVG checks.
|
|
237
242
|
- Add Storybook 10.6 with eight interactive examples and API controls.
|
|
238
243
|
- Add usage examples, contributor instructions, and AGENTS.md.
|
|
239
|
-
- Update GitHub Actions and validate Storybook and package builds
|
|
244
|
+
- Update GitHub Actions and validate Storybook and package builds across supported Node versions.
|
|
240
245
|
- Configure weekly Dependabot updates for development dependencies and Actions.
|
|
241
246
|
- Keep existing layer defaults unchanged, runtime dependencies at zero, and distribution private.
|
|
242
247
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,9 @@ Offline, self-contained San Francisco SVG maps. The package has no runtime depen
|
|
|
10
10
|
pnpm add @kahwee/sf-map-svg
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Node
|
|
13
|
+
Node 24+ is required for server rendering. Browser maps need a DOM and a bundler that supports JSON imports.
|
|
14
|
+
|
|
15
|
+
Upgrading from v3 to v4: update your Node runtime to 24 or newer. The map API, browser requirements, rendering, and animations are unchanged.
|
|
14
16
|
|
|
15
17
|
## Static SVG
|
|
16
18
|
|
package/dist/data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ const mission = neighborhoods.features.find((f) => f.id === 'inner-mission');
|
|
|
37
37
|
console.log(mission.properties.canonicalName, mission.geometry);
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Node
|
|
40
|
+
Node 24+ supports this syntax. Bundlers may also support JSON imports without the import attribute. Files are included in the package archive; non-JavaScript consumers can parse the same JSON files directly. These are package entry points, not a hosted API. The public repository and GitHub Pages explorer also provide access to the source data. Consumers who need only one dataset can import its JSON subpath or a typed, frozen leaf module.
|
|
41
41
|
|
|
42
42
|
## Import only the data you need
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kahwee/sf-map-svg",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Offline SVG maps of San Francisco with district boundaries, parks, landmarks, and BART stations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/src/api.js",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
},
|
|
129
129
|
"license": "MIT",
|
|
130
130
|
"engines": {
|
|
131
|
-
"node": ">=
|
|
131
|
+
"node": ">=24.0.0"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
134
|
"@biomejs/biome": "2.5.14",
|