Repository navigation
chore: Resolve the npm advisories the lock file can resolve - #90
Merged
Merged
Conversation
Development dependencies only; nothing here ships in the plugin. wp-env moves to 11.17.0 within its range; http-cache-semantics to 4.3.0 and qs to 6.16.0, the versions the advisories end at (qs by an override, as express pins the vulnerable patch range); argparse to 2.0.1 by an override, which drops sprintf-js (no fixed version exists; js-yaml 3 uses argparse only in its command-line tool, which wp-env does not run). simple-git stays at 3.36.0: wp-env 11.17.0 requires the 3.x API (the default export 4.0 removed), and the upstream change to simple-git 4 (WordPress/gutenberg#84137) was merged after 11.17.0 was published. Signed-off-by: Hannes Gao <7233642+hannesgao@users.noreply.github.com>
Signed-off-by: Hannes Gao <7233642+hannesgao@users.noreply.github.com>
Member
Author
|
Full suites on the head commit 0525e1d, default counts: single site 907 tests, 0 failures, 25 skipped; multisite 907 tests, 0 failures, 4 skipped. CI: 28 checks passed. |
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.
What does this change and why?
Resolves the Dependabot alerts that the lock file can resolve. Development dependencies only (
@wordpress/envand what it pulls in); nothing here is in the plugin package.@wordpress/env11.15.0 → 11.17.0 (within the declared range).http-cache-semantics4.2.0 → 4.3.0 (GHSA-ch52-4w7c-c8xp ends at 4.2.0).qs6.15.3 → 6.16.0 by an override, asexpresspins~6.15.1(two npm advisories; not yet on Dependabot).argparse1.0.10 → 2.0.1 by an override scoped tojs-yaml, which removessprintf-js(GHSA-hp3w-g68c-fv3c, no fixed version exists).js-yaml3 loadsargparseonly in its command-line tool (bin/js-yaml.js), which wp-env never runs; wp-env callsyaml.dump()andyaml.safeLoad()of the library.Not resolved here: the four
simple-gitalerts (GHSA-v5rq-49vh-5v5c, GHSA-x6jw-m9v5-85vh, GHSA-g4wm-2vf7-vfgr, GHSA-858h-whjf-mvg5). The fixed version is 4.x, which removed the default export that wp-env 11.17.0 uses (const SimpleGit = require( 'simple-git' )), so an override would breakwp-env start. Upstream moved wp-env to simple-git 4 in WordPress/gutenberg#84137, merged on 2026-10-07 after 11.17.0 was published the same day; the next wp-env release should carry it.npm auditafter this change: 3 critical (all thesimple-gitchain), nothing else.How was it tested?
npm install,npm ls(the chains above),npm audit.wp-env startwith the updated tooling, thenRestoreImportTestthroughbin/test-integration.sh(16 tests, 810 assertions, OK).Checklist
composer lint,composer analyse,composer test:unitandnpm run test:integrationpass (no PHP changed; integration through CI)wp-checkpoint) (none)git commit -s)