Skip to content

Commit d6161ec

Browse files
authored
Merge pull request #214 from Luligu/dev
Release 2.1.0
2 parents a1e3167 + 5fa1ee7 commit d6161ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4380
-4859
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ matterstorage
4343
matterstorage.backup
4444
coverage
4545
TODO.md
46-
test
46+
test
47+
eveHistory.test.ts
48+
eveHistoryBehavior.ts
49+
eveHistoryCluster.ts

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,8 @@ matterstorage
205205
matterstorage.backup
206206

207207
TODO.md
208-
CODEOWNERS
208+
CODEOWNERS
209+
210+
eveHistory.test.ts
211+
eveHistoryBehavior.ts
212+
eveHistoryCluster.ts

CHANGELOG.md

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,43 @@ Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord
1515

1616
### Breaking Changes
1717

18-
Starting from v. 2.0.0 Matterbridge is running only in mode edge (no parameter needed).
19-
The legacy old api have been removed.
18+
Starting from v. 2.0.0 Matterbridge is running only in mode edge (no parameter needed and no badge in the frontend).
2019

21-
The frontend has a new dark and light mode. The dark mode is now the default mode.
22-
It is possible to change the mode (Classic, Dark or Light) in Settings, Matterbridge settings.
20+
With this release v. 2.1.0, the legacy old api of matter.js have been completely removed from Matterbridge and from all plugins.
21+
22+
For this reason there is no compatibility for old versions of the plugins.
23+
24+
You need to update all plugins you use and Matterbridge in the same moment.
25+
26+
I suggest to first update all plugins without restarting and then to update Matterbridge so when it restarts, all versions will be the latest.
27+
28+
Compatibility list:
29+
matterbridge-shelly v. 1.1.5
30+
matterbridge-zigbee2mqtt v. 2.4.4
31+
matterbridge-somfy-tahoma v. 1.2.3
32+
matterbridge-hass v. 0.0.8
33+
34+
## [2.1.0] - 2025-02-02
35+
36+
### Added
37+
38+
- [matterbridge]: Add MatterbridgeModeSelectServer.
39+
- [matterbridge]: Add MatterbridgeSwitchServer.
40+
- [frontend]: Add api/advertise to turn on matter advertising in bridge mode.
41+
- [frontend]: Frontend v.2.4.0.
42+
- [matterbridge]: Added deep memory scan details.
43+
44+
### Changed
45+
46+
- [package]: Removed legacy imports.
47+
- [package]: Update dependencies.
48+
- [package]: Update matter.js to 0.12.0.
49+
- [package]: Update matter.js to 0.12.1.
50+
- [package]: Update matter.js to 0.12.2.
51+
52+
<a href="https://www.buymeacoffee.com/luligugithub">
53+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
54+
</a>
2355

2456
## [2.0.0] - 2025-01-20
2557

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ So far is the only controller supporting some Matter 1.2 and 1.3 device type:
414414

415415
Electrical measurements:
416416

417-
- electrical measurements from EveHistoryCluster (used in Matterbridge plugins)
417+
- electrical measurements from EveHistoryCluster (used in old Matterbridge plugins)
418418
- electricalSensor code 0x0510 with clusters: ElectricalPowerMeasurement and ElectricalEnergyMeasurement
419419

420420
Other supported cluster:

docker/Dockerfile.dev

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,68 @@ WORKDIR /app
44
RUN apt-get update && \
55
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git && \
66
apt-get clean && \
7-
npm install -g npm@latest && \
87
node -v && \
98
npm -v
109

1110

1211

1312
FROM base AS builder
1413
WORKDIR /app
15-
COPY ./package.json ./package-lock.json ./tsconfig.json ./.npmignore ./
14+
COPY ./package.json ./package-lock.json ./tsconfig.json ./tsconfig.production.json ./.npmignore ./
1615
COPY ./src ./src
1716
COPY ./frontend/build ./frontend/build
18-
RUN npm ci && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm link && npm shrinkwrap && npm pack
17+
RUN npm ci && npm run build && npm link
18+
19+
WORKDIR /matterbridge-test
20+
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-test.git .
21+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
22+
23+
WORKDIR /matterbridge-example-accessory-platform
24+
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-accessory-platform.git .
25+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
26+
27+
WORKDIR /matterbridge-example-dynamic-platform
28+
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-dynamic-platform.git .
29+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
1930

2031
WORKDIR /matterbridge-zigbee2mqtt
2132
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-zigbee2mqtt.git .
22-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
33+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
2334

2435
WORKDIR /matterbridge-somfy-tahoma
2536
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-somfy-tahoma.git .
26-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
37+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
2738

2839
WORKDIR /matterbridge-shelly
2940
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git .
30-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
41+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
3142

3243
WORKDIR /matterbridge-hass
3344
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-hass.git .
34-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
35-
36-
WORKDIR /matterbridge-example-accessory-platform
37-
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-accessory-platform.git .
38-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
39-
40-
WORKDIR /matterbridge-example-dynamic-platform
41-
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-dynamic-platform.git .
42-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
45+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
4346

4447
WORKDIR /matterbridge-eve-door
4548
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-door.git .
46-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
49+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
4750

4851
WORKDIR /matterbridge-eve-motion
4952
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-motion.git .
50-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
53+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
5154

5255
WORKDIR /matterbridge-eve-energy
5356
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-energy.git .
54-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
57+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
5558

5659
WORKDIR /matterbridge-eve-room
5760
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-room.git .
58-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
61+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
5962

6063
WORKDIR /matterbridge-eve-weather
6164
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-weather.git .
62-
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
65+
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
6366

67+
WORKDIR /app
68+
RUN npm run cleanBuildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack
6469

6570

6671
FROM node:22-bookworm-slim AS release
@@ -73,6 +78,7 @@ COPY --from=builder /matterbridge-zigbee2mqtt/*.tgz .
7378
COPY --from=builder /matterbridge-somfy-tahoma/*.tgz .
7479
COPY --from=builder /matterbridge-shelly/*.tgz .
7580
COPY --from=builder /matterbridge-hass/*.tgz .
81+
COPY --from=builder /matterbridge-test/*.tgz .
7682
COPY --from=builder /matterbridge-example-accessory-platform/*.tgz .
7783
COPY --from=builder /matterbridge-example-dynamic-platform/*.tgz .
7884
COPY --from=builder /matterbridge-eve-door/*.tgz .

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.6df4ebe4.js",
4+
"main.js": "./static/js/main.26dbf9b9.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.6df4ebe4.js.map": "./static/js/main.6df4ebe4.js.map",
64+
"main.26dbf9b9.js.map": "./static/js/main.26dbf9b9.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.6df4ebe4.js"
69+
"static/js/main.26dbf9b9.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.6df4ebe4.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.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>

frontend/build/static/js/main.6df4ebe4.js renamed to frontend/build/static/js/main.26dbf9b9.js

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

frontend/build/static/js/main.6df4ebe4.js.map renamed to frontend/build/static/js/main.26dbf9b9.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)