Skip to content

Add warning when deploying with end-of-life Node.js versions#1578

Open
colincasey wants to merge 3 commits intomainfrom
ccasey/eol-version-warning
Open

Add warning when deploying with end-of-life Node.js versions#1578
colincasey wants to merge 3 commits intomainfrom
ccasey/eol-version-warning

Conversation

@colincasey
Copy link
Contributor

Summary

  • Adds a warning during build when the resolved Node.js version has reached end-of-life, informing users of the EOL date, currently supported versions, and a link to the support documentation
  • Includes a configurable error (disabled by default) controlled by the IGNORE_EOL_ERROR_NODEJS config var that can be enabled in the future to block builds using EOL versions
  • Adds Node.js version lifecycle data covering all major versions from v0 through v25

Test plan

  • Unit tests cover all support status code paths (supported, EOL warning, EOL error, unknown version)
  • Unit tests verify warning and error message content and formatting
  • Unit tests verify supported versions list format and LTS-only list in error suggestions
  • Integration test testEolVersionWarning verifies EOL warning appears in build output
  • All existing unit tests pass
  • shellcheck passes

Fixes W-21451598

Display a warning during build when the resolved Node.js version has
reached end-of-life, informing users of the EOL date, currently
supported versions, and a link to the support documentation.

Includes a configurable error (disabled by default) controlled by the
IGNORE_EOL_ERROR_NODEJS config var that can be enabled in the future
to block builds using EOL versions.

Fixes W-21451598
@colincasey colincasey self-assigned this Mar 9, 2026
@colincasey colincasey marked this pull request as ready for review March 10, 2026 15:11
@colincasey colincasey requested a review from a team as a code owner March 10, 2026 15:11
When resolving from the inventory, the version is known before
downloading so the EOL check can fail fast without wasting time
on the download. When using NODE_BINARY_URL, the version isn't
known until after install so the check remains post-install.
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