v7.0.4
Added 1
- Start .ts apps with Node.js native type stripping when bun is not installed (Node.js >= 22.18 / 23.6, --experimental-strip-types auto-injected on 22.6+) with ts-node fallback now resolved from the app's own dependencies
Changed 1
- Pin OpenTelemetry package versions in pm2 install-otel and re-emit legacy HTTP span tags (http.method, http.status_code, http.target) dropped by @opentelemetry/instrumentation-http >= 0.220
Fixed 7
- Fix pm2 start --container / --container --dist crashing with Cannot find module due to wrong require depth in Containerizer.js
- Bump js-yaml 4.3.0 → 4.3.1
- Fix overlapping reloads colliding on the _old_<pm_id> slot and orphaning a cluster worker by refusing a reload while one is in progress
- Ignore stale exit events from a replaced process to fix double start on Windows with shutdown_with_message
- Fix retrying in NaNms kill log and ~1ms poll spam when kill_retry_time is unset by falling back to KILL_RETRY_TIME constant (100ms, overridable via PM2_KILL_RETRY_TIME)
- Fix pm2 start/restart RPC hanging forever when a cluster worker dies before its online event by having executeApp conclude on exit-before-online
- Surface the daemon's actual error in CLI output instead of masking everything as Process not found
Removed 1
- Remove dead code including promise.min.js polyfill, IsAbsolute.js, unused Java/Ruby Dockerfile templates, and always-false win64 platform checks
From pm2
7.0.4
Features
- Start
.tsapps with Node.js native type stripping when bun is not installed (Node.js >= 22.18 / 23.6,--experimental-strip-typesauto-injected on 22.6+);ts-nodefallback now resolved from the app's own dependencies
Bug Fixes
- Fix
pm2 start --container/--container --distcrashing withCannot find module— wrong require depth inContainerizer.jsfrom the v7 promptly internalization - Bump
js-yaml4.3.0 → 4.3.1 - Fix overlapping reloads colliding on the
_old_<pm_id>slot and orphaning a cluster worker — a reload is now refused while one is in progress #6129 - Ignore stale exit events from a replaced process — fixes double start on Windows with
shutdown_with_message#6142 - Fix
retrying in NaNmskill log and ~1ms poll spam whenkill_retry_timeis unset — fallback toKILL_RETRY_TIMEconstant (100ms,PM2_KILL_RETRY_TIMEoverridable) - Fix
pm2 start/restartRPC hanging forever when a cluster worker dies before itsonlineevent (badnode_args, boot OOM) — executeApp now concludes on exit-before-online - Surface the daemon's actual error in CLI output instead of masking everything as
Process not found - Pin OpenTelemetry package versions in
pm2 install-oteland re-emit legacy HTTP span tags (http.method,http.status_code,http.target) dropped by@opentelemetry/instrumentation-http
= 0.220
Core Refactor
- Remove dead code:
promise.min.jspolyfill (nativePromise),IsAbsolute.js(nativepath.isAbsolute), unused Java/Ruby Dockerfile templates, always-falsewin64platform checks