Skip to content

Commit a048d52

Browse files
authored
Release 2.2.0
## [2.2.0] - 2025-11-14 ### Added - [test]: Refactored real tests on Gen 1/2/3. - [test]: Refactored all test for consistency with the matterbridge test setup. - [package]: Updated to the current Matterbridge signatures. ### Changed - [package]: Updated dependencies. - [package]: Bumped package to automator v. 2.0.12. - [jest]: Updated jestHelpers to v. 1.0.12. - [workflows]: Use shallow clones and --no-fund --no-audit for faster builds. <a href="https://www.buymeacoffee.com/luligugithub"> <img src="bmc-button.svg" alt="Buy me a coffee" width="80"> </a>
1 parent c5e8bbb commit a048d52

39 files changed

+1789
-2274
lines changed

.github/workflows/build-matterbridge-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: npm run lint
6262

6363
- name: Test the plugin
64-
run: npm run test
64+
run: npm run test -- --forceExit
6565

6666
- name: Build the plugin
6767
run: npm run build

.github/workflows/codecov.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
registry-url: 'https://registry.npmjs.org'
2929

3030
- name: Clone matterbridge repo
31-
run: git clone https://github.com/Luligu/matterbridge.git ../matterbridge
31+
run: git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git ../matterbridge
3232

3333
- name: Install matterbridge dependencies
3434
working-directory: ../matterbridge
35-
run: npm ci
35+
run: npm ci --no-fund --no-audit
3636

3737
- name: Build matterbridge
3838
working-directory: ../matterbridge
3939
run: npm run build
4040

4141
- name: Link matterbridge globally
4242
working-directory: ../matterbridge
43-
run: npm link
43+
run: npm link --no-fund --no-audit
4444

4545
- name: Install dependencies
4646
run: npm ci
@@ -49,7 +49,7 @@ jobs:
4949
run: npm link matterbridge
5050

5151
- name: Run tests
52-
run: npm run test:coverage
52+
run: npm run test:coverage -- --forceExit
5353

5454
- name: Upload results to Codecov
5555
uses: codecov/codecov-action@v5

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
run: npm cache clean --force
2929

3030
- name: Clone matterbridge repo branch dev
31-
run: git clone -b dev https://github.com/Luligu/matterbridge.git ../matterbridge
31+
run: git clone --depth 1 --single-branch --no-tags -b dev https://github.com/Luligu/matterbridge.git ../matterbridge
3232

3333
- name: Install matterbridge dependencies
3434
working-directory: ../matterbridge
35-
run: npm ci
35+
run: npm ci --no-fund --no-audit
3636

3737
- name: Build matterbridge
3838
working-directory: ../matterbridge
3939
run: npm run build
4040

4141
- name: Link matterbridge globally
4242
working-directory: ../matterbridge
43-
run: npm link
43+
run: npm link --no-fund --no-audit
4444

4545
- name: Lint & test & build the plugin
4646
run: |
@@ -49,7 +49,7 @@ jobs:
4949
npm run lint
5050
npm run buildProduction
5151
npm install -g .
52-
npm run test
52+
npm run test -- --forceExit
5353
npm pkg delete devDependencies scripts types
5454
npx shx rm -rf ./node_modules
5555
npm install --omit=dev

.github/workflows/publish-matterbridge-plugin-dev-daily-from-main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
run: npm cache clean --force
2929

3030
- name: Clone matterbridge repo branch dev
31-
run: git clone -b dev https://github.com/Luligu/matterbridge.git ../matterbridge
31+
run: git clone --depth 1 --single-branch --no-tags -b dev https://github.com/Luligu/matterbridge.git ../matterbridge
3232

3333
- name: Install matterbridge dependencies
3434
working-directory: ../matterbridge
35-
run: npm ci
35+
run: npm ci --no-fund --no-audit
3636

3737
- name: Build matterbridge
3838
working-directory: ../matterbridge
3939
run: npm run build
4040

4141
- name: Link matterbridge globally
4242
working-directory: ../matterbridge
43-
run: npm link
43+
run: npm link --no-fund --no-audit
4444

4545
- name: Lint & test & build the plugin
4646
run: |
@@ -49,7 +49,7 @@ jobs:
4949
npm run lint
5050
npm run buildProduction
5151
npm install -g .
52-
npm run test
52+
npm run test -- --forceExit
5353
npm pkg delete devDependencies scripts types
5454
npx shx rm -rf ./node_modules
5555
npm install --omit=dev

.github/workflows/publish-matterbridge-plugin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
run: npm -v
2929

3030
- name: Clone matterbridge repo
31-
run: git clone https://github.com/Luligu/matterbridge.git ../matterbridge
31+
run: git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git ../matterbridge
3232

3333
- name: Install matterbridge dependencies
3434
working-directory: ../matterbridge
35-
run: npm ci
35+
run: npm ci --no-fund --no-audit
3636

3737
- name: Build matterbridge
3838
working-directory: ../matterbridge
3939
run: npm run build
4040

4141
- name: Link matterbridge globally
4242
working-directory: ../matterbridge
43-
run: npm link
43+
run: npm link --no-fund --no-audit
4444

4545
- name: Install plugin dependencies
4646
run: npm ci
@@ -52,7 +52,7 @@ jobs:
5252
run: npm run lint
5353

5454
- name: Test the plugin
55-
run: npm run test
55+
run: npm run test -- --forceExit
5656

5757
- name: Build the plugin
5858
run: npm run build

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ screenshot/
1414
src/
1515
temp/
1616
test/
17+
vitest/
1718

1819
# Specific files that should be ignored
1920
.gitattributes
@@ -29,6 +30,7 @@ eslint.config.*
2930
install-matterbridge-dev.sh
3031
install-matterbridge-main.sh
3132
jest.config.*
33+
jestHelpers.*
3234
nodemon.json
3335
prettier.config.*
3436
TODO.md

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@ If you like this project and find it useful, please consider giving it a star on
1010

1111
You can also sponsor Tamer here https://buymeacoffee.com/6sjde6vkzl for his invaluable contribution to this project.
1212

13+
## [2.2.0] - 2025-11-14
14+
15+
### Added
16+
17+
- [test]: Refactored real tests on Gen 1/2/3.
18+
- [test]: Refactored all test for consistency with the matterbridge test setup.
19+
- [package]: Updated to the current Matterbridge signatures.
20+
21+
### Changed
22+
23+
- [package]: Updated dependencies.
24+
- [package]: Bumped package to automator v. 2.0.12.
25+
- [jest]: Updated jestHelpers to v. 1.0.12.
26+
- [workflows]: Use shallow clones and --no-fund --no-audit for faster builds.
27+
28+
<a href="https://www.buymeacoffee.com/luligugithub">
29+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
30+
</a>
31+
1332
## [2.1.2] - 2025-09-28
1433

1534
### Added

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export default defineConfig([
5353
'jsdoc/tag-lines': ['error', 'any', { startLines: 1, endLines: 0 }], // Require a blank line before JSDoc comments
5454
'jsdoc/check-tag-names': ['warn', { definedTags: ['created', 'contributor', 'remarks'] }], // Allow custom tags
5555
'jsdoc/no-undefined-types': 'off',
56-
'jsdoc/reject-any-type': 'off', // Allow 'any' type in JSDoc
5756
'prettier/prettier': 'warn', // Use Prettier for formatting
5857
},
5958
},

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const jestConfig = {
1212
...presetConfig,
1313
testEnvironment: 'node',
1414
moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' }, // Handle ESM imports by removing the .js extension
15-
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/vitest/', 'src/net', 'jestHelpers.ts'],
16-
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/vitest/', 'src/net', 'jestHelpers.ts'],
15+
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/vitest/', 'jestHelpers.test.ts'],
16+
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/vitest/', 'jestHelpers.ts'],
1717
maxWorkers: '100%',
1818
};
1919

0 commit comments

Comments
 (0)