mb-service-linux 2.0.1-dev-20260701-3d243ae → 2.0.1

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.
package/CHANGELOG.md CHANGED
@@ -24,7 +24,7 @@ If you like this project and find it useful, please consider giving it a star on
24
24
 
25
25
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
26
26
 
27
- ## [2.0.1] - Dev branch
27
+ ## [2.0.1] - 2026-07-01
28
28
 
29
29
  ### Added
30
30
 
package/README.md CHANGED
@@ -83,7 +83,7 @@ mb-service enable
83
83
  mb-service start
84
84
  ```
85
85
 
86
- When using Bun, create and manage the user-owned service without sudo:
86
+ When using Bun, create and manage the user-owned service without sudo (--bun is mandatory if you have also Node.js installed):
87
87
 
88
88
  ```bash
89
89
  bunx --bun mb-service create
package/dist/module.js CHANGED
@@ -1,7 +1,13 @@
1
1
  import { execFileSync, spawnSync } from 'node:child_process';
2
- import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
2
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
3
3
  const HAS_BUN_GLOBAL = typeof Bun !== 'undefined';
4
- const MB_SERVICE_VERSION = '2.0.0';
4
+ const MB_SERVICE_VERSION = getPackageVersion(JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')));
5
+ function getPackageVersion(packageJson) {
6
+ if (typeof packageJson !== 'object' || packageJson === null || !('version' in packageJson) || typeof packageJson.version !== 'string') {
7
+ throw new Error('Could not determine mb-service version from package.json.');
8
+ }
9
+ return packageJson.version;
10
+ }
5
11
  export function isBun() {
6
12
  return HAS_BUN_GLOBAL || typeof process?.versions?.bun === 'string';
7
13
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mb-service-linux",
3
- "version": "2.0.1-dev-20260701-3d243ae",
3
+ "version": "2.0.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "mb-service-linux",
9
- "version": "2.0.1-dev-20260701-3d243ae",
9
+ "version": "2.0.1",
10
10
  "license": "Apache-2.0",
11
11
  "bin": {
12
12
  "mb-service": "bin/mb-service"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mb-service-linux",
3
- "version": "2.0.1-dev-20260701-3d243ae",
3
+ "version": "2.0.1",
4
4
  "description": "Matterbridge service command line interface",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",