Skip to content

Commit

Permalink
Merge pull request #12 from Luligu/dev
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
Luligu authored Dec 2, 2024
2 parents ac91dd6 + 8dd278c commit 64dabda
Show file tree
Hide file tree
Showing 13 changed files with 222 additions and 150 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,5 @@ coverage/
hs_err_pid*
replay_pid*

# zigbee2mqtt
bridge-info.json
bridge-devices.json
bridge-groups.json
temp
src/mock
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,6 @@ screenshot
# other stuff
TODO.md
yellow-button.png
create-release.js
create-release.js
tsconfig.*
temp
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ If you like this project and find it useful, please consider giving it a star on

All notable changes to this project will be documented in this file.

## [1.2.0] - 2024-11-30
## [1.2.0] - 2024-12-02

### Added

- [edge]: Verified to work with Matterbridge edge (matter.js new API).
- [plugin]: Refactor movement to support concurrent movementes from all screens.
- [plugin]: Refactor movement to support concurrent movements from all screens.
- [plugin]: Refactor movement to show the movement on the controller (if it supports that) even for close and open commands.
- [matter]: Added bridgedNode and powerSource device types to the cover.

Expand Down
81 changes: 0 additions & 81 deletions create-release.js

This file was deleted.

1 change: 0 additions & 1 deletion link-matterbridge-script.js

This file was deleted.

15 changes: 9 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"buildProduction": "npm run clean && tsc --project tsconfig.production.json",
"start:frontend": "matterbridge",
"start:bridge": "matterbridge -bridge",
"start:childbridge": "matterbridge -childbridge",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:verbose": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose",
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
"test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"test:platform": "node --experimental-vm-modules node_modules/jest/bin/jest.js src/platform.test.ts --verbose --coverage",
"lint": "eslint --max-warnings=0",
"lint:fix": "eslint --max-warnings=0 --fix",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
Expand All @@ -57,6 +59,7 @@
"updateDependencies": "npx npm-check-updates -u && npm install && npm link matterbridge && npm run build",
"prepublishOnly": "npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap",
"npmPack": "npm run cleanBuild && copy package.json package.log && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack && copy package.log package.json && npm run deepCleanBuild",
"npmPublishTagDev": "copy package.json package.log && npm run buildProduction && npm pkg delete devDependencies && npm pkg delete scripts && npx rimraf ./node_modules && npm install --omit=dev && npm shrinkwrap && npm publish --tag dev && copy package.log package.json",
"matterbridge:add": "matterbridge -add .\\",
"matterbridge:remove": "matterbridge -remove .\\",
"matterbridge:enable": "matterbridge -enable .\\",
Expand Down
13 changes: 4 additions & 9 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,20 @@ describe('initializePlugin', () => {
} as unknown as Matterbridge;
mockLog = { error: jest.fn(), warn: jest.fn(), info: jest.fn(), debug: jest.fn() } as unknown as AnsiLogger;
mockConfig = {
'name': 'matterbridge-test',
'name': 'matterbridge-somfy-tahoma',
'type': 'DynamicPlatform',
'username': 'None',
'password': 'None',
'service': 'somfy_europe',
'blackList': [],
'whiteList': [],
'debug': false,
'unregisterOnShutdown': false,
} as PlatformConfig;
});

it('should return an instance of TestPlatform', () => {
it('should return an instance of SomfyTahomaPlatform', () => {
const result = initializePlugin(mockMatterbridge, mockLog, mockConfig);

expect(result).toBeInstanceOf(SomfyTahomaPlatform);
});

it('should shutdown the instance of TestPlatform', () => {
const result = initializePlugin(mockMatterbridge, mockLog, mockConfig);

expect(result).toBeInstanceOf(SomfyTahomaPlatform);
});
});
Loading

0 comments on commit 64dabda

Please sign in to comment.