Skip to content

Upgrade to Node 22 as 20 is EOL#355

Merged
cigamit merged 1 commit into
mainfrom
node22
May 23, 2026
Merged

Upgrade to Node 22 as 20 is EOL#355
cigamit merged 1 commit into
mainfrom
node22

Conversation

@cigamit
Copy link
Copy Markdown
Contributor

@cigamit cigamit commented May 22, 2026

Upgrade to Node 22 as 20 is EOL
Upgrade http-proxy-middleware to support v22 (new HPM version had several breaking changes to address)

Upgrade http-proxy-middleware to support v22 (new HPM version had several breaking changes to address)
@cigamit cigamit requested a review from TheWitness May 22, 2026 04:37
@cigamit cigamit self-assigned this May 22, 2026
Copilot AI review requested due to automatic review settings May 22, 2026 04:37
@cigamit cigamit added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 22, 2026
Copy link
Copy Markdown
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

Upgrades the AWX UI development stack to Node.js 22 (replacing Node 20, now EOL) and updates the dev-server proxy integration to work with http-proxy-middleware v4’s API/packaging changes.

Changes:

  • Switch Rocky Linux Node.js module from nodejs:20 to nodejs:22 in the container build/dev images and ensure npm is installed where needed.
  • Upgrade http-proxy-middleware from 3.0.5 to 4.0.0 and refactor the dev proxy wiring to use createProxyMiddleware (ESM-safe import).
  • Update UI Node engine requirement to Node 22.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/ansible/roles/dockerfile/templates/Dockerfile.j2 Updates container Node.js module to 22 and installs npm for build/dev images.
awx/ui/src/setupProxy.js Refactors proxy setup to accept injected createProxyMiddleware and use v4 options shape.
awx/ui/scripts/start.js Dynamically imports http-proxy-middleware and passes createProxyMiddleware into dev server config.
awx/ui/config/webpackDevServer.config.js Extends dev server config API to forward createProxyMiddleware into setupProxy.
awx/ui/package.json Bumps Node engine floor to Node 22 and upgrades http-proxy-middleware to v4.
awx/ui/package-lock.json Updates lockfile for http-proxy-middleware v4 and related dependency changes.
Files not reviewed (1)
  • awx/ui/package-lock.json: Language not supported

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

Comment thread awx/ui/package.json
Comment thread awx/ui/scripts/start.js
@cigamit cigamit merged commit d6209f3 into main May 23, 2026
1 check passed
@cigamit cigamit deleted the node22 branch May 23, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Development

Successfully merging this pull request may close these issues.

3 participants