Bump mocha to 11.8.0 to remove nanoid, add Node 24 to CI - #155
Bump mocha to 11.8.0 to remove nanoid, add Node 24 to CI#155dependabot[bot] wants to merge 2 commits into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
f2c4dd9 to
5a0605e
Compare
5a0605e to
edcdc6e
Compare
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
edcdc6e to
50a3125
Compare
Socket's "obfuscated code" alert on yargs 17.7.3 is the terser-minified Since the same alert will fire for platform and for every future PR touching yargs 17.x, Claude says it is worth asking @polis80cy or who owns the Socket dashboard to triage yargs there rather than ignoring it PR by PR. |
|
@SocketSecurity ignore npm/yargs@17.7.3 |
|
I replaced Dependabot's commit rather than adding to it. Mocha 12 needs Node 20.19+ and broke the Node 18 job, which we still want to keep green for now, so I pinned mocha to |
New PR
Removes nanoid, which was pinned to the vulnerable 3.3.3 by mocha 10.2.0. Mocha dropped the dependency in 10.8.2, so bumping mocha is the fix.
Dependabot originally bumped mocha to 12.0.0 because
package.jsondeclared"mocha": ""(any version), so it moved the lockfile to the latest major. Mocha 12 requires Node ^20.19.0 || >=22.12.0 and is ESM internally, which failed the Node 18 job atnpm install. We want to keep testing on Node 18 for now, so this PR instead pins"mocha": "^11"(11.8.0, supports Node ^18.18.0, also nanoid-free) and regenerates the lockfile on top of main. Every lockfile change is inside mocha's own dependency subtree. Node 24 is added to the test matrix to match release.yml, and AGENTS.md gains a note on keepingresolvedURLs canonical when the lockfile is regenerated behind a registry proxy.Verified locally on Node 18, 20, 22, 24 and the current latest (26): 249 tests passing via both
mochaandnyc mocha, eslint clean. npm audit goes from 17 to 15 findings with nothing new. Cleared: all four nanoid advisories, mocha's minimatch copy, braces, brace-expansion 2.x and the serialize-javascript XSS advisory. The remaining serialize-javascript advisories need 7.x, which declares Node 20+, and only affect mocha's parallel mode, which this repo does not use.No public release needed: mocha and nyc are devDependencies, the published package's runtime dependencies (retry, superagent, uri-templates) are unchanged, and package-lock.json is not shipped to consumers.
Old PR (commit f2c4dd9)
Removes nanoid. It's no longer used after updating ancestor dependency mocha. These dependencies need to be updated together.
Removes
nanoidUpdates
mochafrom 10.2.0 to 12.0.0Release notes
Sourced from mocha's releases.
... (truncated)
Changelog
Sourced from mocha's changelog.
... (truncated)
Commits
07c92f9chore(main): release 12.0.0 (#6217)219674fchore: setup Release Please for v12 stable (#6084)3bb317dfix: preserve FIFO descriptors when respawning (#6254)2962875fix: fixup parsing negative numbers and quoted strings (#6250)e6b9ee7docs: fix minor correctness issues (#6215)8720225docs: link to mochajs.org instead of the wiki (#6216)505b5e9chore(main): release 12.0.0-rc.6 (#6173)c54539fchore: fix esm-utils tests when run without coverage (#6160)dcc539achore(deps): update dependency@playwright/testto v1.62.1 (#6197)c2c6d63chore(deps): update dependency globals to v17.9.0 (#6201)Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for mocha since your current version.