Skip to content

Update npm dependencies and add site regression tests - #953

Merged
roblarsen merged 2 commits into
mainfrom
update-npm-dependencies
Nov 9, 2026
Merged

roblarsen merged 2 commits into
mainfrom
update-npm-dependencies

Conversation

@roblarsen

Copy link
Copy Markdown
Member

Summary

  • Update all direct npm dependencies to their latest releases, refresh transitive dependencies, and replace deprecated uglify-es with uglify-js.
  • Migrate Eleventy, heading permalinks, and HTML minification to their updated APIs; remove the obsolete npm-ignored axios resolution.
  • Require Node.js 22.22.0 or later, update the deployment workflow, and run regression tests on pull requests.
  • Add site build tests for navigation, minified JavaScript, syntax highlighting, heading links, translations, assets, and the sitemap.

The site comparison showed minor equivalent minified JavaScript and HTML quote/whitespace changes. The upgraded contributor generator also changes avatar markup when next run; generated contributor files are not changed in this PR.

Type of change

  • Infrastructure change (automation, etc.)

Validation

  • Clean npm ci, npm test, and npm run build on Node 22.22.0
  • Development server smoke test
  • npm outdated and npm audit (no outdated direct dependencies or reported vulnerabilities)

Checklist

  • My content follows the style guidelines of this project
  • I have performed a self-review of my own content

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roblarsen
roblarsen requested a balanced review from Copilot November 9, 2026 19:00
Comment thread test/site.test.js Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the dependency and build-configuration updates.

No open issues 🎉

What changed in this PR

Updates the Eleventy site’s dependencies and build configuration, and adds regression tests to check that generated pages retain their expected content and behavior.

Changes:

  • Upgrades dependencies, replaces uglify-es with uglify-js, and adapts heading links and HTML minification to updated APIs.
  • Requires Node.js 22.22.0 or later and runs tests and builds on pull requests, with deployment restricted to pushes.
  • Adds site regression tests and updates contributor setup instructions.
File Description
test/​site.test.js Adds build-output checks for navigation, scripts, highlighting, translations, assets, heading links, and the sitemap.
package.json Updates dependencies, removes the obsolete axios resolution, and declares the test command and Node.js requirement.
config/​eleventy.config.js Adapts JavaScript minification, heading permalinks, and asynchronous HTML minification.
.github/​workflows/​gh-pages-build.yml Updates the runner and Node.js setup, adds pull-request validation, and limits deployment to pushes.
.github/​CONTRIBUTING.md Documents the Node.js requirement, reproducible installation, and regression test command.

Review effort: Balanced

…egexp'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@roblarsen
roblarsen merged commit 44ef9b8 into main Nov 9, 2026
4 checks passed
@roblarsen
roblarsen deleted the update-npm-dependencies branch November 9, 2026 19:04
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.

3 participants