@kronos-integration/service-influxdb 1.3.34 → 2.0.1
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/.github/workflows/ci.yml +7 -12
- package/.github/workflows/codeql_analysis.yml +3 -4
- package/.github/workflows/update_package_lock.yml +4 -10
- package/.github/workflows/update_readme_api.yml +3 -3
- package/README.md +0 -1
- package/package.json +12 -18
- package/types/point-endpoint.d.mts +0 -4
- package/types/service-influxdb.d.mts +0 -14
package/.github/workflows/ci.yml
CHANGED
|
@@ -10,6 +10,7 @@ on:
|
|
|
10
10
|
- next
|
|
11
11
|
permissions:
|
|
12
12
|
contents: read
|
|
13
|
+
id-token: write
|
|
13
14
|
jobs:
|
|
14
15
|
test-node:
|
|
15
16
|
runs-on: ubuntu-latest
|
|
@@ -18,17 +19,14 @@ jobs:
|
|
|
18
19
|
os:
|
|
19
20
|
- ubuntu-latest
|
|
20
21
|
node-version:
|
|
21
|
-
-
|
|
22
|
-
- 24.9.0
|
|
22
|
+
- 24.11.1
|
|
23
23
|
steps:
|
|
24
24
|
- name: checkout
|
|
25
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v6.0.0
|
|
26
26
|
- name: prepare node
|
|
27
|
-
uses: actions/setup-node@
|
|
27
|
+
uses: actions/setup-node@v6.0.0
|
|
28
28
|
with:
|
|
29
29
|
node-version: ${{ matrix.node-version }}
|
|
30
|
-
cache: npm
|
|
31
|
-
cache-dependency-path: package-lock.json
|
|
32
30
|
- name: install
|
|
33
31
|
run: npm ci
|
|
34
32
|
- name: test and coverage
|
|
@@ -52,20 +50,17 @@ jobs:
|
|
|
52
50
|
id-token: write
|
|
53
51
|
steps:
|
|
54
52
|
- name: checkout
|
|
55
|
-
uses: actions/checkout@
|
|
53
|
+
uses: actions/checkout@v6.0.0
|
|
56
54
|
- name: prepare node
|
|
57
|
-
uses: actions/setup-node@
|
|
55
|
+
uses: actions/setup-node@v6.0.0
|
|
58
56
|
with:
|
|
59
|
-
node-version:
|
|
60
|
-
cache: npm
|
|
61
|
-
cache-dependency-path: package-lock.json
|
|
57
|
+
node-version: 24.11.1
|
|
62
58
|
- name: install
|
|
63
59
|
run: npm ci
|
|
64
60
|
- name: release
|
|
65
61
|
run: npx semantic-release
|
|
66
62
|
env:
|
|
67
63
|
CI: "true"
|
|
68
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
69
64
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
70
65
|
finish:
|
|
71
66
|
needs:
|
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
steps:
|
|
14
14
|
- name: checkout
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@v6.0.0
|
|
16
16
|
- name: git checkout
|
|
17
17
|
run: git checkout
|
|
18
18
|
if: ${{ github.event_name == 'pull_request' }}
|
|
@@ -21,10 +21,9 @@ jobs:
|
|
|
21
21
|
with:
|
|
22
22
|
languages: javascript
|
|
23
23
|
- name: prepare node
|
|
24
|
-
uses: actions/setup-node@
|
|
24
|
+
uses: actions/setup-node@v6.0.0
|
|
25
25
|
with:
|
|
26
|
-
node-version:
|
|
27
|
-
cache: npm
|
|
26
|
+
node-version: 24.11.1
|
|
28
27
|
- name: install
|
|
29
28
|
run: npm ci
|
|
30
29
|
- name: perform CodeQL analysis
|
|
@@ -8,19 +8,13 @@ on:
|
|
|
8
8
|
jobs:
|
|
9
9
|
update_package_lock:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
|
-
strategy:
|
|
12
|
-
matrix:
|
|
13
|
-
node-version:
|
|
14
|
-
- 22.20.0
|
|
15
|
-
browser:
|
|
16
|
-
- chrome
|
|
17
11
|
steps:
|
|
18
12
|
- name: checkout
|
|
19
|
-
uses: actions/checkout@
|
|
13
|
+
uses: actions/checkout@v6.0.0
|
|
20
14
|
- name: prepare node
|
|
21
|
-
uses: actions/setup-node@
|
|
15
|
+
uses: actions/setup-node@v6.0.0
|
|
22
16
|
with:
|
|
23
|
-
node-version:
|
|
17
|
+
node-version: 24.11.1
|
|
24
18
|
- name: remove lock
|
|
25
19
|
run: rm package-lock.json
|
|
26
20
|
- name: install playwright
|
|
@@ -28,7 +22,7 @@ jobs:
|
|
|
28
22
|
- name: test
|
|
29
23
|
run: npm install-test
|
|
30
24
|
env:
|
|
31
|
-
BROWSER:
|
|
25
|
+
BROWSER: chrome
|
|
32
26
|
- name: create pull request
|
|
33
27
|
uses: gr2m/create-or-update-pull-request-action@v1.10.1
|
|
34
28
|
env:
|
|
@@ -10,11 +10,11 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
12
|
- name: checkout
|
|
13
|
-
uses: actions/checkout@
|
|
13
|
+
uses: actions/checkout@v6.0.0
|
|
14
14
|
- name: prepare node
|
|
15
|
-
uses: actions/setup-node@
|
|
15
|
+
uses: actions/setup-node@v6.0.0
|
|
16
16
|
with:
|
|
17
|
-
node-version:
|
|
17
|
+
node-version: 24.11.1
|
|
18
18
|
- name: install
|
|
19
19
|
run: npm ci
|
|
20
20
|
- name: run docs
|
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
[](https://spdx.org/licenses/0BSD.html)
|
|
2
|
-
[](https://typescriptlang.org)
|
|
3
2
|
[](https://github.com/Kronos-Integration/service-influxdb/issues)
|
|
4
3
|
[](https://actions-badge.atrox.dev/Kronos-Integration/service-influxdb/goto)
|
|
5
4
|
[](https://github.com/prettier/prettier)
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service-influxdb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
7
7
|
},
|
|
8
|
-
"types": "./types/service-influxdb.d.mts",
|
|
9
8
|
"exports": {
|
|
10
9
|
".": {
|
|
11
|
-
"default": "./src/service-influxdb.mjs"
|
|
12
|
-
"types": "./types/service-influxdb.d.mts"
|
|
10
|
+
"default": "./src/service-influxdb.mjs"
|
|
13
11
|
}
|
|
14
12
|
},
|
|
15
13
|
"description": "influxdb service",
|
|
@@ -25,31 +23,27 @@
|
|
|
25
23
|
],
|
|
26
24
|
"license": "BSD-2-Clause",
|
|
27
25
|
"scripts": {
|
|
28
|
-
"prepare": "node --run prepare:typescript",
|
|
29
|
-
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
|
|
30
26
|
"test": "node --run test:ava",
|
|
31
27
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
32
28
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
33
29
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
34
|
-
"lint": "node --run lint:docs
|
|
35
|
-
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
36
|
-
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
30
|
+
"lint": "node --run lint:docs",
|
|
31
|
+
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
37
32
|
},
|
|
38
33
|
"dependencies": {
|
|
39
34
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
40
|
-
"@kronos-integration/service": "^
|
|
41
|
-
"pacc": "^4.
|
|
35
|
+
"@kronos-integration/service": "^14.0.0",
|
|
36
|
+
"pacc": "^4.41.1"
|
|
42
37
|
},
|
|
43
38
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^24.
|
|
39
|
+
"@types/node": "^24.10.1",
|
|
45
40
|
"ava": "^6.4.1",
|
|
46
41
|
"c8": "^10.1.3",
|
|
47
42
|
"documentation": "^14.0.3",
|
|
48
|
-
"semantic-release": "^
|
|
49
|
-
"typescript": "^5.9.3"
|
|
43
|
+
"semantic-release": "^25.0.2"
|
|
50
44
|
},
|
|
51
45
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
46
|
+
"node": ">=24.10.0"
|
|
53
47
|
},
|
|
54
48
|
"repository": {
|
|
55
49
|
"type": "git",
|
|
@@ -58,8 +52,8 @@
|
|
|
58
52
|
"template": {
|
|
59
53
|
"inheritFrom": [
|
|
60
54
|
"arlac77/template-arlac77-github",
|
|
61
|
-
"arlac77/template-kronos-component"
|
|
62
|
-
"arlac77/template-typescript"
|
|
55
|
+
"arlac77/template-kronos-component"
|
|
63
56
|
]
|
|
64
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"packageManager": "npm@11.6.3+sha512.4085a763162e0e3acd19a4e9d23ad3aa0978e501ccf947dd7233c12a689ae0bb0190763c4ef12366990056b34eec438903ffed38fde4fbd722a17c2a7407ee92"
|
|
65
59
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { PointEndpoint };
|
|
2
|
-
/**
|
|
3
|
-
* influxdb client.
|
|
4
|
-
*/
|
|
5
|
-
export class ServiceInfluxdb extends Service {
|
|
6
|
-
endpointOnDemand(expression: any, from: any): PointEndpoint;
|
|
7
|
-
endpointFactoryFromConfig(name: any, definition: any, ic: any): any;
|
|
8
|
-
client: InfluxDB;
|
|
9
|
-
writeApi: import("@influxdata/influxdb-client").WriteApi;
|
|
10
|
-
}
|
|
11
|
-
export default ServiceInfluxdb;
|
|
12
|
-
import { PointEndpoint } from "./point-endpoint.mjs";
|
|
13
|
-
import { Service } from "@kronos-integration/service";
|
|
14
|
-
import { InfluxDB } from "@influxdata/influxdb-client";
|