Files
hermes-agent/website/package.json
Maciej Lisiewski 132d283966 fix(deps): bump katex 0.16.47 → 0.18.4 (low, GHSA-238p-pmpm-9mq7)
KaTeX < 0.18.2 lets existing prototype pollution bypass the `trust`
restriction; 0.16.x and 0.17.x get no fix. 0.18.4 is the newest release
that keeps commander ^8: 0.18.5+ requires commander 15 (Node >= 22.12),
which the website's declared Node >= 20 cannot install under
engine-strict. 0.18.11/0.19.0 also change strict-mode behaviour.

Bumps the direct pins in apps/desktop and apps/bootstrap-installer and
adds a `katex` override in the root and website projects so the ^0.16
consumers (rehype-katex, micromark-extension-math, @streamdown/math,
mermaid 11.16.1) share the fixed copy; mermaid's own move to ^0.18 was a
package.json-only change.

The only breaking changes in range are 0.17.0's internal
__defineFunction API (unused here) and 0.18.0's `katex-` prefix on 20
internal CSS classes (base, strut, tag, underline, ...). The repo
targets only `.katex*` selectors, ships KaTeX's own stylesheet, and
Streamdown runs the math plugin after its sanitizer, so nothing strips
or restyles the renamed classes. The prefix also stops the app's
Tailwind `.underline` rule from restyling KaTeX's internal underline
spans.
2026-10-22 00:53:44 +02:00

74 lines
1.9 KiB
JSON

{
"name": "website",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"prestart": "node scripts/prebuild.mjs",
"start": "docusaurus start",
"prebuild": "node scripts/prebuild.mjs",
"build": "docusaurus build",
"build:fast": "docusaurus build --locale en",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc -p . --noEmit",
"lint:diagrams": "ascii-guard lint --exclude-code-blocks docs"
},
"dependencies": {
"@docusaurus/core": "3.10.2",
"@docusaurus/plugin-client-redirects": "3.10.2",
"@docusaurus/preset-classic": "3.10.2",
"@docusaurus/theme-mermaid": "3.10.2",
"@mdx-js/react": "3.1.1",
"@mermaid-js/layout-elk": "0.1.9",
"clsx": "2.1.1",
"prism-react-renderer": "2.3.0",
"react": "19.2.7",
"react-dom": "19.2.7"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.10.2",
"@docusaurus/tsconfig": "3.10.2",
"@docusaurus/types": "3.10.2",
"typescript": "6.0.3"
},
"overrides": {
"serialize-javascript": "7.0.7",
"uuid": "14.0.1",
"minimatch": "10.2.6",
"nanoid": "3.3.20",
"js-yaml": "4.3.2",
"dompurify": "3.4.17",
"katex": "0.18.4",
"mermaid": "11.16.1",
"image-size": "npm:@nous-research/image-size@2.0.3",
"tar": "7.5.22",
"tinypool": "2.2.0",
"postcss-selector-parser": "7.1.6"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=20.0",
"npm": ">=11.17.0"
},
"allowScripts": {
"core-js@3.49.0": true,
"fsevents@2.3.3": true
}
}