iobroker.sql 1.15.4 → 1.16.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.sql",
3
3
  "description": "Log state sql in a two-stages process (first to Redis, then to CouchDB)",
4
- "version": "1.15.4",
4
+ "version": "1.16.0",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "contributors": [
7
7
  "bluefox <dogafox@gmail.com>",
@@ -22,27 +22,41 @@
22
22
  ],
23
23
  "optionalDependencies": {
24
24
  "mysql": "^2.18.1",
25
- "pg": "^8.5.1",
26
- "sqlite3": "^5.0.1",
25
+ "pg": "^8.7.1",
26
+ "sqlite3": "^5.0.2",
27
27
  "mssql": "^6.3.1"
28
28
  },
29
29
  "dependencies": {
30
30
  "sql-client": "^2.0.3",
31
- "@iobroker/adapter-core": "^2.4.0"
31
+ "@iobroker/adapter-core": "^2.5.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@alcalzone/release-script": "^1.8.3",
34
+ "@alcalzone/release-script": "^3.4.1",
35
+ "@alcalzone/release-script-plugin-iobroker": "^3.4.1",
36
+ "@alcalzone/release-script-plugin-license": "^3.4.1",
37
+ "axios": "^0.24.0",
35
38
  "gulp": "^4.0.2",
36
- "mocha": "^8.2.1",
37
- "chai": "^4.2.0"
39
+ "mocha": "^9.1.3",
40
+ "chai": "^4.3.4"
38
41
  },
39
42
  "bugs": {
40
43
  "url": "https://github.com/ioBroker/ioBroker.sql/issues"
41
44
  },
42
45
  "main": "main.js",
46
+ "files": [
47
+ "admin/",
48
+ "img/",
49
+ "lib/",
50
+ "io-package.json",
51
+ "LICENSE",
52
+ "main.js"
53
+ ],
43
54
  "scripts": {
44
55
  "test": "node node_modules/mocha/bin/mocha --exit",
45
- "release": "release-script"
56
+ "release": "release-script",
57
+ "release-patch": "release-script patch --yes",
58
+ "release-minor": "release-script minor --yes",
59
+ "release-major": "release-script major --yes"
46
60
  },
47
61
  "license": "MIT"
48
62
  }
@@ -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,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,159 +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.1.4
34
- with:
35
- node-version: ${{ matrix.node-version }}
36
-
37
-
38
- - name: Install Dependencies
39
- run: npm install
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:
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: [10.x, 12.x, 14.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.1.4
66
- with:
67
- node-version: ${{ matrix.node-version }}
68
-
69
- - name: Install Dependencies
70
- run: npm install
71
-
72
- # - name: Run local tests
73
- # run: npm test
74
- # - name: Run unit tests
75
- # run: npm run test:unit
76
- # - name: Run integration tests # (linux/osx)
77
- # if: startsWith(runner.OS, 'windows') == false
78
- # run: DEBUG=testing:* npm run test:integration
79
- # - name: Run integration tests # (windows)
80
- # if: startsWith(runner.OS, 'windows')
81
- # run: set DEBUG=testing:* & npm run test:integration
82
-
83
- # Deploys the final package to NPM
84
- deploy:
85
- needs: [adapter-tests]
86
-
87
- # Trigger this step only when a commit on master is tagged with a version number
88
- if: |
89
- contains(github.event.head_commit.message, '[skip ci]') == false &&
90
- github.event_name == 'push' &&
91
- github.event.base_ref == 'refs/heads/master' &&
92
- startsWith(github.ref, 'refs/tags/')
93
- runs-on: ubuntu-latest
94
- strategy:
95
- matrix:
96
- node-version: [12.x]
97
-
98
- steps:
99
- - name: Checkout code
100
- uses: actions/checkout@v2.3.4
101
-
102
- - name: Use Node.js ${{ matrix.node-version }}
103
- uses: actions/setup-node@v2.1.4
104
- with:
105
- node-version: ${{ matrix.node-version }}
106
-
107
- - name: Extract the version and commit body from the tag
108
- id: extract_release
109
- # The body may be multiline, therefore we need to escape some characters
110
- run: |
111
- VERSION="${{ github.ref }}"
112
- VERSION=${VERSION##*/}
113
- VERSION=${VERSION##*v}
114
- echo "::set-output name=VERSION::$VERSION"
115
- BODY=$(git show -s --format=%b)
116
- BODY="${BODY//'%'/'%25'}"
117
- BODY="${BODY//$'\n'/'%0A'}"
118
- BODY="${BODY//$'\r'/'%0D'}"
119
- echo "::set-output name=BODY::$BODY"
120
-
121
- - name: Install Dependencies
122
- run: npm install
123
-
124
- # - name: Create a clean build
125
- # run: npm run build
126
- - name: Publish package to npm
127
- run: |
128
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
129
- npm whoami
130
- npm publish
131
-
132
- - name: Create Github Release
133
- uses: actions/create-release@v1
134
- env:
135
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136
- with:
137
- tag_name: ${{ github.ref }}
138
- release_name: Release v${{ steps.extract_release.outputs.VERSION }}
139
- draft: false
140
- # Prerelease versions create prereleases on Github
141
- prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
142
- body: ${{ steps.extract_release.outputs.BODY }}
143
-
144
- - name: Notify Sentry.io about the release
145
- run: |
146
- npm i -g @sentry/cli
147
- export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
148
- export SENTRY_URL=https://sentry.iobroker.net
149
- export SENTRY_ORG=iobroker
150
- export SENTRY_PROJECT=iobroker-sql
151
- export SENTRY_VERSION=iobroker.sql@${{ steps.extract_release.outputs.VERSION }}
152
- sentry-cli releases new $SENTRY_VERSION
153
- sentry-cli releases finalize $SENTRY_VERSION
154
-
155
- # Add the following line BEFORE finalize if repositories are connected in Sentry
156
- # sentry-cli releases set-commits $SENTRY_VERSION --auto
157
-
158
- # Add the following line BEFORE finalize if sourcemap uploads are needed
159
- # sentry-cli releases files $SENTRY_VERSION upload-sourcemaps build/