Skip to content

CI: move to Node 24 and refresh dependencies - #428

Merged
tuhaihe merged 1 commit into
apache:mainfrom
tuhaihe:cc/component-version-upgrade-fb2b7e
Nov 20, 2026
Merged

tuhaihe merged 1 commit into
apache:mainfrom
tuhaihe:cc/component-version-upgrade-fb2b7e

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Nov 19, 2026

Copy link
Copy Markdown
Member

The publish workflow ran on Node 20, which GitHub Actions has deprecated, and npm install warned that mermaid 12 (pulled in by @docusaurus/theme-mermaid) requires Node >= 22.12.

  • Bump actions/checkout and actions/setup-node from v4 to v7, which run on Node 24 natively.
  • Build with Node 24 and raise engines.node to >=22.12 to match mermaid's requirement.
  • Treat TeamTable and CoreContributors as opaque in markdown-export, silencing the leaked-markup warning on /team/.
  • Apply npm audit fix (non-breaking): mermaid 12.0 -> 12.3 plus patch updates to body-parser, qs, dompurify, postcss and others, taking the audit from 51 to 26 findings. The rest only have a "fix" that downgrades Docusaurus to 3.7.0, so they are left alone.

closes: #ISSUE_Number


Change logs

Describe your change clearly, including what problem is being solved or what document is being added or updated.

Contributor's checklist

Here are some reminders before you submit your pull request:

@tuhaihe
tuhaihe requested a review from TomShawn November 19, 2026 09:31
The publish workflow ran on Node 20, which GitHub Actions has
deprecated, and `npm install` warned that mermaid 12 (pulled in by
@docusaurus/theme-mermaid) requires Node >= 22.12.

- Bump actions/checkout and actions/setup-node from v4 to v7, which
  run on Node 24 natively.
- Build with Node 24 and raise `engines.node` to >=22.12 to match
  mermaid's requirement.
- Treat TeamTable and CoreContributors as opaque in markdown-export,
  silencing the leaked-markup warning on /team/.
- Apply `npm audit fix` (non-breaking): mermaid 12.0 -> 12.3 plus
  patch updates to body-parser, dompurify, postcss and others.
- Scope the path-to-regexp override to react-router. Applied globally
  it forced express (wants ~0.1.12) and serve-handler (wants 3.3.0,
  already patched) onto the 1.x API.
- Raise the serialize-javascript override to 7.1.4 (GHSA-m5mm-p8h7-m29v)
  and update express to 4.22.3, which pulls in a fixed qs 6.16.2.
- Update ahooks, dayjs, sass and docusaurus-plugin-sass within their
  declared ranges.

npm audit goes from 51 to 20 findings. The rest sit under
@docusaurus/core 3.10.2 (the latest release; tinypool, sockjs/uuid),
and npm's only offered fix is a downgrade to 3.7.0, so they are left
for an upstream Docusaurus release.
@tuhaihe
tuhaihe force-pushed the cc/component-version-upgrade-fb2b7e branch from bc10c3f to 4deb964 Compare November 19, 2026 09:40
@tuhaihe
tuhaihe enabled auto-merge (rebase) November 19, 2026 09:41
@tuhaihe
tuhaihe merged commit e3a102d into apache:main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants