sqs-producer 5.0.0 → 6.0.0-canary.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/codeql.yml +2 -2
- package/.github/workflows/coverage.yml +4 -0
- package/.github/workflows/docs.yml +1 -1
- package/.github/workflows/publish.yml +4 -0
- package/.github/workflows/test.yml +4 -0
- package/CHANGELOG.md +4 -12
- package/dist/format.js +1 -2
- package/dist/validation.js +3 -4
- package/package.json +20 -17
|
@@ -13,10 +13,10 @@ name: "CodeQL"
|
|
|
13
13
|
|
|
14
14
|
on:
|
|
15
15
|
push:
|
|
16
|
-
branches: [ "main" ]
|
|
16
|
+
branches: [ "main", "canary", "*.x" ]
|
|
17
17
|
pull_request:
|
|
18
18
|
# The branches below must be a subset of the branches above
|
|
19
|
-
branches: [ "main" ]
|
|
19
|
+
branches: [ "main", "canary", "*.x" ]
|
|
20
20
|
schedule:
|
|
21
21
|
- cron: '41 21 * * 3'
|
|
22
22
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
## [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* updating ProducerOptions to use QueueUrl hostname ([#102](https://github.com/bbc/sqs-producer/issues/102)) ([370c363](https://github.com/bbc/sqs-producer/commit/370c3637ff161ee72bb2058b0e0dea7f77f9112f))
|
|
7
|
-
|
|
1
|
+
## [6.0.0-canary.1](https://github.com/bbc/sqs-producer/compare/v5.0.0...v6.0.0-canary.1) (2024-06-28)
|
|
8
2
|
|
|
9
3
|
### Chores
|
|
10
4
|
|
|
11
|
-
*
|
|
12
|
-
* **
|
|
13
|
-
*
|
|
14
|
-
* handle breaking changes ([4509173](https://github.com/bbc/sqs-producer/commit/4509173bfe38be97b5e4b1a3b2a56881109e8c84))
|
|
15
|
-
* improve and update ci cd ([#107](https://github.com/bbc/sqs-producer/issues/107)) ([fe7e708](https://github.com/bbc/sqs-producer/commit/fe7e708435c0f1680ab060383f6edd0c00e9abee))
|
|
5
|
+
* adjust workflows for canary publishing ([36501bf](https://github.com/bbc/sqs-producer/commit/36501bf342c89105bc6c4812da8be24b330a8016))
|
|
6
|
+
* **release:** updating package version ([e8edc53](https://github.com/bbc/sqs-producer/commit/e8edc534bfd872bf9816de19e781d8c799019e27))
|
|
7
|
+
* updating dependencies ([#109](https://github.com/bbc/sqs-producer/issues/109)) ([875854d](https://github.com/bbc/sqs-producer/commit/875854de30c25a6ed8435c221aae0938c55d1a4c))
|
package/dist/format.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toEntry =
|
|
3
|
+
exports.toEntry = toEntry;
|
|
4
4
|
const validation_1 = require("./validation");
|
|
5
5
|
/**
|
|
6
6
|
* Converts a message object to a SendMessageBatchRequestEntry
|
|
@@ -80,4 +80,3 @@ function toEntry(message) {
|
|
|
80
80
|
}
|
|
81
81
|
throw new Error('A message can either be an object or a string');
|
|
82
82
|
}
|
|
83
|
-
exports.toEntry = toEntry;
|
package/dist/validation.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isString = isString;
|
|
4
|
+
exports.isObject = isObject;
|
|
5
|
+
exports.isMessageAttributeValid = isMessageAttributeValid;
|
|
4
6
|
/**
|
|
5
7
|
* Checks if the value is a string
|
|
6
8
|
* @param value - The value to check
|
|
@@ -8,7 +10,6 @@ exports.isMessageAttributeValid = exports.isObject = exports.isString = void 0;
|
|
|
8
10
|
function isString(value) {
|
|
9
11
|
return typeof value === 'string' || value instanceof String;
|
|
10
12
|
}
|
|
11
|
-
exports.isString = isString;
|
|
12
13
|
/**
|
|
13
14
|
* Checks if the value is an object
|
|
14
15
|
* @param value - The value to check
|
|
@@ -16,7 +17,6 @@ exports.isString = isString;
|
|
|
16
17
|
function isObject(value) {
|
|
17
18
|
return value && typeof value === 'object' && value instanceof Object;
|
|
18
19
|
}
|
|
19
|
-
exports.isObject = isObject;
|
|
20
20
|
/**
|
|
21
21
|
* Checks if a MessageAttribute is valid
|
|
22
22
|
* @param messageAttribute - The MessageAttribute to check
|
|
@@ -30,4 +30,3 @@ function isMessageAttributeValid(messageAttribute) {
|
|
|
30
30
|
}
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
|
-
exports.isMessageAttributeValid = isMessageAttributeValid;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sqs-producer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-canary.1",
|
|
4
4
|
"description": "Enqueues messages onto a given SQS queue",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"release": {
|
|
45
45
|
"branches": [
|
|
46
46
|
"main",
|
|
47
|
+
"*.x",
|
|
47
48
|
{
|
|
48
49
|
"name": "canary",
|
|
49
50
|
"prerelease": true
|
|
@@ -127,35 +128,37 @@
|
|
|
127
128
|
},
|
|
128
129
|
"devDependencies": {
|
|
129
130
|
"@semantic-release/changelog": "^6.0.3",
|
|
130
|
-
"@semantic-release/commit-analyzer": "^
|
|
131
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
131
132
|
"@semantic-release/git": "^10.0.1",
|
|
132
|
-
"@semantic-release/github": "^
|
|
133
|
-
"@semantic-release/npm": "
|
|
134
|
-
"@semantic-release/release-notes-generator": "^
|
|
135
|
-
"@types/chai": "^4.3.
|
|
133
|
+
"@semantic-release/github": "^10.0.6",
|
|
134
|
+
"@semantic-release/npm": "12.0.1",
|
|
135
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
136
|
+
"@types/chai": "^4.3.16",
|
|
136
137
|
"@types/debug": "^4.1.12",
|
|
137
|
-
"@types/mocha": "^10.0.
|
|
138
|
-
"@types/node": "^20.
|
|
138
|
+
"@types/mocha": "^10.0.7",
|
|
139
|
+
"@types/node": "^20.14.9",
|
|
139
140
|
"@types/sinon": "^17.0.3",
|
|
141
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
142
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
140
143
|
"chai": "^4.4.1",
|
|
141
|
-
"conventional-changelog-conventionalcommits": "^
|
|
144
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
142
145
|
"eslint": "^8.57.0",
|
|
143
146
|
"eslint-config-iplayer": "^9.2.0",
|
|
144
147
|
"eslint-config-prettier": "^9.1.0",
|
|
145
|
-
"mocha": "^10.
|
|
148
|
+
"mocha": "^10.5.2",
|
|
146
149
|
"c8": "^9.1.0",
|
|
147
|
-
"prettier": "^3.2
|
|
148
|
-
"semantic-release": "^
|
|
149
|
-
"sinon": "^
|
|
150
|
+
"prettier": "^3.3.2",
|
|
151
|
+
"semantic-release": "^24.0.0",
|
|
152
|
+
"sinon": "^18.0.0",
|
|
150
153
|
"ts-node": "^10.9.2",
|
|
151
|
-
"typedoc": "^0.
|
|
152
|
-
"typescript": "^5.
|
|
154
|
+
"typedoc": "^0.26.3",
|
|
155
|
+
"typescript": "^5.5.2"
|
|
153
156
|
},
|
|
154
157
|
"dependencies": {
|
|
155
|
-
"@aws-sdk/client-sqs": "^3.
|
|
158
|
+
"@aws-sdk/client-sqs": "^3.600.0"
|
|
156
159
|
},
|
|
157
160
|
"peerDependencies": {
|
|
158
|
-
"@aws-sdk/client-sqs": "^3.
|
|
161
|
+
"@aws-sdk/client-sqs": "^3.600.0"
|
|
159
162
|
},
|
|
160
163
|
"mocha": {
|
|
161
164
|
"spec": "test/**/**/*.test.ts",
|