Skip to content

Dependabot cleanup - #1234

Merged
tridge merged 5 commits into
ArduPilot:masterfrom
tridge:dependabot-cleanup
Jul 28, 2026
Merged

Dependabot cleanup#1234
tridge merged 5 commits into
ArduPilot:masterfrom
tridge:dependabot-cleanup

Conversation

@tridge

@tridge tridge commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

tridge added 5 commits July 28, 2026 12:30
b94a023 bumped mocha to ^11.7.5 in package.json but left package-lock.json
resolving mocha at 10.2.0, so CI kept installing the old tree.  Regenerate
the lock so the declared version is what actually gets installed.

Clears the mocha-transitive alerts that v11 fixes (nanoid, several minimatch
and js-yaml ranges, yargs-parser).
The vendored copies of long@4.0.0 and jspack@0.0.4 kept the devDependencies
from their published package.json.  npm installs devDependencies of file:
dependencies, so "webpack": "^3.10.0" in the vendored long dragged in the
whole webpack@3 / node-libs-browser / crypto-browserify tree: elliptic,
sha.js, cipher-base, pbkdf2, browserify-sign, json5 and braces, every one
of them with open advisories.

Neither vendored copy is built here - long ships a prebuilt dist and we do
not run their test suites - so these serve no purpose.

Takes the installed tree from 640 to 283 packages and clears 13 Dependabot
alerts including 5 of the 7 criticals.
The "lint" script is not run by any workflow or shell script in the tree,
so eslint@6 (EOL 2019) and its babel-eslint@10 parser (deprecated, renamed
to @babel/eslint-parser) have been installed by CI for years without ever
being invoked.  Between them they pull in @babel/traverse, lodash, flatted,
tmp, ajv and semver, all with open advisories.

glob and winston are declared as dependencies but required by nothing in
the repo - winston appears only in a comment about the caller-supplied
logger object.

Drop all four along with the now-dead lint script and .eslintrc.json.
Anyone wanting linting back should add eslint@9 with @babel/eslint-parser
and actually wire it into CI.

generator/javascript goes from 283 to 123 installed packages,
generator/javascript_stable to 114.  Clears 20 alerts including the
remaining 2 criticals.  npm test still passes: 2772 tests.
Hard-pinned at 1.12.1, which is affected by GHSA-qpx9-hpmf-5gmw (unbounded
recursion in _.flatten and _.isEqual).  1.13.8 is the fix.

Only the stable generator emits code that requires underscore; the current
generator does not use it at all.  npm test still passes: 2772 tests.
javascript_stable left mocha, should and sinon unversioned (""), so its
lock drifted and pinned mocha 11.7.1.  Pin them to the same versions the
other generator uses and npm update both lockfiles.

Picks up glob 10.5.0, minimatch 9.0.9 and js-yaml 4.3.0 in place of the
older versions mocha's tree was holding.

The refresh moves both files to lockfileVersion 3.  CI's oldest node is 18
(npm 9), which reads v3 natively.

npm test still passes: 2772 tests.  What remains in npm audit is 6
advisories inside mocha's own dependency tree - brace-expansion, diff,
glob, minimatch, serialize-javascript - none of which mocha has published
a fix for; installing mocha@latest standalone reproduces the same 6.
@tridge
tridge merged commit 428a16b into ArduPilot:master Jul 28, 2026
21 checks passed
This was referenced Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant