Skip to content

Commit 6a1b570

Browse files
authored
Release 3.0.5
## [3.0.5] - 2026-02-02 ### Added - [workflow]: Migrated to trusted publishing / OIDC. ### Changed - [package]: Updated dependencies. - [package]: Updated package to automator v. 3.0.4. <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
1 parent abe272f commit 6a1b570

20 files changed

+786
-608
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,31 @@ Dev containers have networking limitations depending on the host OS and Docker s
2626
"name": "Matterbridge Plugin Dev Container",
2727
// Use the pre-built image with Node+TypeScript
2828
"image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:latest",
29+
// Inherit timezone from the host environment (set TZ on the host, e.g. Europe/Paris)
30+
"containerEnv": {
31+
"TZ": "${localEnv:TZ}"
32+
},
2933
// Mount the local matterbridge and node_modules workspace folder to the container's workspace volumes to improve performance
3034
"mounts": [
3135
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
36+
"source=${localWorkspaceFolderBasename}-cache,target=${containerWorkspaceFolder}/.cache,type=volume",
3237
"source=${localWorkspaceFolderBasename}-plugins,target=/home/node/Matterbridge,type=volume",
3338
"source=${localWorkspaceFolderBasename}-storage,target=/home/node/.matterbridge,type=volume",
3439
"source=${localWorkspaceFolderBasename}-cert,target=/home/node/.mattercert,type=volume",
3540
"source=matterbridge,target=/matterbridge,type=volume"
3641
],
42+
// Create the matterbridge Docker network if it doesn't exist (runs on the HOST before the container starts).
43+
"initializeCommand": "docker network inspect matterbridge || docker network create matterbridge",
3744
// On startup, update npm, install and link the dev of matterbridge and install and build the plugin
3845
"postCreateCommand": "bash .devcontainer/postCreateCommand.sh",
3946
"runArgs": [
4047
// Give the Docker container the same name as the repository (must be unique on host)
4148
"--name",
4249
"${localWorkspaceFolderBasename}",
43-
// Remove network host mode if on Docker Desktop for Windows or macOS
44-
"--network=host"
50+
// Use network host mode if on Docker Engine on Linux or WSL 2 to allow full local network access and mDNS support
51+
// "--network=host"
52+
// Use a shared bridge network to allow to access other containers with their names (dns resolution). With the default bridge, dns resolution does not work (only ip:port).
53+
"--network=matterbridge"
4554
],
4655
"customizations": {
4756
"vscode": {
@@ -58,14 +67,18 @@ Dev containers have networking limitations depending on the host OS and Docker s
5867
// Settings for the VS Code environment
5968
"settings": {
6069
"terminal.integrated.shell.linux": "/bin/bash",
61-
"terminal.integrated.scrollback": 10000,
6270
"editor.tabSize": 2,
6371
"editor.formatOnSave": true,
6472
"editor.codeActionsOnSave": {
6573
"source.fixAll.eslint": "explicit"
6674
},
6775
"eslint.format.enable": true,
68-
"eslint.useFlatConfig": true
76+
"eslint.useFlatConfig": true,
77+
"diffEditor.ignoreTrimWhitespace": false,
78+
"git.autofetch": true,
79+
"files.eol": "\n",
80+
"files.insertFinalNewline": true,
81+
"files.trimFinalNewlines": true
6982
}
7083
}
7184
}

.devcontainer/install-matterbridge-dev.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ sudo rm -rf matterbridge/* matterbridge/.[!.]* matterbridge/..?*
1818
# Shallow clone for speed (history not needed inside dev container). Remove --depth if full history required.
1919
git clone --depth 1 --single-branch --no-tags -b dev https://github.com/Luligu/matterbridge.git matterbridge
2020
cd matterbridge
21+
SHA7=$(git rev-parse --short=7 HEAD) && BASE_VERSION=$(node -p "require('./package.json').version.split('-')[0]") && npm pkg set version="${BASE_VERSION}-git-${SHA7}"
2122
npm ci --no-fund --no-audit
2223
npm run build
2324
npm install . --global --no-fund --no-audit
24-
rm -rf .git .github .vscode docker systemd docs public screenshot
25+
rm -rf .cache .devcontainer .git .github .vscode docker docs reflector screenshots scripts systemd
2526
echo "Matterbridge has been installed from the dev branch."

.devcontainer/install-matterbridge-main.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ sudo rm -rf matterbridge/* matterbridge/.[!.]* matterbridge/..?*
1818
# Shallow clone for speed (history not needed inside dev container). Remove --depth if full history required.
1919
git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git matterbridge
2020
cd matterbridge
21+
SHA7=$(git rev-parse --short=7 HEAD) && BASE_VERSION=$(node -p "require('./package.json').version.split('-')[0]") && npm pkg set version="${BASE_VERSION}-git-${SHA7}"
2122
npm ci --no-fund --no-audit
2223
npm run build
2324
npm install . --global --no-fund --no-audit
24-
rm -rf .git .github .vscode docker systemd docs public screenshot
25+
rm -rf .cache .devcontainer .git .github .vscode docker docs reflector screenshots scripts systemd
2526
echo "Matterbridge has been installed from the main branch."

.devcontainer/postCreateCommand.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,28 @@
66

77
set -euo pipefail
88

9+
echo "Welcome to Matterbridge Plugin Dev Container"
10+
DISTRO=$(awk -F= '/^PRETTY_NAME=/{gsub(/"/, "", $2); print $2}' /etc/os-release)
11+
CODENAME=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)
12+
echo "Distro: $DISTRO ($CODENAME)"
13+
echo "User: $(whoami)"
14+
echo "Hostname: $(hostname)"
15+
echo "Architecture: $(uname -m)"
16+
echo "Kernel Version: $(uname -r)"
17+
echo "Uptime: $(uptime -p || echo 'unavailable')"
18+
echo "Date: $(date)"
19+
echo "Node.js version: $(node -v)"
20+
echo "Npm version: $(npm -v)"
21+
echo ""
22+
923
echo "1 - Installing updates and scripts..."
10-
sudo npm install -g npm npm-check-updates shx cross-env
24+
npm install --global --no-fund --no-audit npm npm-check-updates shx cross-env
1125

1226
echo "2 - Building Matterbridge..."
1327
sudo chmod +x .devcontainer/install-matterbridge-*.sh
14-
# Use this for the main branch: .devcontainer/install-matterbridge-main.sh
28+
# Use this for the main branch:
29+
# .devcontainer/install-matterbridge-main.sh
30+
# Use this for the dev branch:
1531
.devcontainer/install-matterbridge-dev.sh
1632

1733
echo "3 - Creating directories..."

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
paths-ignore:
99
- '**/*.md' # any .md anywhere
10+
workflow_dispatch:
1011

1112
jobs:
1213
build:

.github/workflows/codecov.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 2
2321

24-
- name: Set up Node
22+
- name: Setup Node.js 24.x
2523
uses: actions/setup-node@v4
2624
with:
27-
node-version: '22.x'
28-
registry-url: 'https://registry.npmjs.org'
25+
node-version: '24.x'
26+
cache: npm
2927

3028
- name: Clone matterbridge repo
3129
run: git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git ../matterbridge

.github/workflows/codeql.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
push:
55
branches: [main]
66
paths-ignore:
7+
- 'screenshots/**' # any file under screenshots/
8+
- 'scripts/**' # any file under scripts/
79
- '**/*.md' # any .md anywhere
810
pull_request:
911
branches: [main]
1012
paths-ignore:
13+
- 'screenshots/**' # any file under screenshots/
14+
- 'scripts/**' # any file under scripts/
1115
- '**/*.md' # any .md anywhere
1216
workflow_dispatch:
1317

@@ -25,4 +29,10 @@ jobs:
2529
- uses: github/codeql-action/init@v4
2630
with:
2731
languages: javascript
32+
config: |
33+
paths-ignore:
34+
- 'scripts/**'
35+
- '**/*.spec.ts'
36+
- '**/*.test.ts'
37+
- '**/__test__/*.ts'
2838
- uses: github/codeql-action/analyze@v4

.github/workflows/publish-daily-dev-from-dev.yml

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

0 commit comments

Comments
 (0)