@kahwee/sf-map-svg 1.5.0 → 1.5.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -1
  3. package/package.json +13 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ User-visible changes are recorded here. Unreleased entries describe changes on `
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 1.5.2 — 2026-09-26
8
+
9
+ - Run every Storybook story as a Chromium/Vitest browser check and publish an LCOV and JSON coverage artifact for the renderer, with baseline regression thresholds.
10
+ - Require the browser and coverage check before npm publishing or Pages deployment.
11
+
12
+ ## 1.5.1 — 2026-09-26
13
+
14
+ - Run focused Storybook 10 browser interactions and accessibility checks in CI and before npm publishing, covering overlapping markers, route overlays, and keyboard selection.
15
+ - Validate certified proposition district sums against city totals in the data test suite.
16
+ - Keep Biome and the development dependency set current after an audit and outdated-package review.
17
+
7
18
  ## 1.5.0 — 2026-09-26
8
19
 
9
20
  - Add `controls.neighborhoodPicker`, `controls.markerPicker`, `controls.help`, and `controls.status` so compact embeds can drop redundant chrome. Hidden help remains the map's accessible description; a hidden status line remains a polite live region; source attribution stays visible.
package/README.md CHANGED
@@ -382,10 +382,12 @@ pnpm install --frozen-lockfile
382
382
  pnpm check # formatting, data catalog, types, and tests
383
383
  pnpm demo # generated SVGs and example pages
384
384
  pnpm build-storybook # static component documentation
385
+ pnpm test:stories # Storybook 10 browser checks in Chromium
386
+ pnpm test:stories:coverage # Chromium checks plus renderer coverage report
385
387
  pnpm test:package # install and check the packed package
386
388
  ```
387
389
 
388
- Use `pnpm format` to apply Biome formatting and safe lint fixes. Run `pnpm storybook` for interactive component examples at http://127.0.0.1:6006. CI runs checks on Node 22, 24, and 26. See [CONTRIBUTING.md](CONTRIBUTING.md) for source structure and release instructions.
390
+ Use `pnpm format` to apply Biome formatting and safe lint fixes. Install Chromium once with `pnpm exec playwright install chromium` before local Storybook tests. Run `pnpm storybook` for interactive component examples at http://127.0.0.1:6006. The coverage command writes `coverage/storybook/coverage-summary.json` and `lcov.info` for `src/` TypeScript only. CI runs package checks on Node 22, 24, and 26 plus Chromium Storybook checks on Node 24, and uploads the coverage report. See [CONTRIBUTING.md](CONTRIBUTING.md) for source structure and release instructions.
389
391
 
390
392
  ### Browser verification
391
393
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kahwee/sf-map-svg",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
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/index.js",
@@ -118,13 +118,21 @@
118
118
  },
119
119
  "devDependencies": {
120
120
  "@biomejs/biome": "2.5.14",
121
+ "@storybook/addon-a11y": "10.6.0",
121
122
  "@storybook/addon-docs": "^10.6.0",
123
+ "@storybook/addon-vitest": "10.6.0",
122
124
  "@storybook/html-vite": "^10.6.0",
125
+ "@vitest/browser-playwright": "^4.1.11",
126
+ "@vitest/coverage-v8": "4.1.11",
123
127
  "@xmldom/xmldom": "^0.9.12",
128
+ "playwright": "^1.63.0",
124
129
  "polygon-clipping": "^0.15.7",
130
+ "react": "^19.3.0",
131
+ "react-dom": "^19.3.0",
125
132
  "storybook": "^10.6.0",
126
133
  "typescript": "^7.0.2",
127
- "vite": "^8.3.1"
134
+ "vite": "^8.3.1",
135
+ "vitest": "^4.1.11"
128
136
  },
129
137
  "homepage": "https://kahwee.github.io/sf-map-svg/",
130
138
  "bugs": {
@@ -143,6 +151,8 @@
143
151
  },
144
152
  "scripts": {
145
153
  "test": "pnpm build && node --test",
154
+ "test:stories": "pnpm build && vitest run --project=storybook",
155
+ "test:stories:coverage": "pnpm build && vitest run --project=storybook --coverage",
146
156
  "demo": "pnpm build && node examples/build.mjs",
147
157
  "format": "biome check --write .",
148
158
  "format:check": "biome format .",
@@ -158,6 +168,7 @@
158
168
  "test:package": "node scripts/smoke-package.mjs",
159
169
  "build": "node scripts/build.mjs",
160
170
  "lint": "biome check .",
171
+ "audit": "pnpm audit --audit-level high",
161
172
  "build:pages": "pnpm build && node scripts/build-pages.mjs"
162
173
  }
163
174
  }