@matterbridge/thread 3.10.9-dev-20260904-cbaddbb → 3.10.9-dev-20260906-2a9dc0e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import os from 'node:os';
2
+ import { getBunLatestVersion, getBunVersion, isBun } from '@matterbridge/utils/bun';
2
3
  import { inspectError } from '@matterbridge/utils/error';
3
4
  import { logModuleLoaded } from '@matterbridge/utils/loader';
4
5
  import { excludedInterfaceNamePattern } from '@matterbridge/utils/network';
@@ -15,17 +16,27 @@ export default new WorkerWrapper('SystemCheck', async (worker) => {
15
16
  };
16
17
  if (process.env.NVM_BIN && process.env.NVM_DIR)
17
18
  logSnackBarError("error", `System Check: NVM is a development tool and is not supported in production. Please install node from https://github.com/nodesource/distributions.`, 0, 'error');
18
- const nodeVersion = process.versions.node;
19
- const [versionMajor, versionMinor, versionPatch] = nodeVersion.split('.').map(Number);
20
- worker.logger("debug", `Node.js Version: ${versionMajor}.${versionMinor}.${versionPatch}`);
21
- if (versionMajor === 20 && versionMinor < 19)
22
- logSnackBarError("error", `System Check: Node.js version < 20.19.0 is not supported. Please upgrade to Node.js LTS version (24.x).`, 0, 'error');
23
- if (versionMajor === 22 && versionMinor < 13)
24
- logSnackBarError("error", `System Check: Node.js version < 22.13.0 is not supported. Please upgrade to Node.js LTS version (24.x).`, 0, 'error');
25
- if (versionMajor === 21 || versionMajor === 23 || versionMajor === 25 || versionMajor === 27)
26
- logSnackBarError("error", `System Check: Node.js odd major versions are not supported. Please upgrade to Node.js LTS version (24.x).`, 0, 'error');
27
- if (versionMajor !== 24)
28
- worker.logger("notice", `You are running Node.js ${versionMajor}.${versionMinor}.${versionPatch}. Please consider using the Node.js LTS version (24.x).`);
19
+ if (isBun()) {
20
+ const current = getBunVersion();
21
+ const latest = await getBunLatestVersion();
22
+ worker.logger("info", `You are running Bun version: ${current}`);
23
+ if (current && latest && current !== latest) {
24
+ worker.logger("warn", `Latest Bun version available: ${latest}. You are running an outdated version of Bun.`);
25
+ }
26
+ }
27
+ else {
28
+ const nodeVersion = process.versions.node;
29
+ const [versionMajor, versionMinor, versionPatch] = nodeVersion.split('.').map(Number);
30
+ worker.logger("info", `You are running Node.js version: ${versionMajor}.${versionMinor}.${versionPatch}`);
31
+ if (versionMajor === 20 && versionMinor < 19)
32
+ logSnackBarError("error", `System Check: Node.js version < 20.19.0 is not supported. Please upgrade to Node.js LTS version (24.x).`, 0, 'error');
33
+ if (versionMajor === 22 && versionMinor < 13)
34
+ logSnackBarError("error", `System Check: Node.js version < 22.13.0 is not supported. Please upgrade to Node.js LTS version (24.x).`, 0, 'error');
35
+ if (versionMajor === 21 || versionMajor === 23 || versionMajor === 25 || versionMajor === 27)
36
+ logSnackBarError("error", `System Check: Node.js odd major versions are not supported. Please upgrade to Node.js LTS version (24.x).`, 0, 'error');
37
+ if (versionMajor !== 24)
38
+ worker.logger("notice", `You are running Node.js ${versionMajor}.${versionMinor}.${versionPatch}. Please consider using the Node.js LTS version (24.x).`);
39
+ }
29
40
  const networkInterfaces = os.networkInterfaces();
30
41
  let foundInternal = false;
31
42
  let foundExternal = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/thread",
3
- "version": "3.10.9-dev-20260904-cbaddbb",
3
+ "version": "3.10.9-dev-20260906-2a9dc0e",
4
4
  "description": "Matterbridge thread library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -75,8 +75,8 @@
75
75
  "skipTsconfig": true
76
76
  },
77
77
  "dependencies": {
78
- "@matterbridge/types": "3.10.9-dev-20260904-cbaddbb",
79
- "@matterbridge/utils": "3.10.9-dev-20260904-cbaddbb",
78
+ "@matterbridge/types": "3.10.9-dev-20260906-2a9dc0e",
79
+ "@matterbridge/utils": "3.10.9-dev-20260906-2a9dc0e",
80
80
  "@zip.js/zip.js": "2.10.0",
81
81
  "node-ansi-logger": "3.3.1"
82
82
  }