Skip to content

Commit 71b8665

Browse files
authored
Merge pull request #1437 from blackflux/dev
[Gally]: master <- dev
2 parents ca07319 + 1722123 commit 71b8665

27 files changed

+2255
-2013
lines changed

.circleci/config.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@ workflows:
22
node-multi-build:
33
jobs:
44
- gally-create-pr
5-
- test-node-v18:
5+
- test-node-v20:
66
requires:
77
- gally-create-pr
8-
- test-node-v21:
8+
- test-node-v23:
99
requires:
1010
- gally-create-pr
11-
- test-node-v20:
11+
- test-node-v22:
1212
requires:
1313
- gally-create-pr
1414
- gally-auto-approve:
1515
requires:
1616
- gally-create-pr
17-
- test-node-v18
18-
- test-node-v21
1917
- test-node-v20
18+
- test-node-v23
19+
- test-node-v22
2020
filters:
2121
branches:
2222
only: /dependabot\/.*/
2323
- release:
2424
requires:
2525
- gally-create-pr
26-
- test-node-v18
27-
- test-node-v21
2826
- test-node-v20
27+
- test-node-v23
28+
- test-node-v22
2929
filters:
3030
branches:
3131
only: master
@@ -40,7 +40,7 @@ jobs:
4040
- run: ga promote $CIRCLE_BRANCH
4141
release:
4242
docker:
43-
- image: cimg/node:20.11
43+
- image: cimg/node:22.13
4444
steps:
4545
- checkout
4646
- run:
@@ -87,9 +87,9 @@ jobs:
8787
- run: >-
8888
ga approve $CIRCLE_PR_NUMBER --condition
8989
"base.ref=dev&state=open&user.login=dependabot-preview[bot]"
90-
test-node-v18:
90+
test-node-v20:
9191
docker:
92-
- image: cimg/node:18.19
92+
- image: cimg/node:20.18
9393
steps:
9494
- checkout
9595
- run:
@@ -119,9 +119,9 @@ jobs:
119119
- run: >-
120120
(git add . && git diff-index --quiet HEAD --) || (git status && exit
121121
1);
122-
test-node-v20:
122+
test-node-v23:
123123
docker:
124-
- image: cimg/node:20.11
124+
- image: cimg/node:23.6
125125
steps:
126126
- checkout
127127
- run:
@@ -151,9 +151,9 @@ jobs:
151151
- run: >-
152152
(git add . && git diff-index --quiet HEAD --) || (git status && exit
153153
1);
154-
test-node-v21:
154+
test-node-v22:
155155
docker:
156-
- image: cimg/node:21.6
156+
- image: cimg/node:22.13
157157
steps:
158158
- checkout
159159
- run:

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"extends": [
44
"airbnb-base",
55
"plugin:mocha/recommended",
6-
"plugin:markdown/recommended"
6+
"plugin:markdown/recommended-legacy"
77
],
88
"rules": {
99
"@blackflux/rules/c8-prevent-ignore": 1,

.gally.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"strict": true,
2424
"contexts": [
2525
"ci/circleci: gally-create-pr",
26-
"ci/circleci: test-node-v18",
27-
"ci/circleci: test-node-v21",
28-
"ci/circleci: test-node-v20"
26+
"ci/circleci: test-node-v20",
27+
"ci/circleci: test-node-v23",
28+
"ci/circleci: test-node-v22"
2929
]
3030
},
3131
"enforce_admins": false,

.roboconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"packageName": "node-tdd",
99
"projectName": "node-tdd",
1010
"owner": "simlu",
11-
"nodeVersion": "18",
11+
"nodeVersion": "20",
1212
"ownerName": "Lukas Siemon",
1313
"mergeBot": "MrsFlux",
1414
"nccEnabled": false

eslint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default [
1313
...compat.extends(
1414
'airbnb-base',
1515
'plugin:mocha/recommended',
16-
'plugin:markdown/recommended'
16+
'plugin:markdown/recommended-legacy'
1717
),
1818
...compat.env({ es6: true, node: true, mocha: true }),
1919
...compat.plugins('json', 'mocha'),

package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"t": "yarn test",
1515
"ts": "yarn run test-simple",
1616
"tsv": "yarn run test-simple --verbose",
17-
"semantic-release": "yarn run build-clean && npx semantic-release",
17+
"semantic-release": "yarn run build-clean && yarn exec semantic-release",
1818
"gardener": "node gardener.js",
1919
"u": "yarn upgrade --latest --force",
2020
"i": "yarn install --frozen-lockfile",
@@ -41,25 +41,25 @@
4141
},
4242
"homepage": "https://github.com/blackflux/node-tdd#readme",
4343
"devDependencies": {
44-
"@aws-sdk/client-sqs": "3.523.0",
45-
"@babel/core": "7.24.0",
46-
"@babel/eslint-parser": "7.23.10",
47-
"@babel/register": "7.23.7",
48-
"@blackflux/eslint-plugin-rules": "3.0.1",
49-
"@blackflux/robo-config-plugin": "9.3.2",
50-
"aws-sdk-wrap": "13.2.1",
51-
"axios": "1.6.7",
52-
"c8": "9.1.0",
53-
"chai": "5.1.0",
54-
"eslint": "8.57.0",
44+
"@aws-sdk/client-sqs": "3.734.0",
45+
"@babel/core": "7.26.7",
46+
"@babel/eslint-parser": "7.26.5",
47+
"@babel/register": "7.25.9",
48+
"@blackflux/eslint-plugin-rules": "4.0.0",
49+
"@blackflux/robo-config-plugin": "10.0.0",
50+
"aws-sdk-wrap": "13.3.2",
51+
"axios": "1.7.9",
52+
"c8": "10.1.3",
53+
"chai": "5.1.2",
54+
"eslint": "9.19.0",
5555
"eslint-config-airbnb-base": "15.0.0",
56-
"eslint-plugin-import": "2.29.1",
57-
"eslint-plugin-json": "3.1.0",
58-
"eslint-plugin-markdown": "3.0.1",
59-
"eslint-plugin-mocha": "10.3.0",
56+
"eslint-plugin-import": "2.31.0",
57+
"eslint-plugin-json": "4.0.1",
58+
"eslint-plugin-markdown": "5.1.0",
59+
"eslint-plugin-mocha": "10.5.0",
6060
"fancy-log": "2.0.0",
61-
"js-gardener": "5.0.4",
62-
"lambda-monitor-logger": "5.0.1"
61+
"js-gardener": "6.0.2",
62+
"lambda-monitor-logger": "5.1.1"
6363
},
6464
"licenses": [
6565
{
@@ -68,14 +68,14 @@
6868
}
6969
],
7070
"engines": {
71-
"node": ">= 18"
71+
"node": ">= 20"
7272
},
7373
"files": [
7474
"lib"
7575
],
7676
"dependencies": {
77-
"callsites": "4.1.0",
78-
"joi-strict": "3.0.1",
77+
"callsites": "4.2.0",
78+
"joi-strict": "4.0.0",
7979
"lodash.clonedeep": "4.5.0",
8080
"lodash.get": "4.4.2",
8181
"lru-cache-ext": "4.1.1",

src/modules/cache-clearer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const getFns = (obj) => {
1515
const value = LRU.prototype[key];
1616
assert(typeof value === 'function');
1717
result.push({ obj, key, value });
18-
} catch (e) { /* ignored */ }
18+
} catch { /* ignored */ }
1919
}
2020
return result;
2121
};

src/modules/request-recorder/heal-sqs/migration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const tryParseXML = (body) => {
88
xml2js.parseString(body, (err, result) => {
99
parsed = JSON.parse(JSON.stringify(result));
1010
});
11-
} catch (e) {
11+
} catch {
1212
return null;
1313
}
1414
return parsed;

src/modules/request-recorder/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const tryParseJson = (value) => {
66
}
77
try {
88
return JSON.parse(value);
9-
} catch (e) {
9+
} catch {
1010
return value;
1111
}
1212
};

test/modules/request-recorder.spec.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
255255
accept: 'application/json, text/plain, */*',
256256
'content-type': 'application/json',
257257
'accept-encoding': 'gzip, compress, deflate, br',
258-
'user-agent': 'axios/1.6.7',
258+
'user-agent': 'axios/1.7.9',
259259
'content-length': '59'
260260
},
261261
response: { data: `${id}` },
@@ -329,7 +329,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
329329
reqheaders: {
330330
accept: 'application/json, text/plain, */*',
331331
'content-type': 'application/json',
332-
'user-agent': 'axios/1.6.7',
332+
'user-agent': 'axios/1.7.9',
333333
'content-length': '^\\d+$',
334334
'accept-encoding': 'gzip, compress, deflate, br'
335335
},
@@ -475,7 +475,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
475475
host: server.host,
476476
'content-length': '59',
477477
'accept-encoding': 'gzip, compress, deflate, br',
478-
'user-agent': 'axios/1.6.7'
478+
'user-agent': 'axios/1.7.9'
479479
}
480480
}),
481481
makeCassetteEntry(3)
@@ -505,7 +505,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
505505
host: server.host,
506506
'content-length': '59',
507507
'accept-encoding': 'gzip, compress, deflate, br',
508-
'user-agent': 'axios/1.6.7'
508+
'user-agent': 'axios/1.7.9'
509509
}
510510
}),
511511
makeCassetteEntry(3)
@@ -527,7 +527,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
527527
accept: 'application/json, text/plain, */*',
528528
host: server.host,
529529
'accept-encoding': 'gzip, compress, deflate, br',
530-
'user-agent': 'axios/1.6.7'
530+
'user-agent': 'axios/1.7.9'
531531
},
532532
response: {},
533533
responseIsBinary: false,
@@ -578,7 +578,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
578578
reqheaders: {
579579
accept: 'application/json, text/plain, */*',
580580
'accept-encoding': 'gzip, compress, deflate, br',
581-
host: `${server2.host} @ axios/1.6.7`,
581+
host: `${server2.host} @ axios/1.7.9`,
582582
'user-agent': '^axios/.*$'
583583
},
584584
response: {
@@ -642,7 +642,7 @@ describe('Testing RequestRecorder', { useTmpDir: true, timestamp: 0 }, () => {
642642
reqheaders: {
643643
accept: 'application/json, text/plain, */*',
644644
'accept-encoding': 'gzip, compress, deflate, br',
645-
'user-agent': 'axios/1.6.7'
645+
'user-agent': 'axios/1.7.9'
646646
},
647647
response: {},
648648
responseIsBinary: false,

test/modules/request-recorder.spec.js__fixtures/post-questionmark.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"content-type": "application/x-www-form-urlencoded",
1212
"host": "test.com",
1313
"accept-encoding": "gzip, compress, deflate, br",
14-
"user-agent": "axios/1.6.7"
14+
"user-agent": "axios/1.7.9"
1515
},
1616
"response": "ok"
1717
}

test/modules/request-recorder.spec.js__fixtures/post.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"content-type": "application/x-www-form-urlencoded",
1212
"host": "test.com",
1313
"accept-encoding": "gzip, compress, deflate, br",
14-
"user-agent": "axios/1.6.7"
14+
"user-agent": "axios/1.7.9"
1515
},
1616
"response": "ok"
1717
}

test/modules/response-healing.spec.js__fixtures/json_bad-md5.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"x-amz-content-sha256": "^[a-f0-9]{64}$",
4343
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
4444
"x-amz-target": "AmazonSQS.SendMessageBatch",
45-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
45+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
46+
"x-amzn-query-mode": "true"
4647
}
4748
}
4849
]

test/modules/response-healing.spec.js__fixtures/json_get-queue-url.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"x-amz-content-sha256": "^[a-f0-9]{64}$",
2323
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
2424
"x-amz-target": "AmazonSQS.GetQueueUrl",
25-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
25+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
26+
"x-amzn-query-mode": "true"
2627
}
2728
}
2829
]

test/modules/response-healing.spec.js__fixtures/xml_create-queue.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"x-amz-content-sha256": "^[a-f0-9]{64}$",
3636
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
3737
"x-amz-target": "AmazonSQS.CreateQueue",
38-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
38+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
39+
"x-amzn-query-mode": "true"
3940
}
4041
}
4142
]

test/modules/response-healing.spec.js__fixtures/xml_create-queue_bad-xml.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"x-amz-content-sha256": "^[a-f0-9]{64}$",
3434
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
3535
"x-amz-target": "AmazonSQS.CreateQueue",
36-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
36+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
37+
"x-amzn-query-mode": "true"
3738
}
3839
}
3940
]

test/modules/response-healing.spec.js__fixtures/xml_create-queue_error.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"x-amz-content-sha256": "^[a-f0-9]{64}$",
3737
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
3838
"x-amz-target": "AmazonSQS.CreateQueue",
39-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
39+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
40+
"x-amzn-query-mode": "true"
4041
}
4142
}
4243
]

test/modules/response-healing.spec.js__fixtures/xml_get-queue-attributes.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"x-amz-content-sha256": "^[a-f0-9]{64}$",
3333
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
3434
"x-amz-target": "AmazonSQS.GetQueueAttributes",
35-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
35+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
36+
"x-amzn-query-mode": "true"
3637
}
3738
}
3839
]

test/modules/response-healing.spec.js__fixtures/xml_get-queue-url.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"x-amz-content-sha256": "^[a-f0-9]{64}$",
2323
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
2424
"x-amz-target": "AmazonSQS.GetQueueUrl",
25-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
25+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
26+
"x-amzn-query-mode": "true"
2627
}
2728
}
2829
]

test/modules/response-healing.spec.js__fixtures/xml_get-queue-url_error.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"x-amz-content-sha256": "^[a-f0-9]{64}$",
2424
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
2525
"x-amz-target": "AmazonSQS.GetQueueUrl",
26-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
26+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
27+
"x-amzn-query-mode": "true"
2728
}
2829
}
2930
]

test/modules/response-healing.spec.js__fixtures/xml_list-queue-tags.json__expected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"x-amz-content-sha256": "^[a-f0-9]{64}$",
2727
"x-amz-date": "^[0-9]{8}T[0-9]{6}Z$",
2828
"x-amz-target": "AmazonSQS.ListQueueTags",
29-
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$"
29+
"x-amz-user-agent": "^aws-sdk-js/[0-9]+.[0-9]+.[0-9]+$",
30+
"x-amzn-query-mode": "true"
3031
}
3132
}
3233
]

0 commit comments

Comments
 (0)