v7.0.2
Added 2
- Show pm2 ls host-metrics line by default
- Add adaptive layout to pm2 ls that picks the widest layout fitting the terminal (full, condensed, or ultra-compact mini)
Changed 4
- Filter pm2 ls host-metrics line to only list network interfaces carrying traffic
- Replace pm2 ls host-metrics mem free with ram usage percentage and add GPU memory/temperature when reported
- Show per-interface network errors/drops in pm2 ls host-metrics line when non-zero
- Replace bundled pm2-sysmonit module and systeminformation with lib/tools/SysMetrics.js for Linux/macOS
Fixed 3
- Fix pm2 serve returning 403 Forbidden on Windows due to traversal guard using hardcoded / separator
- Fix pm2 ls table misalignment when username exceeds user column width caused by cli-tableau's truncate() miscounting ANSI bytes
- Fix long status lines wrapping on narrow terminals by making Common.printOut ANSI-aware and cropping output to terminal width
Removed 1
- Remove old vizion module and 3 submodules
Security 3
- Bump js-yaml 4.1.1 to 4.3.0 to fix quadratic-complexity DoS in merge-key handling
- Bump ws 8.20.0 to 8.21.0 to fix uninitialized-memory disclosure and tiny-fragment DoS
- Bump @pm2/js-api 0.8.0 to 0.8.1 to pull in patched ws@8.21.0
From pm2
7.0.2
Bug Fixes
- Fix
pm2 servereturning 403 Forbidden on Windows — traversal guard used hardcoded/separator #6109 - Fix
pm2 lstable misalignment when a username exceeds theusercolumn width — cli-tableau'struncate()miscounts ANSI bytes, leaking bold into thewatchingcolumn - Fix long status lines (e.g.
Applying action … on app […]) wrapping on narrow terminals —Common.printOutnow ANSI-aware crops single-line TTY output to terminal width (piped output unaffected)
Features
pm2 lshost-metrics line now shown by defaultpm2 update)pm2 lsadaptive layout: picks the widest layout that fits the terminal — full → condensed → new ultra-compactmini(id · name · status · cpu · mem) — and caps thenamecolumn so long names can't overflow the tablepm2 lshost-metrics line only lists network interfaces carrying traffic (hides idle utun/awdl/bridge/anpi/unused en*)pm2 lshost-metrics line: replacedmem freewithram usage(%), added GPU memory/temperature when reported, per-interface network errors/drops shown when non-zero
Core Refactor
- Drop old vizion module, refactor to support only git and drop 3 submodules
- Replace the bundled
pm2-sysmonitmodule andsysteminformationwithlib/tools/SysMetrics.js(Linux/macOS);pm2 slist/getSystemDataand the Docker metrics path now read this collector. Covered bytest/programmatic/sysmetrics.mocha.js
Security
- Bump
js-yaml4.1.1 → 4.3.0 — fixes quadratic-complexity DoS in merge-key handling (GHSA-h67p-54hq-rp68) #6122 - Bump
ws8.20.0 → 8.21.0 — fixes uninitialized-memory disclosure and tiny-fragment DoS (GHSA-58qx-3vcg-4xpx, GHSA-96hv-2xvq-fx4p) #6116 - Bump
@pm2/js-api0.8.0 → 0.8.1, pulling in patchedws@8.21.0(its transitivewswas pinned to the vulnerable 7.x). Production deps are now advisory-free (npm audit --omit=devclean)