Files
shared/package.json
T
Bastian de Byl 65889b6487 SEV-362: format v0.2.0 — boundary spacing, acronyms, formatRange, numeric budget
- formatLabel: letter→digit boundary spacing ("level2" → "Level 2"),
  acronym casing (DCFC/EV/SUV/VIN/DC/A\C), bare numeric ranges pass
  through untouched
- new formatRange: "150-200" → "150–200 mi", "200-plus"/"200+" →
  "200+ mi"; empty → '' (callers render their own placeholder)
- formatBudget is now the numeric (min, max) dollar formatter matching
  the API payload; the wizard's slug map moves to formatBudgetBucket
- new vehicleName({year, make, model, commissioned})

Breaking rename of formatBudget is safe: no frontend consumes 0.1.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 21:08:03 -04:00

33 lines
738 B
JSON

{
"name": "@switchev/web-shared",
"version": "0.2.0",
"description": "Shared browser helpers (formatters, markdown, image polling) for the SwitchEV frontends",
"type": "module",
"exports": {
".": "./src/index.js",
"./format": "./src/format.js",
"./markdown": "./src/markdown.js",
"./wait-image": "./src/wait-image.js"
},
"files": [
"src"
],
"sideEffects": [
"./src/markdown.js"
],
"peerDependencies": {
"dompurify": ">=3",
"marked": ">=12"
},
"scripts": {
"test": "node --test"
},
"publishConfig": {
"registry": "https://git.debyl.io/api/packages/SwitchEV/npm/"
},
"repository": {
"type": "git",
"url": "git+https://git.debyl.io/SwitchEV/shared.git"
}
}