Skip to content

Commit

Permalink
utils() replaces deprecated util._extend()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed May 5, 2024
1 parent b4bc62b commit 8e66e0d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
5 changes: 5 additions & 0 deletions docs/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ <h3>Full version history</h3>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.22.8</th>
<td>2024-05-05</td>
<td><span class="code">utils()</span> replaced deprecated util._extend</td>
</tr>
<tr>
<th scope="row">5.22.7</th>
<td>2024-04-02</td>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<body>
<header class="bg-image-full">
<div class="top-container">
<a href="security.html" class="recommendation">Security advisory:<br>Update to v5.21.7</a>
<a href="security.html" class="recommendation">Security advisory:<br>Update to v5.21.8</a>
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
Expand Down Expand Up @@ -212,7 +212,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">689</div>
<div class="numbers">696</div>
<div class="title">Dependents</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8e66e0d

Please sign in to comment.