@willieee802/zigbee-herdsman 0.14.108 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
- name: CI
1
+ name: ci
2
2
 
3
- on: [push, pull_request]
3
+ on: [pull_request, push]
4
+
5
+ permissions:
6
+ contents: write
7
+ pull-requests: write
4
8
 
5
9
  jobs:
6
10
  ci:
@@ -9,23 +13,28 @@ jobs:
9
13
  - uses: actions/checkout@v3
10
14
  - uses: actions/setup-node@v3
11
15
  with:
12
- node-version: 18
13
- - name: Get NodeJS Version
14
- id: nodeversion
15
- run: |
16
- echo "::set-output name=version::$(node --version)"
17
- - name: Restore node_modules cache
18
- id: cache-node-modules
19
- uses: actions/cache@v3
20
- with:
21
- path: node_modules
22
- key: ${{ runner.os }}-${{ steps.nodeversion.outputs.version }}-${{ hashFiles('package-lock.json') }}
16
+ node-version: 20
17
+ registry-url: https://registry.npmjs.org/
18
+ cache: npm
23
19
  - name: Install dependencies
24
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
25
20
  run: npm ci
26
21
  - name: Build
27
22
  run: npm run build
28
23
  - name: Test
29
24
  run: npm run test-with-coverage
30
25
  - name: Lint
31
- run: npm run eslint
26
+ run: npm run eslint
27
+ - name: Publish new release
28
+ if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
29
+ run: |
30
+ npm publish
31
+ PACKAGE=$(node -p "require('./package.json').name")
32
+ VERSION=$(node -p "require('./package.json').version")
33
+ until [ $(npm view $PACKAGE --json | jq --arg version "$VERSION" -r '.versions[] | select (. == $version)') ];
34
+ do
35
+ echo "Waiting for publish to complete"
36
+ sleep 5s
37
+ done
38
+ curl -XPOST -H "Authorization: token ${{ secrets.GH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/koenkk/zigbee2mqtt/dispatches --data "{\"event_type\": \"update_dep\", \"client_payload\": { \"version\": \"$VERSION\", \"package\": \"$PACKAGE\"}}"
39
+ env:
40
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN }}
@@ -0,0 +1,20 @@
1
+ name: release-please
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
12
+ jobs:
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: google-github-actions/release-please-action@v3
17
+ with:
18
+ release-type: node
19
+ package-name: release-please-action
20
+ token: ${{ secrets.GH_TOKEN }}
@@ -1,4 +1,5 @@
1
- name: "Close stale issues/pull requests"
1
+ name: stale
2
+
2
3
  on:
3
4
  schedule:
4
5
  - cron: "0 0 * * *"
@@ -1,24 +1,29 @@
1
- name: Update dependencies
1
+ name: update-deps
2
+
2
3
  on:
3
4
  workflow_dispatch:
4
5
  schedule:
5
6
  - cron: "0 0 * * 0"
6
7
 
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
7
12
  jobs:
8
13
  update_deps:
9
14
  runs-on: ubuntu-latest
10
15
  steps:
11
16
  - uses: actions/checkout@v3
12
17
  with:
13
- ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
18
+ token: ${{ secrets.GH_TOKEN }}
14
19
  - uses: actions/setup-node@v3
15
20
  with:
16
- node-version: 18
17
- - run: rm -rf package-lock.json
18
- - run: npx npm-check-updates -u -x serialport # serialport is currently broken: https://github.com/Koenkk/zigbee-herdsman/issues/540
21
+ node-version: 20
22
+ cache: npm
23
+ - run: npx npm-check-updates -u
19
24
  - run: npm install
20
25
  - uses: peter-evans/create-pull-request@v5
21
26
  with:
22
- commit-message: Update dependencies
23
- branch: "update_deps"
27
+ commit-message: "fix(ignore): update dependencies"
28
+ branch: "deps/all"
24
29
  title: Update dependencies
@@ -0,0 +1,4 @@
1
+ {
2
+ ".": "0.15.0",
3
+ "bootstrap-sha": "d75f2c98d866de9f9af1a2a6a48e7b4dde4744b0"
4
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ ## [0.15.0](https://github.com/Koenkk/zigbee-herdsman/compare/v0.14.117...v0.15.0) (2023-06-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * Improve request queue behavior ([#718](https://github.com/Koenkk/zigbee-herdsman/issues/718)) ([68cfe55](https://github.com/Koenkk/zigbee-herdsman/commit/68cfe554b7ca1d7d422f3392e915eeb916865f56))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **ignore:** update dependencies ([#715](https://github.com/Koenkk/zigbee-herdsman/issues/715)) ([d243577](https://github.com/Koenkk/zigbee-herdsman/commit/d243577c6a53d3adbb48672911883c56e782c6c2))
14
+
15
+ ## [0.14.117](https://github.com/Koenkk/zigbee-herdsman/compare/v0.14.116...v0.14.117) (2023-05-23)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * ci.yml ([f964ba1](https://github.com/Koenkk/zigbee-herdsman/commit/f964ba1743dbc184c84d923594a2894c54b0a059))
21
+
22
+ ## [0.14.116](https://github.com/Koenkk/zigbee-herdsman/compare/v0.14.115...v0.14.116) (2023-05-23)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * typo ([f9e4bf7](https://github.com/Koenkk/zigbee-herdsman/commit/f9e4bf704a254256a040f2ea09f16b9d2ebe3f09))
package/package.json CHANGED
@@ -3,9 +3,10 @@
3
3
  "name": "willieee802"
4
4
  },
5
5
  "dependencies": {
6
- "@serialport/bindings-cpp": "^10.8.0",
7
- "@serialport/parser-delimiter": "^10.5.0",
8
- "@serialport/stream": "^10.5.0",
6
+ "@serialport/bindings-cpp": "^11.0.1",
7
+ "@serialport/parser-delimiter": "^11.0.0",
8
+ "@serialport/stream": "^11.0.0",
9
+ "bonjour-service": "^1.1.1",
9
10
  "debounce": "^1.2.1",
10
11
  "debug": "^4.3.4",
11
12
  "fast-deep-equal": "^3.1.3",
@@ -34,7 +35,7 @@
34
35
  "eslint": "*",
35
36
  "jest": "*",
36
37
  "regenerator-runtime": "*",
37
- "typedoc": "^0.24.2",
38
+ "typedoc": "^0.24.8",
38
39
  "typedoc-plugin-markdown": "*",
39
40
  "typedoc-plugin-no-inherit": "*",
40
41
  "typedoc-plugin-sourcefile-url": "*",
@@ -58,7 +59,7 @@
58
59
  "eslint": "node_modules/.bin/eslint . --ext .ts --max-warnings=0",
59
60
  "docs": "typedoc --tsconfig typedoc-tsconfig.json"
60
61
  },
61
- "version": "0.14.108",
62
+ "version": "0.15.0",
62
63
  "jest": {
63
64
  "coverageThreshold": {
64
65
  "global": {
@@ -0,0 +1,13 @@
1
+ {
2
+ "packages": {
3
+ ".": {
4
+ "changelog-path": "CHANGELOG.md",
5
+ "release-type": "node",
6
+ "bump-minor-pre-major": false,
7
+ "bump-patch-for-minor-pre-major": false,
8
+ "draft": false,
9
+ "prerelease": false
10
+ }
11
+ },
12
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
13
+ }
@@ -1,56 +0,0 @@
1
- name: Create new release
2
-
3
- on:
4
- workflow_dispatch:
5
- inputs:
6
- type:
7
- description: 'Release type (patch/minor/major)'
8
- default: 'patch'
9
- required: true
10
-
11
- jobs:
12
- release:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v3
16
- - uses: actions/setup-node@v3
17
- with:
18
- node-version: 18
19
- registry-url: https://registry.npmjs.org/
20
- - name: Install dependencies
21
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
22
- run: npm ci
23
- - name: Build
24
- run: npm run build
25
- - name: Test
26
- run: npm run test-with-coverage
27
- - name: Lint
28
- run: npm run eslint
29
- - name: Setup Git
30
- run: |
31
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
32
- git config --local user.name "github-actions[bot]"
33
- - name: Bump version
34
- run: "npm version ${{ github.event.inputs.type }}"
35
- # - name: Generate docs
36
- # run: npm run docs && git add -A && git commit --amend --no-edit
37
- - name: Push changes
38
- uses: ad-m/github-push-action@master
39
- with:
40
- github_token: ${{ secrets.GITHUB_TOKEN }}
41
- tags: true
42
- branch: master
43
- - name: Publish to npm
44
- run: npm publish
45
- env:
46
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN }}
47
- - name: Get zigbee-herdsman version
48
- id: zhversion
49
- run: |
50
- version=$(node -p "require('./package.json').version")
51
- echo "::set-output name=version::$version"
52
- - name: Wait till package is in NPM # otherwise Z2M job fails
53
- run: sleep 120
54
- - name: Trigger Zigbee2MQTT update
55
- run: |
56
- curl -XPOST -H "Authorization: token ${{ secrets.TRIGGER_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/koenkk/zigbee2mqtt/dispatches --data '{"event_type": "update_zh", "client_payload": { "version": "${{ steps.zhversion.outputs.version }}"}}'