Skip to content

Commit 5256588

Browse files
system() updated Mac mopdel numbers (mac OS)
1 parent 91e1acf commit 5256588

5 files changed

Lines changed: 44 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
9191

9292
| Version | Date | Comment |
9393
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
94+
| 5.31.2 | 2026-03-03 | `system()` updated Mac mopdel numbers (mac OS) |
9495
| 5.31.1 | 2026-02-17 | `docs` updated (security advisory) |
9596
| 5.31.0 | 2026-02-15 | `diskLayout()` added smartmontools support (macOS), `versions()` command injection issue (linux) |
9697
| 5.30.8 | 2026-02-14 | `wifiNetworks()` fixed CWE-78 command injection issue (linux) |

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
## The Systeminformation Project
3232

3333
This is amazing. Started as a small project just for myself, it now has > 19,000
34-
lines of code, > 700 versions published, up to 20 mio downloads per month, > 480
34+
lines of code, > 700 versions published, up to 20 mio downloads per month, > 490
3535
mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
3636
who contributed to this project!
3737

@@ -163,6 +163,7 @@ si.cpu()
163163

164164
(last 7 major and minor version releases)
165165

166+
- Version 5.31.0: `diskLayout()` added smartmontools support (macOS)
166167
- Version 5.30.0: `processes()` added user (windows) - needed to be reverted
167168
- Version 5.29.0: `osInfo()` added OS code name (windows)
168169
- Version 5.28.0: `cpuTemperature()` added suppurt for macos-temperature-sensor (macOS)

docs/history.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ <h3>Full version history</h3>
5757
</tr>
5858
</thead>
5959
<tbody>
60+
<tr>
61+
<th scope="row">5.31.2
62+
</th>
63+
<td>2026-03-03</td>
64+
<td><span class="code">system()</span> updated Mmac model numbers (macOS)</td>
65+
</tr>
6066
<tr>
6167
<th scope="row">5.31.1
6268
</th>

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@
166166
<body>
167167
<header class="bg-image-full">
168168
<div class="top-container">
169-
<a href="security.html" class="recommendation">Security advisory:<br>Update to v5.31.1</a>
169+
<a href="security.html" class="recommendation">Security advisory:<br>Update to v5.31.0</a>
170170
<img class="logo" src="assets/logo.png" alt="logo">
171171
<div class="title">systeminformation</div>
172172
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
173-
<div class="version">New Version: <span id="version">5.31.0</span></div>
173+
<div class="version">New Version: <span id="version">5.31.1</span></div>
174174
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
175175
</div>
176176
<div class="down">
@@ -212,7 +212,7 @@
212212
<div class="title">Downloads last month</div>
213213
</div>
214214
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
215-
<div class="numbers">977</div>
215+
<div class="numbers">995</div>
216216
<div class="title">Dependents</div>
217217
</div>
218218
</div>

lib/util.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,38 @@ function semverCompare(v1, v2) {
14011401

14021402
function getAppleModel(key) {
14031403
const appleModelIds = [
1404+
{
1405+
key: 'Mac17,2',
1406+
name: 'MacBook',
1407+
size: '14-inch',
1408+
processor: 'M5',
1409+
year: '2025',
1410+
additional: ''
1411+
},
1412+
{
1413+
key: 'Mac16,13',
1414+
name: 'MacBook Air',
1415+
size: '15-inch',
1416+
processor: 'M4',
1417+
year: '2025',
1418+
additional: ''
1419+
},
1420+
{
1421+
key: 'Mac16,12',
1422+
name: 'MacBook Air',
1423+
size: '13-inch',
1424+
processor: 'M4',
1425+
year: '2025',
1426+
additional: ''
1427+
},
1428+
{
1429+
key: 'Mac15,13',
1430+
name: 'MacBook Air',
1431+
size: '15-inch',
1432+
processor: 'M3',
1433+
year: '2024',
1434+
additional: ''
1435+
},
14041436
{
14051437
key: 'Mac15,12',
14061438
name: 'MacBook Air',

0 commit comments

Comments
 (0)