diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0b4b990..3b6e3bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
+| 5.22.8 | 2024-05-05 | `utils()` replaces deprecated util._extend() |
| 5.22.7 | 2024-04-02 | `battery()` fixed designed capacity issue (windows) |
| 5.22.6 | 2024-03-20 | `networkInterfaces()` fixed speed of not connected interfaces (windows) |
| 5.22.5 | 2024-03-19 | `wifiConnections()` fixed formatting bssid (macOS) |
diff --git a/docs/history.html b/docs/history.html
index 8019400..9f94a86 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -57,6 +57,11 @@
+
+ | 5.22.8 |
+ 2024-05-05 |
+ utils() replaced deprecated util._extend |
+
| 5.22.7 |
2024-04-02 |
diff --git a/docs/index.html b/docs/index.html
index 5da00ff..4be5ad4 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -166,7 +166,7 @@
diff --git a/lib/util.js b/lib/util.js
index 6701540..a7f11fe 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -52,7 +52,7 @@ const execOptsWin = {
windowsHide: true,
maxBuffer: 1024 * 20000,
encoding: 'UTF-8',
- env: util._extend({}, process.env, { LANG: 'en_US.UTF-8' })
+ env: Object.assign({}, process.env, { LANG: 'en_US.UTF-8' })
};
function toInt(value) {
@@ -398,7 +398,7 @@ function powerShellStart() {
windowsHide: true,
maxBuffer: 1024 * 20000,
encoding: 'UTF-8',
- env: util._extend({}, process.env, { LANG: 'en_US.UTF-8' })
+ env: Object.assign({}, process.env, { LANG: 'en_US.UTF-8' })
});
if (_psChild && _psChild.pid) {
_psPersistent = true;
@@ -476,7 +476,7 @@ function powerShell(cmd) {
windowsHide: true,
maxBuffer: 1024 * 20000,
encoding: 'UTF-8',
- env: util._extend({}, process.env, { LANG: 'en_US.UTF-8' })
+ env: Object.assign({}, process.env, { LANG: 'en_US.UTF-8' })
});
if (child && !child.pid) {