ac-support-connector 1.0.11 → 1.0.13
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/node.js.yml +3 -9
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/package.json +8 -8
- package/test/test.js +16 -3
|
@@ -16,21 +16,15 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
strategy:
|
|
18
18
|
matrix:
|
|
19
|
-
node-version: [
|
|
19
|
+
node-version: [22.x, 24.x]
|
|
20
20
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
|
-
redis-version: [6]
|
|
22
21
|
|
|
23
22
|
steps:
|
|
24
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v5
|
|
25
24
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
26
|
-
uses: actions/setup-node@
|
|
25
|
+
uses: actions/setup-node@v5
|
|
27
26
|
with:
|
|
28
27
|
node-version: ${{ matrix.node-version }}
|
|
29
|
-
|
|
30
|
-
- name: Start Redis
|
|
31
|
-
uses: supercharge/redis-github-action@1.4.0
|
|
32
|
-
with:
|
|
33
|
-
redis-version: ${{ matrix.redis-version }}
|
|
34
28
|
|
|
35
29
|
- run: yarn install
|
|
36
30
|
- run: yarn run test
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
## [1.0.13](https://github.com/admiralcloud/ac-support-connector/compare/v1.0.12..v1.0.13) (2026-04-04 10:19:59)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fix
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **Connector:** Package updaets | MP | [1bd12738508d496c03b217445bc7ce33e3e1b3bd](https://github.com/admiralcloud/ac-support-connector/commit/1bd12738508d496c03b217445bc7ce33e3e1b3bd)
|
|
8
|
+
Package updates
|
|
9
|
+
Related issues:
|
|
10
|
+
* **Connector:** Package updates | MP | [a616f404236d18ab8d1afa9cc21f8d07bbcc1fb6](https://github.com/admiralcloud/ac-support-connector/commit/a616f404236d18ab8d1afa9cc21f8d07bbcc1fb6)
|
|
11
|
+
Package updates
|
|
12
|
+
Related issues:
|
|
13
|
+
### Tests
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
* **Connector:** Remove real Redis from test | MP | [f50d09c6e5f2959216dfb7454f2733e0fb2dfc4e](https://github.com/admiralcloud/ac-support-connector/commit/f50d09c6e5f2959216dfb7454f2733e0fb2dfc4e)
|
|
17
|
+
Mock Redis in test
|
|
18
|
+
Related issues:
|
|
19
|
+
### Chores
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* **Connector:** Updated Github actions | MP | [b779c602f162af94547c968e267bafb611b6af8f](https://github.com/admiralcloud/ac-support-connector/commit/b779c602f162af94547c968e267bafb611b6af8f)
|
|
23
|
+
Updated Github actions
|
|
24
|
+
Related issues:
|
|
25
|
+
|
|
26
|
+
## [1.0.12](https://github.com/admiralcloud/ac-support-connector/compare/v1.0.11..v1.0.12) (2026-03-21 11:21:38)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fix
|
|
30
|
+
|
|
31
|
+
* **Connector:** Package updates | MP | [618610e844c872386238e10a2dbfb7cbc5af9341](https://github.com/admiralcloud/ac-support-connector/commit/618610e844c872386238e10a2dbfb7cbc5af9341)
|
|
32
|
+
Package updates
|
|
33
|
+
Related issues:
|
|
1
34
|
|
|
2
35
|
## [1.0.11](https://github.com/admiralcloud/ac-support-connector/compare/v1.0.10..v1.0.11) (2026-02-24 19:50:42)
|
|
3
36
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# AC Support Connector
|
|
2
2
|
This module sends unified support payloads to SQS. A dedicated service (not part of the connector) then processes those SQS messages and delivers the support messages to different channels (e.g. Teams, a helpdesk, etc)
|
|
3
3
|
|
|
4
|
-
[](https://github.com/AdmiralCloud/ac-support-connector/actions/workflows/node.js.yml)
|
|
4
|
+
[](https://github.com/AdmiralCloud/ac-support-connector/actions/workflows/node.js.yml) [](https://github.com/AdmiralCloud/ac-support-connector/actions/workflows/github-code-scanning/codeql)
|
|
5
5
|
|
|
6
6
|
# Breaking changes
|
|
7
7
|
## Version 1
|
package/package.json
CHANGED
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
"author": "Mark Poepping (https://www.admiralcloud.com)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "admiralcloud/ac-support-connector",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.13",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@aws-sdk/client-sts": "^3.
|
|
9
|
-
"ac-sqs": "^4.0.
|
|
8
|
+
"@aws-sdk/client-sts": "^3.1024.0",
|
|
9
|
+
"ac-sqs": "^4.0.6",
|
|
10
10
|
"node-cache": "^5.1.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"ac-semantic-release": "^0.
|
|
13
|
+
"ac-semantic-release": "^1.0.1",
|
|
14
14
|
"chai": "^4.5.0",
|
|
15
|
-
"eslint": "^10.0
|
|
16
|
-
"expect": "^30.
|
|
17
|
-
"globals": "^17.
|
|
18
|
-
"ioredis": "^5.9.3",
|
|
15
|
+
"eslint": "^10.2.0",
|
|
16
|
+
"expect": "^30.3.0",
|
|
17
|
+
"globals": "^17.4.0",
|
|
19
18
|
"mocha": "^11.7.5"
|
|
20
19
|
},
|
|
21
20
|
"scripts": {
|
|
@@ -26,6 +25,7 @@
|
|
|
26
25
|
},
|
|
27
26
|
"resolutions": {
|
|
28
27
|
"mocha/diff": "^8.0.3",
|
|
28
|
+
"mocha/serialize-javascript": "^7.0.3",
|
|
29
29
|
"minimatch": "^10.2.1"
|
|
30
30
|
},
|
|
31
31
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
package/test/test.js
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
const { expect } = require('chai');
|
|
2
2
|
|
|
3
|
-
const Redis = require("ioredis");
|
|
4
|
-
const redisInstance = new Redis()
|
|
5
|
-
|
|
6
3
|
const supCon = require('../index')
|
|
7
4
|
|
|
5
|
+
// Minimal Redis stub – no real connection needed
|
|
6
|
+
function createFakeRedis() {
|
|
7
|
+
const store = new Map()
|
|
8
|
+
return {
|
|
9
|
+
async set(key, _value, exFlag, seconds, nxFlag) {
|
|
10
|
+
if (nxFlag === 'nx' && store.has(key)) return null
|
|
11
|
+
store.set(key, true)
|
|
12
|
+
setTimeout(() => store.delete(key), seconds * 1000)
|
|
13
|
+
return 'OK'
|
|
14
|
+
},
|
|
15
|
+
quit() {}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const redisInstance = createFakeRedis()
|
|
20
|
+
|
|
8
21
|
const string1001 = new Array(512000).join('b')
|
|
9
22
|
|
|
10
23
|
function timeout(ms) {
|