Skip to content

Update dependencies and remove grunt tooling#117

Merged
kraftbj merged 4 commits intotrunkfrom
update/dependencies
Apr 14, 2026
Merged

Update dependencies and remove grunt tooling#117
kraftbj merged 4 commits intotrunkfrom
update/dependencies

Conversation

@kraftbj
Copy link
Copy Markdown
Collaborator

@kraftbj kraftbj commented Apr 3, 2026

Summary

  • Run npm audit fix to resolve transitive vulnerabilities (brace-expansion, path-to-regexp, serialize-javascript)
  • Remove grunt-checktextdomain and grunt-wp-i18n devDependencies and delete Gruntfile.js — PHPCS already covers text domain validation via WordPress.WP.I18n and I18nTextDomainFixer rules
  • Run npm update for semver-compatible bumps across all WordPress packages and other dependencies

Reduces npm audit findings from 25 (18 high, 7 moderate) to 16 (10 high, 6 moderate). Remaining vulnerabilities are all in @wordpress/scripts and @wordpress/env transitive dependencies (dev-only tooling) with no non-breaking fix available upstream.

Test plan

  • npm run lint passes
  • npm run build succeeds
  • npm run test:unit — all 347 tests pass
  • npm audit shows no new vulnerabilities
  • Verify PHPCS still catches wrong text domains (vendor/bin/phpcs includes WordPress.WP.I18n rule)

kraftbj added 4 commits April 3, 2026 11:43
- Run npm audit fix to resolve transitive vulnerabilities
  (brace-expansion, path-to-regexp, serialize-javascript)
- Remove grunt-checktextdomain and grunt-wp-i18n devDependencies
  and delete Gruntfile.js — PHPCS already covers text domain
  validation via WordPress.WP.I18n and I18nTextDomainFixer rules
- Run npm update for semver-compatible bumps across all
  WordPress packages and other dependencies

Reduces npm audit findings from 25 (18 high, 7 moderate)
to 16 (10 high, 6 moderate). Remaining vulnerabilities are
all in wordpress/scripts and wordpress/env transitive
dependencies (dev-only tooling) with no non-breaking fix
available upstream.
Resolve package-lock.json conflicts from concurrent dependency
updates on trunk (axios, typescript).
Adds --testPathIgnorePatterns to the test:unit script so Jest skips
any path containing /worktrees/. This prevents false failures from
build-output tests in worktree copies that lack build artifacts, and
avoids Haste module naming collisions from duplicate package.json files.
Runs npm audit fix to address 9 vulnerabilities in brace-expansion,
follow-redirects, lodash, path-to-regexp, and transitive dependencies.
Remaining 11 vulnerabilities require breaking changes to wp-scripts.
@kraftbj kraftbj added this pull request to the merge queue Apr 14, 2026
Merged via the queue into trunk with commit e5172dc Apr 14, 2026
6 checks passed
@kraftbj kraftbj deleted the update/dependencies branch April 14, 2026 20:05
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.

1 participant