Commit 3176dab
authored
chore: deps upgrade + Docusaurus 3.10 hardening (#112)
* chore: deps upgrade + Docusaurus 3.10 hardening
Upgrades:
- Docusaurus core/preset/theme-search-algolia 3.6.3 -> ^3.10.0
- @docusaurus/module-type-aliases ^3.10.0
- @mdx-js/react 3.0.0 -> ^3.1.1
- posthog-docusaurus ^2.0.5, clsx ^2.1.1, prism-react-renderer ^2.4.1
- Node engine >=16.14 -> >=20.0 (Docusaurus 3.9 dropped Node 18)
Vulnerabilities: 40 (4 low, 26 moderate, 10 high) -> 0 via:
- Docusaurus 3.10 cascade
- npm overrides for serialize-javascript ^7.0.5 (high-sev RCE/XSS in deep
copy-webpack-plugin / css-minimizer-webpack-plugin transitives)
- npm override for webpackbar ^7.0.0 (v6 used pre-strict ProgressPlugin
schema, broke build under newer webpack)
New Docusaurus features adopted:
- @docusaurus/faster (Rspack/SWC/LightningCSS) via future.faster + the
required future.v4.removeLegacyPostBuildHeadAttribute flag
- storage namespace to avoid localStorage collisions across versioned docs
- onBrokenAnchors: throw (CI safety net for cross-references)
- sitemap lastmod from git, drop priority/changefreq (v4 default, SEO win)
- colorMode.respectPrefersColorScheme (auto follow OS dark/light)
- markdown.hooks.onBrokenMarkdownLinks (replaces deprecated top-level)
Cleanups uncovered by Faster:
- Deleted babel.config.js (SWC handles JS now; build emitted notice)
- Moved scarf tracking pixel from headTags to an inline plugin using
injectHtmlTags -> postBodyTags. The <img> in <head> was invalid HTML5
and produced 128 HTML minifier warnings under the strict SWC minifier
(browsers tolerated it, tracking still fired). Now warning-free.
v4 prep:
- :::caution -> :::warning in docs/Server-Admin-Onboarding.md (2 places)
* ci: bump Node 18 -> 24 (latest LTS) and update GH Actions
- node-version: 18 -> 24 (latest LTS as of Apr 2026)
Required: serialize-javascript ^7.0.5 (security override) uses the
global crypto API which only exists in Node 19+, so the prior
Node 18 runner failed with "ReferenceError: crypto is not defined"
- actions/checkout@v3 -> v4
- actions/setup-node@v3 -> v4
Both v3 actions were on the deprecated Node 20 runtime
- peaceiris/actions-gh-pages@v3 -> v4
package.json engines stays >=20.0 (Docusaurus 3.10's floor) so users
running 20/22/24 locally remain supported; CI just runs latest LTS.
* chore: pin engines.node to 24.x (latest LTS)
Vercel was emitting two warnings on every deploy:
- "engines >=20.0 ... will automatically upgrade when a new major
Node.js Version is released"
- "Node.js Version defined in your Project Settings (22.x) will not
apply, Node.js Version 24.x will be used instead"
Open-ended ranges trigger Vercel's auto-upgrade behaviour. Pin to
24.x to match CI and the runtime Vercel is already selecting.
Heads-up: the Vercel Project Settings still need to be flipped from
22.x to 24.x to clear the second warning.1 parent 6fd83d3 commit 3176dab
7 files changed
Lines changed: 5461 additions & 3823 deletions
File tree
- .github/workflows
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
25 | 43 | | |
26 | 44 | | |
27 | 45 | | |
| |||
55 | 73 | | |
56 | 74 | | |
57 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
58 | 98 | | |
59 | 99 | | |
60 | 100 | | |
| |||
84 | 124 | | |
85 | 125 | | |
86 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
87 | 132 | | |
88 | 133 | | |
89 | 134 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 135 | | |
105 | 136 | | |
106 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
107 | 142 | | |
108 | 143 | | |
109 | 144 | | |
| |||
0 commit comments