Skip to content

Update docs dependencies reported by npm audit #302

Description

@foundev

Summary

The locked docs dependency tree currently reports five advisories through npm audit: four high-severity and one moderate-severity finding. The docs check and production static build still pass.

Observed on master at afeec142a24dac622a7ff6f54d0f5021f319fb17.

Current findings

  • sharp: high, direct dependency, affected <0.35.0
  • postcss: high, transitive, affected <=8.5.17
  • svgo: high, transitive, affected 4.0.0 - 4.0.1
  • fast-uri: high, transitive, affected 3.0.0 - 3.1.3
  • astro: moderate, direct dependency, affected 2.9.0 - 7.0.9

sharp reports a semver-major fix; the other findings report fixes available.

Acceptance criteria

  • Upgrade the direct dependencies and refresh docs/package-lock.json so these findings are removed or document a reviewed exception for any remaining advisory.
  • npm --prefix docs ci passes.
  • npm --prefix docs run check passes.
  • PUBLIC_DOCS_SITE=https://anvil.brokk.ai PUBLIC_DOCS_BASE=/ npm --prefix docs run build passes.
  • Add an appropriate dependency-audit check to CI if we want regressions caught automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions