riksdagsmonitor 1.0.31 → 1.0.33

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 -3
  2. package/package.json +22 -21
package/README.md CHANGED
@@ -318,9 +318,10 @@ Riksdagsmonitor uses a **provider-tiered** data architecture, with each provider
318
318
  ### Stack
319
319
 
320
320
  - **Frontend** — Static HTML5 / CSS3 with TypeScript-built Chart.js / D3.js dashboards (no SPA framework, mobile-first, cyberpunk theme)
321
- - **Build** — Vite 8 (ES modules, code splitting, SRI via `vite-plugin-sri-gen`)
322
- - **Visualisation** — Chart.js 4 + D3.js 7, hosted locally on CloudFront
323
- - **Testing** — Vitest 4 (2,890 unit tests, 100 % pass rate, 70 % line coverage) + Cypress 15 (E2E)
321
+ - **Language** — TypeScript 6.0.2 compatibility package (`typescript`) plus TypeScript 7.0.1-rc (`typescript-7`) running side-by-side while the migration is underway
322
+ - **Build** — Vite 8.1.3 (ES modules, code splitting, SRI via `vite-plugin-sri-gen`)
323
+ - **Visualisation** — Chart.js 4.5.1 + D3.js 7.9.0, hosted locally on CloudFront
324
+ - **Testing** — Vitest 4.1.10 (2,890 unit tests, 100 % pass rate, 70 % line coverage) + Cypress 15.18.1 (E2E)
324
325
  - **Hosting** — AWS CloudFront + S3 dual-region (us-east-1 primary, eu-west-1 replica) via OIDC; GitHub Pages as DR fallback
325
326
  - **CI/CD** — 50 GitHub Actions workflow files (22 standard `.yml` + 14 agentic `.md` sources + 14 compiled `.lock.yml`); SHA-pinned, `step-security/harden-runner` everywhere
326
327
  - **Data Platform** — Citizen Intelligence Agency (CIA) Java/Spring Boot backend + 15 CIA subsystems
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "riksdagsmonitor",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "type": "module",
5
5
  "description": "Swedish Parliament (Riksdag) intelligence platform — TypeScript utilities for political data visualization, dashboards, and open data analysis with Chart.js and D3.js",
6
6
  "main": "dist/lib/shared/index.js",
@@ -55,7 +55,7 @@
55
55
  "build:csv-contracts-fixture": "npx tsx scripts/build-csv-contracts-fixture.ts",
56
56
  "prebuild": "npx tsx scripts/optimize-images.ts && npx tsx scripts/generate-article-types-doc.ts && npx tsx scripts/copy-vendor-mermaid.ts --quiet && npx tsx scripts/build-csv-contracts-fixture.ts && npx tsx scripts/aggregate-analysis.ts --all --quiet && npx tsx scripts/render-articles.ts --all --lang all --quiet && npx tsx scripts/generate-news-indexes/index.ts && npx tsx scripts/extract-news-metadata.ts && npx tsx scripts/generate-sitemap-html.ts && npx tsx scripts/generate-political-intelligence.ts && npx tsx scripts/generate-rss.ts && npx tsx scripts/generate-sitemap.ts && npx tsx scripts/normalize-static-html-chrome.ts && npx tsx scripts/backfill-translated-chrome.ts && npx tsx scripts/strip-legacy-chrome-script-tags.ts && npx tsx scripts/fix-hreflang.ts --write",
57
57
  "build": "vite build",
58
- "build:lib": "tsc -p tsconfig.lib.json && tsc -p tsconfig.npm-scripts.json",
58
+ "build:lib": "node ./node_modules/typescript/bin/tsc -p tsconfig.lib.json && node ./node_modules/typescript/bin/tsc -p tsconfig.npm-scripts.json",
59
59
  "postbuild": "cp rss.xml dist/rss.xml && (cp rss_*.xml dist/ 2>/dev/null; exit 0) && cp sitemap.xml dist/sitemap.xml && cp -r cia-data dist/cia-data && cp manifest.json dist/manifest.json",
60
60
  "preview": "vite preview",
61
61
  "test": "NODE_OPTIONS='--max-old-space-size=2048' vitest run",
@@ -154,10 +154,10 @@
154
154
  "url": "https://github.com/sponsors/Hack23"
155
155
  },
156
156
  "peerDependencies": {
157
- "chart.js": "^4.0.0",
158
- "chartjs-plugin-annotation": "^3.0.0",
159
- "d3": "^7.0.0",
160
- "papaparse": "^5.0.0"
157
+ "chart.js": "4.5.1",
158
+ "chartjs-plugin-annotation": "3.1.0",
159
+ "d3": "7.9.0",
160
+ "papaparse": "5.5.4"
161
161
  },
162
162
  "peerDependenciesMeta": {
163
163
  "chart.js": {
@@ -176,8 +176,8 @@
176
176
  "devDependencies": {
177
177
  "@eslint/js": "10.0.1",
178
178
  "@types/d3": "7.4.3",
179
- "@types/hast": "3.0.4",
180
- "@types/node": "26.1.0",
179
+ "@types/hast": "3.0.5",
180
+ "@types/node": "26.1.1",
181
181
  "@types/papaparse": "5.5.2",
182
182
  "@vitest/coverage-v8": "4.1.10",
183
183
  "@vitest/ui": "4.1.10",
@@ -187,9 +187,9 @@
187
187
  "chartjs-plugin-annotation": "3.1.0",
188
188
  "d3": "7.9.0",
189
189
  "eslint": "10.6.0",
190
- "github-slugger": "^2.0.0",
190
+ "github-slugger": "2.0.0",
191
191
  "globals": "17.7.0",
192
- "gray-matter": "^4.0.3",
192
+ "gray-matter": "4.0.3",
193
193
  "happy-dom": "20.10.6",
194
194
  "hast-util-to-string": "3.0.1",
195
195
  "htmlhint": "1.9.2",
@@ -200,23 +200,24 @@
200
200
  "mermaid": "11.16.0",
201
201
  "minify": "15.3.1",
202
202
  "papaparse": "5.5.4",
203
- "rehype-autolink-headings": "^7.1.0",
204
- "rehype-raw": "^7.0.0",
205
- "rehype-sanitize": "^6.0.0",
206
- "rehype-stringify": "^10.0.1",
207
- "remark-gfm": "^4.0.1",
208
- "remark-parse": "^11.0.0",
209
- "remark-rehype": "^11.1.2",
210
- "sharp": "^0.35.3",
203
+ "rehype-autolink-headings": "7.1.0",
204
+ "rehype-raw": "7.0.0",
205
+ "rehype-sanitize": "6.0.0",
206
+ "rehype-stringify": "10.0.1",
207
+ "remark-gfm": "4.0.1",
208
+ "remark-parse": "11.0.0",
209
+ "remark-rehype": "11.1.2",
210
+ "sharp": "0.35.3",
211
211
  "start-server-and-test": "3.0.11",
212
212
  "tsx": "4.23.0",
213
213
  "typedoc": "0.28.20",
214
214
  "typedoc-plugin-mdn-links": "5.1.1",
215
- "typescript": "6.0.3",
215
+ "typescript": "npm:@typescript/typescript6@6.0.3",
216
+ "typescript-7": "npm:typescript@7.0.1-rc",
216
217
  "typescript-eslint": "8.63.0",
217
- "unified": "^11.0.5",
218
+ "unified": "11.0.5",
218
219
  "unist-util-visit": "5.1.0",
219
- "vite": "8.1.3",
220
+ "vite": "8.1.4",
220
221
  "vitest": "4.1.10",
221
222
  "worldbank-mcp": "1.0.1"
222
223
  },