chore: update Node.js from 25 to 26 across all files#2268
Conversation
…trixie Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/587adeb6-6669-4773-9e10-43e210b1b7bd Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: size-xs Label Categories
For more information, see |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/1476bf6a-cd6f-409c-86dc-0c621780ce74 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
|
@copilot apply changes based on the comments in this thread and fix root cause of TypeScript & JavaScript Testing / Node.js 27 Nightly Compat (pull_request) |
…rate lock files to Node 26; fix docs Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/5db7266a-83ac-4555-aaea-a78c3c8b4213 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Fixed in 191011e: Root cause of nightly CI failure: Node 27 nightly builds don't exist yet — the nodejs.org nightly index currently only has up to v26. The job was failing with Fix: The Lock files: All 14 Documentation fixes:
|
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| runtimes: | ||
| node: | ||
| version: "25" | ||
| version: "26" |
| }, | ||
| "engines": { | ||
| "node": ">=25" | ||
| "node": ">=26" |
|
|
||
| - name: Install dependencies | ||
| if: steps.nightly.outputs.version != '' | ||
| run: npm ci --ignore-engines |
| { | ||
| "name": "HTML Dev Container", | ||
| "image": "mcr.microsoft.com/devcontainers/javascript-node:24-trixie", | ||
| "image": "mcr.microsoft.com/devcontainers/javascript-node:26-trixie", |
|
@copilot apply changes based on the comments in this thread make sure node 26 is used everywhere correctly |
…te package-lock.json Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/b6d6b438-17ab-430c-bc93-4840185cbc5e Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Fixed in cbcfc81:
|
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
| - **Transparency**: Public demonstration of security automation and quality gates | ||
|
|
||
| The project has been migrated from JavaScript to **TypeScript** (31 modules in `src/browser/`) with all workflows updated accordingly. TypeScript compilation is handled by Vite (esbuild) for browser bundles and Node 25's native type-stripping for scripts. | ||
| The project has been migrated from JavaScript to **TypeScript** (31 modules in `src/browser/`) with all workflows updated accordingly. TypeScript compilation is handled by Vite (esbuild) for browser bundles and Node 26's native type-stripping for scripts. |
| %%{init: {"theme":"dark","themeVariables":{"primaryColor":"#1565C0","primaryTextColor":"#ffffff","primaryBorderColor":"#0A3F7F","lineColor":"#90CAF9","secondaryColor":"#2E7D32","secondaryTextColor":"#ffffff","tertiaryColor":"#FF9800","tertiaryTextColor":"#000000","mainBkg":"#1565C0","secondBkg":"#2E7D32","tertiaryBkg":"#FF9800","noteBkgColor":"#FFC107","noteTextColor":"#000000","errorBkgColor":"#D32F2F","fontFamily":"Inter, Helvetica, Arial, sans-serif"}}}%% | ||
| flowchart TB | ||
| A["Trigger<br/>news-*.md schedule or workflow_dispatch"] --> B["🧰 Runtime setup<br/>Node 25 · npm ci · MCP pre-warm"] | ||
| A["Trigger<br/>news-*.md schedule or workflow_dispatch"] --> B["🧰 Runtime setup<br/>Node 26 · npm ci · MCP pre-warm"] |
| VERSION=$(curl -sfL 'https://nodejs.org/download/nightly/index.json' | \ | ||
| python3 -c "import json,sys; data=json.load(sys.stdin); print(data[0]['version'].lstrip('v'))" 2>/dev/null || echo '') | ||
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | ||
| echo "Latest nightly: ${VERSION:-not available}" |
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '25' | ||
| node-version: '26' |
| **Project**: Riksdagsmonitor — Swedish Parliament (Riksdag) monitoring platform | ||
| **Stack**: HTML5, CSS3, TypeScript 6.0.3, Vite 8.0.10, Vitest 4.1.5, Cypress 15.14.1 | ||
| **Runtime**: Node.js 25, ES2025 target, ESNext modules | ||
| **Runtime**: Node.js 26, ES2025 target, ESNext modules |
| description: | | ||
| Shared setup for every `.github/workflows/news-*.md` agentic workflow: | ||
| 1. Set up Node.js 25 (matches `runtimes.node.version` in every workflow). | ||
| 1. Set up Node.js 26 (matches `runtimes.node.version` in every workflow). |
|
@copilot apply changes based on the comments in this thread |
… action Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/2023aac3-8e86-4276-b8ca-235b373409a5 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/2023aac3-8e86-4276-b8ca-235b373409a5 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Applied in a41c8dc and 9b960ff:
|
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
package.json,.nvmrc,.devcontainer, CI workflows, documentation,.github/config filesnews-*.lock.ymlfiles viagh aw compileEnd-of-Life-Strategy.mdandFUTURE_WORKFLOWS.mdinconsistenciesnews-prewarm/action.ymldefaultnode-version: '25'→'26'package-lock.json(root engines now>=26)javascript-testing.yml: remove invalid--ignore-enginesflag fromnpm ciWORKFLOWS.md: technology stack table row updatedNode.js | 25→Node.js | 26Article-Generation.md: "Current configuration" table updatedNode.js 25→Node.js 26.github/skills/gh-aw-github-actions-integration/SKILL.md: multi-platform matrix example updated['25']→['26']news-prewarm/action.yml: description updated "11 news workflow files" → "14 news workflow files"javascript-testing.yml: nightly resolver now captures curl and Python stderr separately and emits specific::warning::annotations distinguishing network failures from schema changes