Skip to content

Commit 338f34c

Browse files
authored
Merge pull request #221 from Luligu/dev
Release 2.1.5
2 parents bf3f9be + a20618a commit 338f34c

39 files changed

+1836
-717
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ matterbridge-zigbee2mqtt v. 2.4.4
3333
matterbridge-somfy-tahoma v. 1.2.3
3434
matterbridge-hass v. 0.0.8
3535

36+
## [2.1.5] - 2025-02-11
37+
38+
### Added
39+
40+
- [frontend]: Frontend v.2.4.1.
41+
- [frontend]: Optimized rendering of all pages.
42+
- [frontend]: Added cpuUsed, rss and heapUsed to SystemInformation.
43+
- [frontend]: Added UiProvider.
44+
- [frontend]: Added wssSendCpuUpdate, wssSendMemoryUpdate and wssSendSnackbarMessage.
45+
- [docker]: Added health check to docker images. See README-DOCKER.md with the updated configuration.
46+
47+
### Changed
48+
49+
- [matterbridge]: Calls getNpmPackageVersion() instead of npm to get latest version to optimize memory and cpu usage.
50+
- [matterbridge]: Memory optimization on MatterbridgeEndpoint.
51+
52+
### Fixed
53+
54+
- [matterbridge]: Refactor shutdown sequences for reset and factory reset.
55+
- [matterbridge]: Refactor reset devices adding a wait of 1 sec to allow matter to deliver all messages before shutting down.
56+
57+
<a href="https://www.buymeacoffee.com/luligugithub">
58+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
59+
</a>
60+
3661
## [2.1.4] - 2025-02-07
3762

3863
### Added

README-DOCKER.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ services:
7171
volumes:
7272
- "/home/<USER>/Matterbridge:/root/Matterbridge" # Mounts the Matterbridge plugin directory
7373
- "/home/<USER>/.matterbridge:/root/.matterbridge" # Mounts the Matterbridge storage directory
74+
healthcheck:
75+
test: curl --fail localhost:8283/health || exit 1
76+
interval: 60s
77+
retries: 5
78+
start_period: 60s
79+
timeout: 10s
7480
```
7581

7682
Replace USER with your user name (i.e. ubuntu or pi).

docker/Dockerfile.dev

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ RUN npm run cleanBuildProduction && npm pkg delete devDependencies scripts types
7171
FROM node:22-bookworm-slim AS release
7272
WORKDIR /app
7373

74+
RUN apt-get update && \
75+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl && \
76+
apt-get clean && \
77+
rm -rf /var/lib/apt/lists/*
78+
7479
COPY --from=builder /app/*.tgz .
7580
RUN npm install -g npm@latest && npm install -g --omit=dev *.tgz && rm *.tgz
7681

docker/Dockerfile.main

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ COPY --from=builder /app/node_modules ./node_modules
2121
COPY --from=builder /app/frontend/build ./frontend/build
2222
RUN npm link
2323

24+
# Install curl for docker health
25+
RUN apt-get update && \
26+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl && \
27+
apt-get clean && \
28+
rm -rf /var/lib/apt/lists/*
29+
2430
# Install Matterbridge plugins
25-
RUN npm install -g --omit=dev matterbridge-example-accessory-platform
26-
RUN npm install -g --omit=dev matterbridge-example-dynamic-platform
2731
RUN npm install -g --omit=dev matterbridge-zigbee2mqtt
2832
RUN npm install -g --omit=dev matterbridge-somfy-tahoma
2933
RUN npm install -g --omit=dev matterbridge-shelly
3034
RUN npm install -g --omit=dev matterbridge-hass
35+
RUN npm install -g --omit=dev matterbridge-test
36+
RUN npm install -g --omit=dev matterbridge-example-accessory-platform
37+
RUN npm install -g --omit=dev matterbridge-example-dynamic-platform
3138
RUN npm install -g --omit=dev matterbridge-eve-door
3239
RUN npm install -g --omit=dev matterbridge-eve-motion
3340
RUN npm install -g --omit=dev matterbridge-eve-energy

frontend/build/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
33
"main.css": "./static/css/main.cf25d33e.css",
4-
"main.js": "./static/js/main.26dbf9b9.js",
4+
"main.js": "./static/js/main.cd192588.js",
55
"static/js/453.abd36b29.chunk.js": "./static/js/453.abd36b29.chunk.js",
66
"static/media/roboto-latin-700-normal.woff2": "./static/media/roboto-latin-700-normal.4535474e1cf8598695ad.woff2",
77
"static/media/roboto-latin-500-normal.woff2": "./static/media/roboto-latin-500-normal.7077203b1982951ecf76.woff2",
@@ -61,11 +61,11 @@
6161
"static/media/roboto-greek-ext-400-normal.woff": "./static/media/roboto-greek-ext-400-normal.16eb83b4a3b1ea994243.woff",
6262
"index.html": "./index.html",
6363
"main.cf25d33e.css.map": "./static/css/main.cf25d33e.css.map",
64-
"main.26dbf9b9.js.map": "./static/js/main.26dbf9b9.js.map",
64+
"main.cd192588.js.map": "./static/js/main.cd192588.js.map",
6565
"453.abd36b29.chunk.js.map": "./static/js/453.abd36b29.chunk.js.map"
6666
},
6767
"entrypoints": [
6868
"static/css/main.cf25d33e.css",
69-
"static/js/main.26dbf9b9.js"
69+
"static/js/main.cd192588.js"
7070
]
7171
}

frontend/build/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.26dbf9b9.js"></script><link href="./static/css/main.cf25d33e.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.cd192588.js"></script><link href="./static/css/main.cf25d33e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

frontend/build/static/js/main.26dbf9b9.js

Lines changed: 0 additions & 115 deletions
This file was deleted.

frontend/build/static/js/main.26dbf9b9.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/build/static/js/main.cd192588.js

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)