chore: Remove unused dependencies and bump vulnerable packages - #1898
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pjlast
approved these changes
Sep 11, 2026
pjlast
left a comment
Contributor
There was a problem hiding this comment.
Not sure how to judge this one 😆 but the idea makes sense. So going to :trust:
marcleblanc2
enabled auto-merge (squash)
September 11, 2026 01:43
pnpm audit: 184 advisories -> 40 (critical 4 -> 2, high 71 -> 17). - Remove baseai / @baseai/core, the baseai/ memory config, docs-chatbot.md and the `pnpm sync` script. The Langbase chatbot was replaced by runLLM; nothing imports these. They alone pulled in hono (34 advisories), tar (12), xlsx (2 high, no fix available) and more. - Remove js-yaml: declared as a direct dependency but never imported. - Bump mermaid 11.12 -> 11.16 (dompurify XSS fixes in the client bundle) and sharp 0.32 -> 0.35 (libvips / libheif CVEs). - Re-resolve vulnerable transitives within their existing ranges (minimatch, brace-expansion, picomatch, nanoid, protobufjs, ...). - Ignore /logs for script output; drop the stale **/.baseai/ entry. - Add dev/TODO.md with the remaining work: Dependabot + audit CI gate, contentlayer -> contentlayer2, next 14 -> 15. The 40 remaining advisories are all pinned by next 14 (fixes only in 15.5.x) or contentlayer 0.3.4 (unmaintained since 2023). Verified with node 20 / pnpm 10.25 from .tool-versions: tsc, lint and build (521 documents, 526 static pages, dev/check-* scripts) pass; the two mermaid pages render. Amp-Thread-ID: https://ampcode.com/threads/T-01a089d0-ddce-722d-8215-0d6d244d062b Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a089d0-ddce-722d-8215-0d6d244d062b Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a089d0-ddce-722d-8215-0d6d244d062b Co-authored-by: Amp <amp@ampcode.com>
marcleblanc2
force-pushed
the
remove-baseai-and-bump-vulnerable-deps
branch
from
September 11, 2026 01:43
ed73544 to
2d8e83f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pnpm auditonmain: 184 advisories (4 critical, 71 high). After this PR: 40 (2 critical, 17 high), all of which are pinned bynext14 orcontentlayer0.3.4.Changes
baseai/@baseai/core, thebaseai/memory config,docs-chatbot.md, and thepnpm syncscript. The Langbase chatbot was replaced by runLLM and nothing imports these. They alone pulled inhono(34 advisories),tar(12, incl. 1 critical),xlsx(2 high, no fix available),form-data,yaml,uuid, and most of theminimatch/brace-expansionhits.js-yamlfrom direct dependencies: never imported bysrc/ordev/.mermaid11.12 → 11.16: carries thedompurifyXSS fixes, the only vulnerable code that actually ships to visitors' browsers.sharp0.32 → 0.35 (devDep, build only): libvips / libheif CVEs.minimatch,brace-expansion,picomatch,nanoid,protobufjs,@grpc/grpc-js, ...). Lockfile loses ~2,000 lines..gitignore: add/logsfor script output, drop the stale**/.baseai/entry.Verification
With
node 20.20/pnpm 10.25(per.tool-versions):npx tsc --noEmitclean,pnpm lintcleanpnpm build: 521 documents, 526 static pages,dev/check-links/check-filenames/check-images/generate-mermaid-iconsall pass; route table unchangedadmin/architecture,self-hosted/sourcegraph-nginx-mermaid) render correctly undernext startin headless Chromepnpm why baseai hono tar xlsx→ not found;rg baseai→ only the AGENTS.md history note