iobroker.sbfspot 4.1.4 → 4.1.5

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.
@@ -0,0 +1,16 @@
1
+ # These are supported funding model platforms
2
+
3
+ #github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ #patreon: # Replace with a single Patreon username
5
+ #open_collective: # Replace with a single Open Collective username
6
+ #ko_fi: # Replace with a single Ko-fi username
7
+ #tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ #community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ #liberapay: # Replace with a single Liberapay username
10
+ #issuehunt: # Replace with a single IssueHunt username
11
+ #otechie: # Replace with a single Otechie username
12
+ #lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
+ #custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
14
+
15
+
16
+ custom: "https://www.paypal.com/donate/?hosted_button_id=34ESBMJ932QZC"
@@ -0,0 +1,13 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "npm"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "daily"
12
+ target-branch: "master"
13
+ open-pull-requests-limit: 30
@@ -1,120 +1,79 @@
1
- # This is a composition of lint and test scripts
2
- # Make sure to update this file along with the others
3
-
4
1
  name: Test and Release
5
2
 
6
3
  # Run this job on all pushes and pull requests
7
4
  # as well as tags with a semantic version
8
5
  on:
9
- push:
10
- branches:
11
- - "*"
12
- tags:
13
- # normal versions
14
- - "v[0-9]+.[0-9]+.[0-9]+"
15
- # pre-releases
16
- - "v[0-9]+.[0-9]+.[0-9]+-**"
17
- pull_request: {}
6
+ push:
7
+ branches:
8
+ - "master"
9
+ tags:
10
+ # normal versions
11
+ - "v[0-9]+.[0-9]+.[0-9]+"
12
+ # pre-releases
13
+ - "v[0-9]+.[0-9]+.[0-9]+-**"
14
+ pull_request: {}
18
15
 
19
16
  jobs:
20
- # Performs quick checks before the expensive test runs
21
- check-and-lint:
22
- if: contains(github.event.head_commit.message, '[skip ci]') == false
23
-
24
- runs-on: ubuntu-latest
25
-
26
- strategy:
27
- matrix:
28
- node-version: [16.x]
29
-
30
- steps:
31
- - uses: actions/checkout@v2
32
- - name: Use Node.js ${{ matrix.node-version }}
33
- uses: actions/setup-node@v1
34
- with:
35
- node-version: ${{ matrix.node-version }}
36
-
37
- - name: Install Dependencies
38
- run: npm ci
39
-
40
- - name: Lint source code
41
- run: npm run lint
42
- - name: Test package files
43
- run: npm run test:package
44
-
45
- # Runs adapter tests on all supported node versions and OSes
46
- adapter-tests:
47
- if: contains(github.event.head_commit.message, '[skip ci]') == false
48
-
49
- needs: [check-and-lint]
50
-
51
- runs-on: ${{ matrix.os }}
52
- strategy:
53
- matrix:
54
- node-version: [ 16.x, 18.x]
55
- os: [ubuntu-latest, windows-latest, macos-latest]
56
- exclude:
57
- # Don't test Node.js 8 on Windows. npm is weird here
58
- - os: windows-latest
59
- node-version: 8.x
60
- steps:
61
- - uses: actions/checkout@v2
62
- - name: Use Node.js ${{ matrix.node-version }}
63
- uses: actions/setup-node@v1
64
- with:
65
- node-version: ${{ matrix.node-version }}
66
-
67
- - name: Install Dependencies
68
- run: npm ci
69
-
70
- - name: Run unit tests
71
- run: npm run test:unit
72
-
73
- - name: Run integration tests (unix only)
74
- if: startsWith(runner.OS, 'windows') == false
75
- run: DEBUG=testing:* npm run test:integration
76
-
77
- - name: Run integration tests (windows only)
78
- if: startsWith(runner.OS, 'windows')
79
- run: set DEBUG=testing:* & npm run test:integration
80
-
81
- # TODO: To enable automatic npm releases, create a token on npmjs.org
82
- # Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
83
- # Then uncomment the following block:
84
-
85
- # # Deploys the final package to NPM
86
- # deploy:
87
- # needs: [adapter-tests]
88
- #
89
- # # Trigger this step only when a commit on master is tagged with a version number
90
- # if: |
91
- # contains(github.event.head_commit.message, '[skip ci]') == false &&
92
- # github.event_name == 'push' &&
93
- # github.event.base_ref == 'refs/heads/master' &&
94
- # startsWith(github.ref, 'refs/tags/v')
95
- #
96
- # runs-on: ubuntu-latest
97
- # strategy:
98
- # matrix:
99
- # node-version: [12.x]
100
- #
101
- # steps:
102
- # - uses: actions/checkout@v2
103
- # - name: Use Node.js ${{ matrix.node-version }}
104
- # uses: actions/setup-node@v1
105
- # with:
106
- # node-version: ${{ matrix.node-version }}
107
- #
108
- # - name: Publish package to npm
109
- # run: |
110
- # npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
111
- # npm whoami
112
- # npm publish
113
-
114
- # Dummy job for skipped builds - without this, github reports the build as failed
115
- skip-ci:
116
- if: contains(github.event.head_commit.message, '[skip ci]')
117
- runs-on: ubuntu-latest
118
- steps:
119
- - name: Skip build
120
- run: echo "Build skipped!"
17
+ # Performs quick checks before the expensive test runs
18
+ check-and-lint:
19
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
20
+
21
+ runs-on: ubuntu-latest
22
+
23
+ steps:
24
+ - uses: ioBroker/testing-action-check@v1
25
+ with:
26
+ node-version: '18.x'
27
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
28
+ # install-command: 'npm install'
29
+ lint: true
30
+
31
+ # Runs adapter tests on all supported node versions and OSes
32
+ adapter-tests:
33
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
34
+
35
+ runs-on: ${{ matrix.os }}
36
+ strategy:
37
+ matrix:
38
+ node-version: [16.x, 18.x, 20.x]
39
+ os: [ubuntu-latest, windows-latest, macos-latest]
40
+
41
+ steps:
42
+ - uses: ioBroker/testing-action-adapter@v1
43
+ with:
44
+ node-version: ${{ matrix.node-version }}
45
+ os: ${{ matrix.os }}
46
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
47
+ # install-command: 'npm install'
48
+
49
+ # Deploys the final package to NPM
50
+ deploy:
51
+ needs: [check-and-lint, adapter-tests]
52
+
53
+ # Trigger this step only when a commit on any branch is tagged with a version number
54
+ if: |
55
+ contains(github.event.head_commit.message, '[skip ci]') == false &&
56
+ github.event_name == 'push' &&
57
+ startsWith(github.ref, 'refs/tags/v')
58
+
59
+ runs-on: ubuntu-latest
60
+
61
+ steps:
62
+ - uses: ioBroker/testing-action-deploy@v1
63
+ with:
64
+ node-version: '18.x'
65
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
66
+ # install-command: 'npm install'
67
+ npm-token: ${{ secrets.NPM_TOKEN }}
68
+ github-token: ${{ secrets.secrets.AUTOMERGER }}
69
+
70
+ # When using Sentry for error reporting, Sentry can be informed about new releases
71
+ # To enable create a API-Token in Sentry (User settings, API keys)
72
+ # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
73
+ # Then uncomment and customize the following block:
74
+ #sentry: true
75
+ #sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
76
+ #sentry-project: "xxx"
77
+ #sentry-version-prefix: "xxx"
78
+ # If your sentry project is linked to a GitHub repository, you can enable the following option
79
+ # sentry-github-integration: true
package/README.md CHANGED
@@ -18,7 +18,7 @@ For more details and for information how to disable the error reporting see [Sen
18
18
 
19
19
  **If you like it, please consider a donation:**
20
20
 
21
- [![paypal](https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YBAZTEBT9SYC2&source=url)
21
+ [![paypal](https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/donate/?hosted_button_id=34ESBMJ932QZC)
22
22
 
23
23
  This adapter reads data from SMA power inverters using sbfspot.
24
24
  Now both database types (mySQL and sqlite) are supported.
@@ -51,6 +51,9 @@ sometimes npm intall must be called more then one time to successfully install a
51
51
 
52
52
  ## Changelog
53
53
 
54
+ ### 4.1.5 (2023-07-30)
55
+ * (René) dependencies updated
56
+
54
57
  ### 4.1.4 (2023-04-07)
55
58
  * (René) dependencies updated
56
59
 
package/io-package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "sbfspot",
4
- "version": "4.1.4",
4
+ "version": "4.1.5",
5
5
  "news": {
6
- "4.1.4": {
6
+ "4.1.5": {
7
7
  "en": "dependencies updated",
8
8
  "de": "Abhängigkeiten aktualisiert",
9
9
  "ru": "зависимости обновлены",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.sbfspot",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "sbfspot (SMA inverter) Adapter",
5
5
  "author": {
6
6
  "name": "René G.",
@@ -18,31 +18,31 @@
18
18
  "url": "https://github.com/rg-engineering/ioBroker.sbfspot"
19
19
  },
20
20
  "dependencies": {
21
- "@iobroker/adapter-core": "2.6.8",
22
- "better-sqlite3": "8.2.0",
23
- "mysql2": "3.2.0",
21
+ "@iobroker/adapter-core": "3.0.1",
22
+ "better-sqlite3": "8.5.0",
23
+ "mysql2": "3.5.2",
24
24
  "suncalc2": "1.8.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@iobroker/adapter-dev": "1.2.0",
28
28
  "@iobroker/testing": "4.1.0",
29
- "@types/chai": "4.3.4",
29
+ "@types/chai": "4.3.5",
30
30
  "@types/chai-as-promised": "7.1.5",
31
- "@types/gulp": "4.0.10",
31
+ "@types/gulp": "4.0.13",
32
32
  "@types/mocha": "10.0.1",
33
- "@types/node": "18.15.11",
33
+ "@types/node": "20.4.5",
34
34
  "@types/proxyquire": "1.3.28",
35
35
  "@types/request-promise-native": "1.0.18",
36
- "@types/sinon": "10.0.13",
36
+ "@types/sinon": "10.0.15",
37
37
  "@types/sinon-chai": "3.2.9",
38
- "axios": "0.27.2",
38
+ "axios": "1.4.0",
39
39
  "chai": "4.3.7",
40
40
  "chai-as-promised": "7.1.1",
41
- "eslint": "8.37.0",
41
+ "eslint": "8.45.0",
42
42
  "gulp": "4.0.2",
43
43
  "mocha": "10.2.0",
44
44
  "proxyquire": "2.1.3",
45
- "sinon": "15.0.3",
45
+ "sinon": "15.2.0",
46
46
  "sinon-chai": "3.7.0"
47
47
  },
48
48
  "main": "main.js",
package/sbfspot.njsproj CHANGED
@@ -28,6 +28,8 @@
28
28
  <Compile Include="test\unit.js" />
29
29
  <Compile Include="widgets\sbfspot\lib\js\flot\jquery.flot.js" />
30
30
  <Compile Include="widgets\sbfspot\lib\js\flot\jquery.flot.time.js" />
31
+ <Content Include=".github\dependabot.yml" />
32
+ <Content Include=".github\FUNDING.yml" />
31
33
  <Content Include=".github\ISSUE_TEMPLATE\BugReport.md" />
32
34
  <Content Include=".github\ISSUE_TEMPLATE\Enhancement.md" />
33
35
  <Content Include=".github\workflows\npmpublish.yml" />