From dc2c366847dee473685f999d16ad93fa012fe8ba Mon Sep 17 00:00:00 2001 From: Unitech Date: Wed, 3 Oct 2018 13:21:15 +0200 Subject: [PATCH] pm2@3.2.0 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ lib/API.js | 4 ++-- package.json | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4673f17..fe2d62ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ + +## 3.2.0 (3/10/18) + +### Features + +- package.json version field retrieval and display in pm2 ls, pm2 show, pm2 monit +- pm2 internal configuration system via `pm2 set pm2:key value`, attached to pm2.user_conf +- add the .user field (CLI + Config) to set the user to start the application with +- add the .time field (CLI + Config) to enable default logs date prefix +- max_memory_restart now triggers a reload +- pm2 env command to display the environment the application is running with +- exponential backoff restart delay via `--exp-backoff-restart-delay ` with reset mechanism +- new timing library on PM2 daemon (increase log througput, reduce CPU usage and memory usage) +- better user management system with username resolution to uid +- websocket default switch for pm2 plus +- new module management system (`pm2 package `, `pm2 publish `, `pm2 install `) + +### Fix + +- @pm2/io 2.4 (restart > 10.0) +- restart behavior tested +- fix module version parsing +- module system refactoring (TAR + NPM) +- fix watch_delay in config file + ## 3.1.3 (20/09/18) ### Features diff --git a/lib/API.js b/lib/API.js index 17a8c3b2..74b058ae 100644 --- a/lib/API.js +++ b/lib/API.js @@ -104,6 +104,8 @@ class API { process.stdout._handle.setBlocking(true); } + this.user_conf = Configuration.getSync('pm2') + this.Client = new Client({ pm2_home: that.pm2_home, conf: this._conf, @@ -113,8 +115,6 @@ class API { machine_name: this.machine_name }); - this.user_conf = Configuration.getSync('pm2') - this.gl_interact_infos = null; this.gl_is_km_linked = false; diff --git a/package.json b/package.json index faf4c952..88743d6f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pm2", "preferGlobal": true, - "version": "3.1.3", + "version": "3.2.0", "engines": { "node": ">=4.0.0" },