chore(deps): consolidate 6 dependabot PRs incl. pdf-parse/argon2 major bumps (2026-07-27 batch 2) - #521
Merged
Merged
Conversation
…/sdk - argon2 0.43.1 -> 0.45.1 (Dependabot PR #515) - pdf-parse 1.1.1 -> 2.4.5 -- MAJOR (Dependabot PR #516). v2 is a full rewrite: no longer a callable default export, now a class API (new PDFParse({ data }).getText()). Updated attachmentExtract.ts's import/call site accordingly, with a best-effort destroy() in finally to free the pdf.js worker/canvas. - @anthropic-ai/sdk 0.111.0 -> 0.115.0 (Dependabot PR #520)
…/sdk, @types/yauzl (major), @types/node (major) - argon2 0.43.1 -> 0.45.1 (Dependabot PR #515) - pdf-parse 1.1.1 -> 2.4.5 -- MAJOR (Dependabot PR #516). v2 is a full rewrite: no longer a callable default export, now a class API (new PDFParse({ data }).getText()). Updated attachmentExtract.ts's import/call site accordingly, with a best-effort destroy() in finally to free the pdf.js worker/canvas. - @anthropic-ai/sdk 0.111.0 -> 0.115.0 (Dependabot PR #520) - @types/yauzl 2.10.3 -> 3.4.0 -- MAJOR (Dependabot PR #518). Fixes a pre-existing mismatch: the real yauzl dependency was already on ^3.3.2 while its types were still pinned to the v2 shape. - @types/node 25.9.1 -> 26.1.1 -- MAJOR (Dependabot PR #519), types-only, no runtime API usage affected (engines.node stays >=22.13.0 <23).
…udit - monaco-editor 0.55.1 -> 0.56.0 (Dependabot PR #517). No breaking API changes relevant to this repo's usage (only via @monaco-editor/react's standard entry point; the renamed IOverlayWidgetPosition field and removed worker types aren't referenced anywhere here). - monaco-editor pins its bundled dompurify to an exact version (3.4.8), which cleared the 5 pre-existing moderate dompurify advisories but is itself affected by a newer one (CUSTOM_ELEMENT_HANDLING bypass etc., <=3.4.11). Added a dompurify override to 3.4.12 (the patched version) on top of monaco-editor's pin -- npm audit now reports 0 vulnerabilities in web-ui.
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.
Summary
Consolidates 6 Dependabot PRs opened 2026-07-27 (right after PR #513/#514 merged) into a single clean, CI-verified batch, including proactive audit-gate hardening (same pattern as #513).
argon2(middleware)pdf-parse(middleware)monaco-editor(web-ui)@types/yauzl(middleware)@types/node(middleware)@anthropic-ai/sdk(middleware)Real code changes required
pdf-parsev2 is a full rewrite by a new maintainer: no longer a callable default export (pdf(buffer) -> {text}), now a class API (new PDFParse({ data }).getText()). Updatedmiddleware/packages/harness-orchestrator/src/attachmentExtract.tsaccordingly, with a best-effortdestroy()infinallyto free the pdf.js worker/canvas. Verified end-to-end with a real PDF through the builtdist/.argon20.45.x renamedargon2.Options→argon2.HashOptions: the stale type name silently fell back to theraw: trueoverload ofhash()(returnsBufferinstead of a PHC string), which failed to compile. Fixed the one call site inmiddleware/src/auth/passwordHasher.ts. Separately,hash()'s PHC-string parameter order changed (m=,t=,p=→m=,p=,t=, same values) — loosened the test's fixed-order regex to check each parameter independently.@types/yauzlbump fixes a pre-existing mismatch: the realyauzldependency was already on^3.3.2while its types were still pinned to the v2 shape.Audit hardening (proactive, same as #513)
monaco-editorpins its bundleddompurifyto an exact version (3.4.8), which cleared the 5 pre-existing moderate dompurify advisories but is itself affected by a newer one (CUSTOM_ELEMENT_HANDLING bypass etc.,<=3.4.11). Added adompurifyoverride to3.4.12on top of monaco-editor's pin. Result: web-ui now reports 0 vulnerabilities of any severity.Verification (Node 22.22.3, clean
rm -rf node_modules package-lock.json && npm installfor both packages)middleware
npm run build/typecheck— exit 0npm run lint— 0 errors, 1 pre-existing warningnpm test— 4705 tests, 4701 pass, 0 fail, 4 skippednpm audit— 0 info/low, 10 moderate (pre-existingbotbuilder/uuid/@modelcontextprotocol/sdkchains, need upstream major bumps, don't block the required gate), 0 high/criticalweb-ui
npm run build/typecheck— exit 0npm run lint— 0 errors, 36 pre-existing warnings (unchanged)npm test— 306/306 passnpm audit— 0 vulnerabilitiesCloses #515, closes #516, closes #517, closes #518, closes #519, closes #520.
Test plan
npm run build(middleware + web-ui)npm run typecheck(middleware + web-ui)npm test(middleware: 4701/4705, web-ui: 306/306)npm run lint(both, no new warnings)npm audit(middleware 0 high/critical, web-ui 0 total)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.