Skip to content

Conversation

@thehabes
Copy link
Member

@thehabes thehabes commented Dec 17, 2025

Summary

Updates npm packages, Node.js version requirements, and fixes Express 5.x compatibility in test suite.

Package Updates

Minor/Patch Updates

Package From To
express ^5.1.0 ^5.2.1
http-errors ^2.0.0 ^2.0.1

New Dependencies

  • Added @jest/core for proper Jest CLI programmatic usage

Runtime Requirements

  • Node.js: Added >=24.12.0
  • npm: Added >=11.7.0

CI/CD Changes

  • Updated Node.js version in GitHub Actions workflows from 22 to 24

Code Changes

Test Suite (Express 5.x Compatibility)

  • Refactored __tests__/mount.test.js to use Express 5.x route detection
  • Changed from app._router.stack with regexp to app.router.stack with matchers
  • Added routeExists() helper function for cleaner route verification

Jest CLI Fix

  • Updated bin/testApp.js to import runCLI from @jest/core instead of deprecated jest-cli pattern

Related PRs

This PR is part of a coordinated package update across the TPEN 3.0 stack:

@thehabes thehabes linked an issue Dec 17, 2025 that may be closed by this pull request
@thehabes thehabes self-assigned this Dec 17, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates npm package dependencies and Node.js runtime requirements for the TinyPEN project, with key changes to support Express 5.x and modernize the Jest CLI usage pattern.

  • Updates Express from 5.1.0 to 5.2.1 and http-errors from 2.0.0 to 2.0.1
  • Raises minimum Node.js requirement to 24.12.0 and npm to 11.7.0
  • Refactors test suite for Express 5.x compatibility by migrating from app._router.stack with regexp to app.router.stack with matchers
  • Updates Jest CLI import to use @jest/core instead of deprecated jest-cli pattern

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Adds engine requirements (Node >=24.12.0, npm >=11.7.0) and updates express, http-errors versions
package-lock.json Updates dependency tree with new package versions and transitive dependencies
bin/testApp.js Modernizes Jest CLI usage by importing runCLI from @jest/core instead of jest-cli
tests/mount.test.js Refactors route detection for Express 5.x compatibility with new routeExists helper function using matchers; updates TinyNode references to TinyPen
.github/workflows/cd_prod.yaml Updates CI Node.js version from 22 to 24
.github/workflows/cd_dev.yaml Updates CI Node.js version from 22 to 24

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@cubap cubap left a comment

Choose a reason for hiding this comment

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

local tests passing

@cubap cubap merged commit ed4535e into main Dec 18, 2025
3 checks passed
@cubap cubap deleted the 12-17-package-updates branch December 18, 2025 21:17
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.

TinyPEN npm Package Updates

3 participants