Skip to content

chore: upgrade TypeScript target and lib from ES2022 to ES2024; bump Node.js 24→25 across all configs and docs#1269

Merged
pethers merged 5 commits intomainfrom
copilot/update-node-25-configs-and-docs
Mar 18, 2026
Merged

chore: upgrade TypeScript target and lib from ES2022 to ES2024; bump Node.js 24→25 across all configs and docs#1269
pethers merged 5 commits intomainfrom
copilot/update-node-25-configs-and-docs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 18, 2026

Modernises the TypeScript compiler configuration to ES2024 and migrates the runtime from Node.js 24 to Node.js 25 (interim step before the imminent Node.js 26 LTS release ~April 1, 2026).

TypeScript ES2024 upgrade

All three tsconfigs updated — module was already ESNext and stays unchanged:

// tsconfig.browser.json, tsconfig.scripts.json, tsconfig.typedoc.json
- "target": "ES2022",
+ "target": "ES2024",
- "lib": ["ES2022", "DOM", "DOM.Iterable"]
+ "lib": ["ES2024", "DOM", "DOM.Iterable"]

JSDoc comment in scripts/article-template/registry.ts updated to reference ES2024 target and Node ≥25.

Node.js 24 → 25

  • package.json engines.node: >=24>=25; .nvmrc created with 25
  • node-version: '25' applied to all 16 standard workflow .yml files, 12 agentic news .md sources, and 12 compiled .lock.yml files (49 occurrences)

Documentation

  • End-of-Life-Strategy.md: Node 24 moved to completed history; Node 25 documented as current interim; Node 26 section added with Current→LTS in-place strategy (no second migration at October LTS promotion), full upgrade checklist, and Mermaid Gantt extended through Node 28
  • WORKFLOWS.md / FUTURE_WORKFLOWS.md: Tech stack tables and Build & Runtime roadmap updated (25 → 26 LTS → 27 → 28 → 29)
  • README.md, TESTING.md, FUTURE_ARCHITECTURE.md, skills/ docs: version references updated

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

@github-actions github-actions bot added the size-xs Extra small change (< 10 lines) label Mar 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: size-xs

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

…entation

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions github-actions bot added documentation Documentation updates dependencies Dependency updates cia-data CIA platform data integration workflow GitHub Actions workflows data-pipeline ETL and data processing schema Data schema changes translation Translation updates ci-cd CI/CD pipeline changes deployment Deployment configuration performance Performance optimization testing Test coverage accessibility WCAG 2.1 AA compliance skill Skill configuration news News articles and content generation agentic-workflow Agentic workflow changes size-l Large change (250-1000 lines) labels Mar 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

…rade checklist

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot AI changed the title [WIP] Update configurations and documentation for Node 25 chore: upgrade Node.js 24 → 25 across all configs, workflows, and docs; prep for Node 26 LTS in ~2 weeks Mar 18, 2026
Copilot AI requested a review from pethers March 18, 2026 09:47
… tsconfigs

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions github-actions bot added the refactor Code refactoring label Mar 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot AI changed the title chore: upgrade Node.js 24 → 25 across all configs, workflows, and docs; prep for Node 26 LTS in ~2 weeks chore: upgrade TypeScript target and lib from ES2022 to ES2024; bump Node.js 24→25 across all configs and docs Mar 18, 2026
@pethers pethers marked this pull request as ready for review March 18, 2026 10:21
Copilot AI review requested due to automatic review settings March 18, 2026 10:21
@pethers pethers requested review from Copilot and removed request for Copilot March 18, 2026 10:56
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s TypeScript compilation targets to ES2024 and standardizes the runtime/tooling references from Node.js 24 to Node.js 25 across configs, CI workflows, and documentation.

Changes:

  • Bumped TypeScript target/lib in all tsconfigs from ES2022 → ES2024.
  • Raised Node.js minimum and CI runtime to 25 (package.json engines, .nvmrc, GitHub Actions workflows).
  • Updated documentation to reflect the new Node/TS baselines and the planned Node 26 adoption timeline.

Reviewed changes

Copilot reviewed 55 out of 56 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsconfig.typedoc.json Updates TypeScript target/lib to ES2024 for TypeDoc type-checking.
tsconfig.scripts.json Updates TypeScript target/lib to ES2024 for Node scripts.
tsconfig.browser.json Updates TypeScript target/lib to ES2024 for browser type-checking.
scripts/article-template/registry.ts Adjusts JSDoc references to match ES2024 + Node ≥25.
package.json Raises engines.node minimum to >=25.
WORKFLOWS.md Updates workflow/runtime documentation from Node 24 → 25.
TESTING.md Updates documented CI examples to run on Node 25.
README.md Updates runtime/prerequisite Node version references to 25.x.
FUTURE_WORKFLOWS.md Updates roadmap tables/metadata to reflect Node 25 and upcoming Node 26.
FUTURE_ARCHITECTURE.md Updates future compute environment reference to Node 25.
End-of-Life-Strategy.md Updates lifecycle strategy/roadmap text and timelines for Node 25 interim + Node 26 plan.
.nvmrc Pins local dev Node version to 25.
.github/workflows/validate-cia-data.yml Updates CI Node version to 25.
.github/workflows/update-cia-stats.yml Updates CI Node version to 25.
.github/workflows/translation-validation.yml Updates CI Node version to 25.
.github/workflows/test-news.yml Updates CI Node version(s) to 25.
.github/workflows/test-homepage.yml Updates CI Node version(s) to 25.
.github/workflows/test-dashboard.yml Updates CI Node version(s) to 25.
.github/workflows/sync-cia-schemas.yml Updates CI Node version to 25.
.github/workflows/release.yml Updates release workflow Node version(s) to 25.
.github/workflows/quality-checks.yml Updates quality checks workflow Node version(s) to 25.
.github/workflows/news-weekly-review.md Updates agentic workflow source to Node 25.
.github/workflows/news-weekly-review.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-week-ahead.md Updates agentic workflow source to Node 25.
.github/workflows/news-week-ahead.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-translate.md Updates agentic workflow source to Node 25.
.github/workflows/news-translate.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-realtime-monitor.md Updates agentic workflow source to Node 25.
.github/workflows/news-realtime-monitor.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-propositions.md Updates agentic workflow source to Node 25.
.github/workflows/news-propositions.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-motions.md Updates agentic workflow source to Node 25.
.github/workflows/news-motions.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-monthly-review.md Updates agentic workflow source to Node 25.
.github/workflows/news-monthly-review.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-month-ahead.md Updates agentic workflow source to Node 25.
.github/workflows/news-month-ahead.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-interpellations.md Updates agentic workflow source to Node 25.
.github/workflows/news-interpellations.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-evening-analysis.md Updates agentic workflow source to Node 25.
.github/workflows/news-evening-analysis.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-committee-reports.md Updates agentic workflow source to Node 25.
.github/workflows/news-committee-reports.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/news-article-generator.md Updates agentic workflow source to Node 25.
.github/workflows/news-article-generator.lock.yml Updates compiled workflow lock to Node 25.
.github/workflows/lighthouse-ci.yml Updates Lighthouse CI workflow Node version to 25.
.github/workflows/jsdoc-validation.yml Updates JSDoc validation workflow Node version/name to 25.
.github/workflows/javascript-testing.yml Updates JS testing workflow Node version(s) to 25.
.github/workflows/deploy-s3.yml Updates deploy workflow Node version to 25.
.github/workflows/data-pipeline.yml Updates data pipeline workflow Node version to 25.
.github/workflows/copilot-setup-steps.yml Updates Copilot setup workflow Node version to 25.
.github/workflows/compile-agentic-workflows.yml Updates workflow compiler Node version to 25.
.github/workflows/check-cia-schema-updates.yml Updates schema update check workflow Node version to 25.
.github/skills/gh-aw-github-actions-integration/SKILL.md Updates skill examples/matrices to Node 25.
.github/skills/ci-cd-security/SKILL.md Updates skill example to Node 25.
Comments suppressed due to low confidence (3)

End-of-Life-Strategy.md:1

  • Node.js 26 is expected to release as Current around April 2026 and only becomes LTS around October 2026. Please adjust the wording "Node.js 26 LTS release (~April 1, 2026)" to avoid implying LTS begins at the April release (the later section correctly distinguishes Current vs LTS).
    End-of-Life-Strategy.md:1
  • The replacement path labels Node.js 26 as "LTS" and "imminent" in April 2026. To keep the lifecycle table accurate, consider phrasing this as "Node.js 26 Current (~April 2026) → Node.js 26 LTS (Oct 2026) → Node.js 27 LTS" (or equivalent), since 26 will not be LTS at initial release.
    FUTURE_WORKFLOWS.md:1
  • The roadmap row for "2026 Q2" describes the April upgrade as "26 LTS", but Node.js 26 is expected to be Current in April and only promoted to LTS later in the year. Updating this row to "26 Current" (with a note about Oct LTS promotion) will keep the timeline consistent with Node’s release model.

@pethers pethers merged commit d08be7c into main Mar 18, 2026
22 checks passed
@pethers pethers deleted the copilot/update-node-25-configs-and-docs branch March 18, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility WCAG 2.1 AA compliance agentic-workflow Agentic workflow changes ci-cd CI/CD pipeline changes cia-data CIA platform data integration data-pipeline ETL and data processing dependencies Dependency updates deployment Deployment configuration documentation Documentation updates news News articles and content generation performance Performance optimization refactor Code refactoring schema Data schema changes size-l Large change (250-1000 lines) size-xs Extra small change (< 10 lines) skill Skill configuration testing Test coverage translation Translation updates workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants