Skip to content

Update vulnerable ws dependencies and modernize Lefthook - #79

Merged
MonilBhavsar merged 2 commits into
mainfrom
claude-updateWs-JS00001
Nov 25, 2026
Merged

MonilBhavsar merged 2 commits into
mainfrom
claude-updateWs-JS00001

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Update vulnerable transitive ws resolutions without changing parent dependency ranges or unrelated dependencies:

  • Root: 6.2.2 → 6.2.4 and 8.13.0 → 8.21.0.
  • Example: 6.2.2 → 6.2.4 and 7.5.9 → 7.5.11.
  • Preserve already newer versions and synchronize both lockfile-v2 representations.

Replace deprecated @arkweid/lefthook with pinned lefthook@2.2.2 so tooling can locate the supported package. This release satisfies the existing seven-day minimum release-age policy. Change the pre-commit linter to use staged files: comparing against @{push} fails on a new branch before its first push. No global hook settings or protections are disabled.

See the Lefthook dependency and the staged-file hook configuration.

Fixed Issues

Addresses ws advisories GHSA-3h5v-q93c-6h6q and GHSA-96hv-2xvq-fx4p.

AI Tests

  • Passed clean npm ci in the root and example projects.
  • Passed npm ls ws --all in both projects and verified patched versions.
  • Passed npm run lint.
  • Passed npm test -- --runInBand --coverage: 1 suite, 2 tests.
  • Passed npm run build: CommonJS and ES module outputs.
  • Normal git commit passed the active pre-commit hook after the migration and staged-file configuration fix. The linter correctly skipped these non-JavaScript changes; full lint passed separately.
  • npm audit --json in both projects reports no ws findings. Audits still exit nonzero for unrelated vulnerabilities (26 root, 59 example); those are outside this change.
  • Passed git diff --check.

Tests

  • Run npm ci in the root and example projects.
  • Run npm ls ws --all in both projects and verified patched versions.
  • Run npm run lint.
  • Run npm test -- --runInBand --coverage and ensure everything passes

QA

N/A

Co-authored-by: Jack Senyitko <JS00001@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@JS00001

JS00001 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

I have read the CLA Document and I hereby sign the CLA

@JS00001

JS00001 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

recheck

@JS00001
JS00001 marked this pull request as ready for review November 25, 2026 17:10
@JS00001
JS00001 requested a review from a team November 25, 2026 17:10
exfy-clabot Bot added a commit to Expensify/CLA that referenced this pull request Nov 25, 2026
@expensify-chore-bot
expensify-chore-bot Bot requested review from MonilBhavsar and removed request for a team November 25, 2026 17:11
@MonilBhavsar
MonilBhavsar merged commit e1948cd into main Nov 25, 2026
5 of 7 checks passed
@MonilBhavsar
MonilBhavsar deleted the claude-updateWs-JS00001 branch November 25, 2026 17:27
@os-botify

os-botify Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 1.0.32 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants