@kronos-integration/service-influxdb 1.3.34 → 2.0.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.
@@ -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,13 +19,12 @@ jobs:
18
19
  os:
19
20
  - ubuntu-latest
20
21
  node-version:
21
- - 22.20.0
22
- - 24.9.0
22
+ - 24.10.0
23
23
  steps:
24
24
  - name: checkout
25
25
  uses: actions/checkout@v5.0.0
26
26
  - name: prepare node
27
- uses: actions/setup-node@v5.0.0
27
+ uses: actions/setup-node@v6.0.0
28
28
  with:
29
29
  node-version: ${{ matrix.node-version }}
30
30
  cache: npm
@@ -54,9 +54,9 @@ jobs:
54
54
  - name: checkout
55
55
  uses: actions/checkout@v5.0.0
56
56
  - name: prepare node
57
- uses: actions/setup-node@v5.0.0
57
+ uses: actions/setup-node@v6.0.0
58
58
  with:
59
- node-version: 22.20.0
59
+ node-version: 24.10.0
60
60
  cache: npm
61
61
  cache-dependency-path: package-lock.json
62
62
  - name: install
@@ -65,7 +65,6 @@ jobs:
65
65
  run: npx semantic-release
66
66
  env:
67
67
  CI: "true"
68
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69
68
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
69
  finish:
71
70
  needs:
@@ -21,9 +21,9 @@ jobs:
21
21
  with:
22
22
  languages: javascript
23
23
  - name: prepare node
24
- uses: actions/setup-node@v5.0.0
24
+ uses: actions/setup-node@v6.0.0
25
25
  with:
26
- node-version: 22.20.0
26
+ node-version: 24.10.0
27
27
  cache: npm
28
28
  - name: install
29
29
  run: npm ci
@@ -11,14 +11,14 @@ jobs:
11
11
  strategy:
12
12
  matrix:
13
13
  node-version:
14
- - 22.20.0
14
+ - 24.10.0
15
15
  browser:
16
16
  - chrome
17
17
  steps:
18
18
  - name: checkout
19
19
  uses: actions/checkout@v5.0.0
20
20
  - name: prepare node
21
- uses: actions/setup-node@v5.0.0
21
+ uses: actions/setup-node@v6.0.0
22
22
  with:
23
23
  node-version: ${{ matrix.node-version }}
24
24
  - name: remove lock
@@ -12,9 +12,9 @@ jobs:
12
12
  - name: checkout
13
13
  uses: actions/checkout@v5.0.0
14
14
  - name: prepare node
15
- uses: actions/setup-node@v5.0.0
15
+ uses: actions/setup-node@v6.0.0
16
16
  with:
17
- node-version: 22.20.0
17
+ node-version: 24.10.0
18
18
  - name: install
19
19
  run: npm ci
20
20
  - name: run docs
package/package.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-influxdb",
3
- "version": "1.3.34",
3
+ "version": "2.0.0",
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 && node --run lint:typescript",
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": "^13.2.38",
41
- "pacc": "^4.39.3"
35
+ "@kronos-integration/service": "^14.0.0",
36
+ "pacc": "^4.41.0"
42
37
  },
43
38
  "devDependencies": {
44
- "@types/node": "^24.7.0",
39
+ "@types/node": "^24.9.1",
45
40
  "ava": "^6.4.1",
46
41
  "c8": "^10.1.3",
47
42
  "documentation": "^14.0.3",
48
- "semantic-release": "^24.2.9",
49
- "typescript": "^5.9.3"
43
+ "semantic-release": "^25.0.1"
50
44
  },
51
45
  "engines": {
52
- "node": ">=22.20.0"
46
+ "node": ">=24.10.0"
53
47
  },
54
48
  "repository": {
55
49
  "type": "git",
@@ -58,8 +52,7 @@
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
  }
65
58
  }
@@ -1,4 +0,0 @@
1
- export class PointEndpoint extends ReceiveEndpoint {
2
- receive(value: any): Promise<void>;
3
- }
4
- import { ReceiveEndpoint } from "@kronos-integration/endpoint";
@@ -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";