iobroker.influxdb 2.2.0 → 2.3.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "iobroker.influxdb",
3
3
  "description": "Log states in InfluxDB",
4
- "version": "2.2.0",
4
+ "version": "2.3.0",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "contributors": [
7
7
  "bluefox <dogafox@gmail.com>",
@@ -20,26 +20,40 @@
20
20
  ],
21
21
  "optionalDependencies": {},
22
22
  "dependencies": {
23
- "@influxdata/influxdb-client": "^1.17.0",
24
- "@influxdata/influxdb-client-apis": "^1.17.0",
23
+ "@influxdata/influxdb-client": "^1.21.0",
24
+ "@influxdata/influxdb-client-apis": "^1.21.0",
25
25
  "@iobroker/adapter-core": "^2.5.1",
26
26
  "influx": "^4.2.3"
27
27
  },
28
28
  "devDependencies": {
29
- "@alcalzone/release-script": "^2.2.1",
30
- "axios": "^0.21.1",
29
+ "@alcalzone/release-script": "^3.4.1",
30
+ "@alcalzone/release-script-plugin-iobroker": "^3.4.1",
31
+ "@alcalzone/release-script-plugin-license": "^3.4.1",
32
+ "axios": "^0.24.0",
31
33
  "gulp": "^4.0.2",
32
- "mocha": "^9.1.0",
34
+ "mocha": "^9.1.3",
33
35
  "chai": "^4.3.4"
34
36
  },
35
37
  "bugs": {
36
38
  "url": "https://github.com/ioBroker/ioBroker.influxdb/issues"
37
39
  },
38
40
  "main": "main.js",
41
+ "files": [
42
+ "admin/",
43
+ "docs/",
44
+ "lib/",
45
+ "io-package.json",
46
+ "LICENSE",
47
+ "RetentionPolicies.md",
48
+ "main.js"
49
+ ],
39
50
  "scripts": {
40
51
  "test": "node node_modules/mocha/bin/mocha --exit",
41
52
  "build:lang": "gulp adminWords2languages",
42
- "release": "release-script"
53
+ "release": "release-script",
54
+ "release-patch": "release-script patch --yes",
55
+ "release-minor": "release-script minor --yes",
56
+ "release-major": "release-script major --yes"
43
57
  },
44
58
  "license": "MIT"
45
59
  }
@@ -1,32 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Something is not working as it should
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
- ---
8
-
9
- **Describe the bug**
10
- A clear and concise description of what the bug is.
11
-
12
- **To Reproduce**
13
- Steps to reproduce the behavior:
14
- 1. Go to '...'
15
- 2. Click on '...'
16
- 3. Scroll down to '....'
17
- 4. See error
18
-
19
- **Expected behavior**
20
- A clear and concise description of what you expected to happen.
21
-
22
- **Screenshots & Logfiles**
23
- If applicable, add screenshots and logfiles to help explain your problem.
24
-
25
- **Versions:**
26
- - Adapter version: <adapter-version>
27
- - JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console -->
28
- - Node version: <node-version> <!-- determine this with `node -v` on the console -->
29
- - Operating system: <os-name>
30
-
31
- **Additional context**
32
- Add any other context about the problem here.
@@ -1,20 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
-
13
- **Describe the solution you'd like**
14
- A clear and concise description of what you want to happen.
15
-
16
- **Describe alternatives you've considered**
17
- A clear and concise description of any alternative solutions or features you've considered.
18
-
19
- **Additional context**
20
- Add any other context or screenshots about the feature request here.
@@ -1,17 +0,0 @@
1
- # Configure here which dependency updates should be merged automatically.
2
- # The recommended configuration is the following:
3
- - match:
4
- # Only merge patches for production dependencies
5
- dependency_type: production
6
- update_type: "semver:patch"
7
- - match:
8
- # Except for security fixes, here we allow minor patches
9
- dependency_type: production
10
- update_type: "security:minor"
11
- - match:
12
- # and development dependencies can have a minor update, too
13
- dependency_type: development
14
- update_type: "semver:minor"
15
-
16
- # The syntax is based on the legacy dependabot v1 automerged_updates syntax, see:
17
- # https://dependabot.com/docs/config-file/#automerged_updates
@@ -1,16 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: github-actions
4
- directory: "/"
5
- schedule:
6
- interval: monthly
7
- time: "04:00"
8
- timezone: Europe/Berlin
9
- - package-ecosystem: npm
10
- directory: "/"
11
- schedule:
12
- interval: monthly
13
- time: "04:00"
14
- timezone: Europe/Berlin
15
- open-pull-requests-limit: 20
16
- versioning-strategy: increase
package/.github/stale.yml DELETED
@@ -1,78 +0,0 @@
1
- # Configuration for probot-stale - https://github.com/probot/stale
2
-
3
- # Number of days of inactivity before an Issue or Pull Request becomes stale
4
- daysUntilStale: 90
5
-
6
- # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7
- # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8
- daysUntilClose: 7
9
-
10
- # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11
- onlyLabels: []
12
-
13
- # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14
- exemptLabels:
15
- - enhancement
16
- - security
17
-
18
- # Set to true to ignore issues in a project (defaults to false)
19
- exemptProjects: true
20
-
21
- # Set to true to ignore issues in a milestone (defaults to false)
22
- exemptMilestones: true
23
-
24
- # Set to true to ignore issues with an assignee (defaults to false)
25
- exemptAssignees: false
26
-
27
- # Label to use when marking as stale
28
- staleLabel: wontfix
29
-
30
- # Comment to post when marking as stale. Set to `false` to disable
31
- markComment: >
32
- This issue has been automatically marked as stale because it has not had
33
- recent activity. It will be closed if no further activity occurs within the next 7 days.
34
- Please check if the issue is still relevant in the most current version of the adapter
35
- and tell us. Also check that all relevant details, logs and reproduction steps
36
- are included and update them if needed.
37
- Thank you for your contributions.
38
-
39
- Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab.
40
- Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden.
41
- Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist,
42
- und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte
43
- enthalten sind bzw. aktualisiert diese.
44
- Vielen Dank für Eure Unterstützung.
45
-
46
- # Comment to post when removing the stale label.
47
- # unmarkComment: >
48
- # Your comment here.
49
-
50
- # Comment to post when closing a stale Issue or Pull Request.
51
- closeComment: >
52
- This issue has been automatically closed because of inactivity. Please open a new
53
- issue if still relevant and make sure to include all relevant details, logs and
54
- reproduction steps.
55
- Thank you for your contributions.
56
-
57
- Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein
58
- neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details,
59
- Logs und Reproduktionsschritte enthalten sind.
60
- Vielen Dank für Eure Unterstützung.
61
-
62
- # Limit the number of actions per hour, from 1-30. Default is 30
63
- limitPerRun: 30
64
-
65
- # Limit to only `issues` or `pulls`
66
- only: issues
67
-
68
- # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
69
- # pulls:
70
- # daysUntilStale: 30
71
- # markComment: >
72
- # This pull request has been automatically marked as stale because it has not had
73
- # recent activity. It will be closed if no further activity occurs. Thank you
74
- # for your contributions.
75
-
76
- # issues:
77
- # exemptLabels:
78
- # - confirmed
@@ -1,22 +0,0 @@
1
- # Automatically merge Dependabot PRs when version comparison is within the range
2
- # that is configured in .github/auto-merge.yml
3
-
4
- name: Auto-Merge Dependabot PRs
5
-
6
- on:
7
- pull_request_target:
8
-
9
- jobs:
10
- auto-merge:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v2
15
-
16
- - name: Check if PR should be auto-merged
17
- uses: ahmadnassri/action-dependabot-auto-merge@v2
18
- with:
19
- # This must be a personal access token with push access
20
- github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
21
- # By default, squash and merge, so Github chooses nice commit messages
22
- command: squash and merge
@@ -1,221 +0,0 @@
1
- # This is a composition of lint and test scripts
2
- # Make sure to update this file along with the others
3
-
4
- name: Test and Release
5
-
6
- # Run this job on all pushes and pull requests
7
- # as well as tags with a semantic version
8
- 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: {}
18
-
19
- 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: [12.x]
29
-
30
- steps:
31
- - uses: actions/checkout@v2.3.4
32
- - name: Use Node.js ${{ matrix.node-version }}
33
- uses: actions/setup-node@v2.3.0
34
- with:
35
- node-version: ${{ matrix.node-version }}
36
-
37
-
38
- - name: Install Dependencies
39
- run: npm ci
40
-
41
- # - name: Perform a type check
42
- # run: npm run check:ts
43
- # env:
44
- # CI: true
45
- # - name: Lint TypeScript code
46
- # run: npm run lint
47
- # - name: Test package files
48
- # run: npm run test:package
49
-
50
- # Runs adapter tests on all supported node versions and OSes
51
- adapter-tests-influxdb1:
52
- if: contains(github.event.head_commit.message, '[skip ci]') == false
53
-
54
- needs: [check-and-lint]
55
-
56
- runs-on: ${{ matrix.os }}
57
- strategy:
58
- matrix:
59
- node-version: [12.x, 14.x, 16.x]
60
- os: [ubuntu-latest, windows-latest, macos-latest]
61
-
62
- steps:
63
- - uses: actions/checkout@v2.3.4
64
- - name: Use Node.js ${{ matrix.node-version }}
65
- uses: actions/setup-node@v2.3.0
66
- with:
67
- node-version: ${{ matrix.node-version }}
68
-
69
- - name: Install Dependencies
70
- run: npm ci
71
-
72
- - name: Install Influxdb 1.x (Linux)
73
- if: startsWith(runner.OS, 'linux')
74
- run: |
75
- wget -nv https://dl.influxdata.com/influxdb/releases/influxdb_1.8.6_amd64.deb
76
- sudo dpkg -i influxdb_1.8.6_amd64.deb
77
- sudo systemctl start influxdb
78
-
79
- - name: Run local tests (Linux)
80
- if: startsWith(runner.OS, 'linux')
81
- run: npm test
82
- # - name: Run unit tests
83
- # run: npm run test:unit
84
- # - name: Run integration tests # (linux/osx)
85
- # if: startsWith(runner.OS, 'windows') == false
86
- # run: DEBUG=testing:* npm run test:integration
87
- # - name: Run integration tests # (windows)
88
- # if: startsWith(runner.OS, 'windows')
89
- # run: set DEBUG=testing:* & npm run test:integration
90
-
91
- # Runs adapter tests on all supported node versions and OSes
92
- adapter-tests-influxdb2:
93
- if: contains(github.event.head_commit.message, '[skip ci]') == false
94
-
95
- needs: [check-and-lint]
96
-
97
- runs-on: ${{ matrix.os }}
98
- strategy:
99
- matrix:
100
- node-version: [12.x, 14.x, 16.x]
101
- os: [ubuntu-latest]
102
-
103
- steps:
104
- - uses: actions/checkout@v2.3.4
105
- - name: Use Node.js ${{ matrix.node-version }}
106
- uses: actions/setup-node@v2.3.0
107
- with:
108
- node-version: ${{ matrix.node-version }}
109
-
110
- - name: Install Dependencies
111
- run: npm ci
112
-
113
- - name: Install Influxdb 2.x (Linux)
114
- id: influxdb2
115
- if: startsWith(runner.OS, 'linux')
116
- run: |
117
- wget -nv https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.7-amd64.deb
118
- sudo dpkg -i influxdb2-2.0.7-amd64.deb
119
- sudo systemctl start influxdb
120
- sleep 20
121
- sudo journalctl -u influxdb
122
- sudo influx setup --org test-org --bucket test-bucket --username test-user --password test-password --token test-token --force
123
- sudo influx config list
124
- AUTHTOKEN=$(sudo influx auth create --read-buckets --read-checks --read-dashboards --read-dbrps --read-notificationEndpoints --read-notificationRules --read-orgs --read-tasks --read-telegrafs --read-user --write-buckets --write-checks --write-dashboards --write-dbrps --write-notificationEndpoints --write-notificationRules --write-orgs --write-tasks --write-telegrafs --write-user --org test-org --token test-token --json --hide-headers)
125
- AUTHTOKEN="${AUTHTOKEN//'%'/'%25'}"
126
- AUTHTOKEN="${AUTHTOKEN//$'\n'/'%0A'}"
127
- AUTHTOKEN="${AUTHTOKEN//$'\r'/'%0D'}"
128
- echo "::set-output name=AUTHTOKEN::$AUTHTOKEN"
129
- sudo influx org list --token test-token
130
- sudo influx bucket list --token test-token
131
- sudo influx auth list --user test-user --token test-token --org test-org
132
-
133
- - name: Run local tests (Linux)
134
- if: startsWith(runner.OS, 'linux')
135
- env:
136
- INFLUXDB2: true
137
- AUTHTOKEN: ${{ steps.influxdb2.outputs.AUTHTOKEN }}
138
- run: npm test
139
- # - name: Run unit tests
140
- # run: npm run test:unit
141
- # - name: Run integration tests # (linux/osx)
142
- # if: startsWith(runner.OS, 'windows') == false
143
- # run: DEBUG=testing:* npm run test:integration
144
- # - name: Run integration tests # (windows)
145
- # if: startsWith(runner.OS, 'windows')
146
- # run: set DEBUG=testing:* & npm run test:integration
147
-
148
- # Deploys the final package to NPM
149
- deploy:
150
- needs: [adapter-tests-influxdb1,adapter-tests-influxdb2]
151
-
152
- # Trigger this step only when a commit on master is tagged with a version number
153
- if: |
154
- contains(github.event.head_commit.message, '[skip ci]') == false &&
155
- github.event_name == 'push' &&
156
- startsWith(github.ref, 'refs/tags/')
157
- runs-on: ubuntu-latest
158
- strategy:
159
- matrix:
160
- node-version: [12.x]
161
-
162
- steps:
163
- - name: Checkout code
164
- uses: actions/checkout@v2.3.4
165
-
166
- - name: Use Node.js ${{ matrix.node-version }}
167
- uses: actions/setup-node@v2.3.0
168
- with:
169
- node-version: ${{ matrix.node-version }}
170
-
171
- - name: Extract the version and commit body from the tag
172
- id: extract_release
173
- # The body may be multiline, therefore we need to escape some characters
174
- run: |
175
- VERSION="${{ github.ref }}"
176
- VERSION=${VERSION##*/}
177
- VERSION=${VERSION##*v}
178
- echo "::set-output name=VERSION::$VERSION"
179
- BODY=$(git show -s --format=%b)
180
- BODY="${BODY//'%'/'%25'}"
181
- BODY="${BODY//$'\n'/'%0A'}"
182
- BODY="${BODY//$'\r'/'%0D'}"
183
- echo "::set-output name=BODY::$BODY"
184
-
185
- - name: Install Dependencies
186
- run: npm ci
187
-
188
- # - name: Create a clean build
189
- # run: npm run build
190
- - name: Publish package to npm
191
- run: |
192
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
193
- npm whoami
194
- npm publish
195
-
196
- - name: Create Github Release
197
- uses: actions/create-release@v1
198
- env:
199
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
200
- with:
201
- tag_name: ${{ github.ref }}
202
- release_name: Release v${{ steps.extract_release.outputs.VERSION }}
203
- draft: false
204
- # Prerelease versions create prereleases on Github
205
- prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
206
- body: ${{ steps.extract_release.outputs.BODY }}
207
-
208
- - name: Notify Sentry.io about the release
209
- run: |
210
- npm i -g @sentry/cli
211
- export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
212
- export SENTRY_URL=https://sentry.iobroker.net
213
- export SENTRY_ORG=iobroker
214
- export SENTRY_PROJECT=iobroker-influxdb
215
- export SENTRY_VERSION=iobroker.influxdb@${{ steps.extract_release.outputs.VERSION }}
216
- sentry-cli releases new $SENTRY_VERSION
217
- sentry-cli releases set-commits $SENTRY_VERSION --auto
218
- sentry-cli releases finalize $SENTRY_VERSION
219
-
220
- # Add the following line BEFORE finalize if sourcemap uploads are needed
221
- # sentry-cli releases files $SENTRY_VERSION upload-sourcemaps build/