Repository navigation
deps: clear all 35 dependabot alerts in the dev toolchain - #123
Merged
Merged
Conversation
Every open alert came from devDependencies in package-lock.json — the
published package has no runtime dependencies, so consumers were never
exposed. npm audit reported 27 vulnerabilities (2 critical, 22 high).
Upgrades: mocha 10 -> 11, @web/test-runner(-playwright) 0.x -> 1.0,
@playwright/test 1.58 -> 1.62.
Overrides are needed where the direct dependency still points at a
vulnerable major:
- puppeteer-core ^25 pulls @puppeteer/browsers 3.x, which replaced
extract-zip with modern-tar. extract-zip has no patched release at
all, so an override is the only way out of that advisory.
- serialize-javascript ^7.1.0 and diff ^8.0.4: mocha 11 still depends
on the vulnerable v6/v7 lines.
npm audit is now clean, and each of the 35 alerted packages is either
gone from the tree or at/above its patched version.
Two things the refresh surfaced:
Firefox 153 and WebKit 26.5 (shipped with Playwright 1.62) now expose
WebAssembly.Suspending/promising, so the loader selects the JSPI build
there instead of ASYNCIFY — and it works: the functional clone passes in
both. The loader matrix expected 'asyncify' unconditionally; it now
derives the expectation from detected JSPI support via
variantWithoutJspi, so it stays correct on engines without JSPI too.
main.yml never set up Node and inherited the runner default.
@web/test-runner 1.0 requires Node >=22, so pin node-version 24 in the
five jobs that run npm, matching what publish.yml already does.
All suites pass locally: test, test-opfs-detect, test-browser,
test-browser-async, test-browser-opfs, test-browser-opfs-noniso,
test-opfs-loader (including firefox and webkit) and test-opfs-example.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Closes every open alert on https://github.com/petersalomonsen/wasm-git/security/dependabot.
Scope
All 35 alerts came from devDependencies in
package-lock.json. The published package has no runtime dependencies — it ships onlylg2*.js/lg2*.wasm— so consumers of wasm-git were never exposed.npm auditreported 27 vulnerabilities (2 critical, 22 high); it now reports 0.Dependency changes
mocha@web/test-runner@web/test-runner-playwright@playwright/testThree
overridescover advisories the direct dependency still points at:puppeteer-core: ^25.8.0— pulls in@puppeteer/browsers3.x, which replacedextract-zipwithmodern-tar.extract-ziphas no patched release, so an override is the only way out of that advisory.serialize-javascript: ^7.1.0anddiff: ^8.0.4— mocha 11 still depends on the vulnerable v6/v7 lines.Each of the 35 alerted packages is now either gone from the tree or at/above its patched version.
Two things the refresh surfaced
Firefox and WebKit now ship JSPI. Playwright 1.62 brings Firefox 153 and WebKit 26.5, both of which expose
WebAssembly.Suspending/promising. The loader therefore selects thejspibuild there rather thanasyncify— and it genuinely works: the functional clone through the JSPI build passes in both engines. The loader matrix expectedasyncifyunconditionally, so it now derives the expectation from detected JSPI support viavariantWithoutJspi, keeping the suite correct on engines without JSPI as well.Node version in CI.
main.ymlnever set up Node and inherited the runner default.@web/test-runner@1.0.0requires Node>=22, soactions/setup-node@v4withnode-version: '24'is now pinned in the five jobs that run npm — the same thingpublish.ymlalready does.Verification
All suites run locally and pass:
test(14),test-opfs-detect(8),test-browser(18),test-browser-async(10),test-browser-opfs(6),test-browser-opfs-noniso(18),test-opfs-loader(4/4, including firefox and webkit) andtest-opfs-example(1).🤖 Generated with Claude Code