matterbridge 3.2.1-dev-20250806-84c8020 → 3.2.1-dev-20250806-8a31d91

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
@@ -16,9 +16,10 @@ If you like this project and find it useful, please consider giving it a star on
16
16
  - [platform]: Added deviceName validation in registerDevice method.
17
17
  - [platform]: Added serialNumber validation in registerDevice method.
18
18
  - [endpoint]: Removed static MatterbridgeEndpoint.bridgeMode.
19
- - [endpoint]: Removed BasicInformationServer remap to BridgedDeviceBasicInformationServer.
20
- - [platform]: Added BasicInformationServer remap to BridgedDeviceBasicInformationServer when needed.
19
+ - [endpoint]: Removed BasicInformationServer remap to BridgedDeviceBasicInformationServer in MatterbridgeEndpoint.
20
+ - [platform]: Added BasicInformationServer remap to BridgedDeviceBasicInformationServer in Platform when needed.
21
21
  - [frontend]: Bumped `frontend` version to 2.7.3.
22
+ - [frontend]: Added frontend version to MatterbridgeInformation. It triggers the page reload message on the Home page when updated.
22
23
 
23
24
  ### Changed
24
25
 
@@ -29,6 +30,8 @@ If you like this project and find it useful, please consider giving it a star on
29
30
  ### Fixed
30
31
 
31
32
  - [frontend]: Fixed pointer on Discord icon.
33
+ - [deepcopy]: Fixed Date test case to use a specific UTC timestamp. It was failing on different timezones.
34
+ - [frontend]: Fixed new Matterbridge version message on the Home page.
32
35
 
33
36
  <a href="https://www.buymeacoffee.com/luligugithub">
34
37
  <img src="bmc-button.svg" alt="Buy me a coffee" width="80">
package/dist/frontend.js CHANGED
@@ -46,10 +46,18 @@ export class Frontend extends EventEmitter {
46
46
  this.port = port;
47
47
  this.log.debug(`Initializing the frontend ${hasParameter('ssl') ? 'https' : 'http'} server on port ${YELLOW}${this.port}${db}`);
48
48
  const uploadDir = path.join(this.matterbridge.matterbridgeDirectory, 'uploads');
49
- await fs.mkdir(uploadDir, { recursive: true });
50
49
  const upload = multer({ dest: uploadDir });
51
50
  this.expressApp = express();
52
51
  this.expressApp.use(express.static(path.join(this.matterbridge.rootDirectory, 'frontend/build')));
52
+ try {
53
+ this.log.debug(`Reading frontend package.json...`);
54
+ const frontendJson = await fs.readFile(path.join(this.matterbridge.rootDirectory, 'frontend/package.json'), 'utf8');
55
+ this.matterbridge.matterbridgeInformation.frontendVersion = JSON.parse(frontendJson)?.version;
56
+ this.log.debug(`Frontend version ${CYAN}${this.matterbridge.matterbridgeInformation.frontendVersion}${db}`);
57
+ }
58
+ catch (error) {
59
+ this.log.error(`Failed to read frontend package.json: ${error instanceof Error ? error.message : String(error)}`);
60
+ }
53
61
  if (!hasParameter('ssl')) {
54
62
  try {
55
63
  this.log.debug(`Creating HTTP server...`);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.944b63c3.css",
4
- "main.js": "./static/js/main.13aebafa.js",
4
+ "main.js": "./static/js/main.b4cc32cf.js",
5
5
  "static/js/453.d855a71b.chunk.js": "./static/js/453.d855a71b.chunk.js",
6
6
  "static/media/roboto-latin-700-normal.woff2": "./static/media/roboto-latin-700-normal.c4d6cab43bec89049809.woff2",
7
7
  "static/media/roboto-latin-500-normal.woff2": "./static/media/roboto-latin-500-normal.599f66a60bdf974e578e.woff2",
@@ -77,11 +77,11 @@
77
77
  "static/media/roboto-greek-ext-300-normal.woff": "./static/media/roboto-greek-ext-300-normal.60729cafbded24073dfb.woff",
78
78
  "index.html": "./index.html",
79
79
  "main.944b63c3.css.map": "./static/css/main.944b63c3.css.map",
80
- "main.13aebafa.js.map": "./static/js/main.13aebafa.js.map",
80
+ "main.b4cc32cf.js.map": "./static/js/main.b4cc32cf.js.map",
81
81
  "453.d855a71b.chunk.js.map": "./static/js/453.d855a71b.chunk.js.map"
82
82
  },
83
83
  "entrypoints": [
84
84
  "static/css/main.944b63c3.css",
85
- "static/js/main.13aebafa.js"
85
+ "static/js/main.b4cc32cf.js"
86
86
  ]
87
87
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="./"><link rel="icon" href="./matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="./manifest.json"/><script defer="defer" src="./static/js/main.13aebafa.js"></script><link href="./static/css/main.944b63c3.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="./"><link rel="icon" href="./matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="./manifest.json"/><script defer="defer" src="./static/js/main.b4cc32cf.js"></script><link href="./static/css/main.944b63c3.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>