You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warn when deploying with End-of-Life Node.js versions (#1621)
* feat: display EOL warning and track metric when deploying with unsupported Node.js
* feat: add eol field to resolve-version JSON output
* chore: rebuild resolve-version binary and update changelog
* test: add EOL warning assertions to hatchet specs for all Node.js versions
* fix: add node_version_eol metric assertion to functional build metadata tests
* refactor: move EOL check into Resolution struct
Move the EOL boolean from inline JSON serialization into the Resolution
struct so tests verify actual production logic instead of re-deriving it.
* test: match full EOL warning in hatchet specs and rely on baseline blocks for non-EOL
* fix: use assertCapturedSuccessWithWarnings for tests using EOL Node versions
Functional tests using EOL Node fixtures now produce stderr output from
the EOL warning. Switch from assertCapturedSuccess (which requires empty
stderr) to assertCapturedSuccessWithWarnings (which only checks exit code).
* chore: rebuild resolve-version binary after rebase onto main
* Update test/run-general
Co-authored-by: Richard Schneeman <richard.schneeman+foo@gmail.com>
Signed-off-by: Colin Casey <casey.colin@gmail.com>
---------
Signed-off-by: Colin Casey <casey.colin@gmail.com>
Co-authored-by: Richard Schneeman <richard.schneeman+foo@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
- Updated resolve-version binary to use shared `nodejs-data` crate. ([#1617](https://github.com/heroku/heroku-buildpack-nodejs/pull/1617))
7
7
- Improve resolve-version logic for detecting highest LTS to use when a wide version range is requested. ([#1618](https://github.com/heroku/heroku-buildpack-nodejs/pull/1618))
8
8
- Default Node.js version is now derived from the `nodejs-data` crate instead of being hardcoded in shell scripts. ([#1620](https://github.com/heroku/heroku-buildpack-nodejs/pull/1620))
9
+
- Warn when deploying with End-of-Life Node.js versions. ([#1621](https://github.com/heroku/heroku-buildpack-nodejs/pull/1621))
0 commit comments