sqs-producer 5.0.0 → 6.0.0-canary.2

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.
@@ -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
 
@@ -3,9 +3,13 @@ on:
3
3
  pull_request:
4
4
  branches:
5
5
  - 'main'
6
+ - canary
7
+ - "*.x"
6
8
  push:
7
9
  branches:
8
10
  - main
11
+ - canary
12
+ - "*.x"
9
13
  permissions:
10
14
  contents: read
11
15
 
@@ -1,5 +1,9 @@
1
1
  name: Publish Package to npmjs
2
2
  on:
3
+ push:
4
+ branches:
5
+ - canary
6
+ - "*.x"
3
7
  workflow_dispatch:
4
8
  jobs:
5
9
  build:
@@ -3,9 +3,13 @@ on:
3
3
  pull_request:
4
4
  branches:
5
5
  - 'main'
6
+ - canary
7
+ - "*.x"
6
8
  push:
7
9
  branches:
8
10
  - main
11
+ - canary
12
+ - "*.x"
9
13
  permissions:
10
14
  contents: read
11
15
 
package/CHANGELOG.md CHANGED
@@ -1,15 +1,5 @@
1
- ## [5.0.0](https://github.com/bbc/sqs-producer/compare/v4.0.0...v5.0.0) (2024-03-11)
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.2](https://github.com/bbc/sqs-producer/compare/v6.0.0-canary.1...v6.0.0-canary.2) (2024-08-16)
8
2
 
9
3
  ### Chores
10
4
 
11
- * add documentation ([#106](https://github.com/bbc/sqs-producer/issues/106)) ([96dcb3b](https://github.com/bbc/sqs-producer/commit/96dcb3b4bce2882830568555206196dbb8875503))
12
- * **deps:** upgrading dependencies - march 24 ([#105](https://github.com/bbc/sqs-producer/issues/105)) ([4daa21b](https://github.com/bbc/sqs-producer/commit/4daa21b0b82a0f97321823f3537afe45c116df73))
13
- * downgrading @semantic-release/npm ([7836f3a](https://github.com/bbc/sqs-producer/commit/7836f3a5b6b4e887a727a98e476ac0dd97f26daf))
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
+ * updating dependencies ([#110](https://github.com/bbc/sqs-producer/issues/110)) ([c5fd34d](https://github.com/bbc/sqs-producer/commit/c5fd34db9cbb9ae087a65c3391ea6f8184c8c2b6))
package/dist/format.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toEntry = void 0;
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;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isMessageAttributeValid = exports.isObject = exports.isString = void 0;
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": "5.0.0",
3
+ "version": "6.0.0-canary.2",
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": "^11.1.0",
131
+ "@semantic-release/commit-analyzer": "^13.0.0",
131
132
  "@semantic-release/git": "^10.0.1",
132
- "@semantic-release/github": "^9.2.6",
133
- "@semantic-release/npm": "11.0.2",
134
- "@semantic-release/release-notes-generator": "^12.1.0",
135
- "@types/chai": "^4.3.12",
133
+ "@semantic-release/github": "^10.1.6",
134
+ "@semantic-release/npm": "12.0.1",
135
+ "@semantic-release/release-notes-generator": "^14.0.1",
136
+ "@types/chai": "^4.3.17",
136
137
  "@types/debug": "^4.1.12",
137
- "@types/mocha": "^10.0.6",
138
- "@types/node": "^20.11.25",
138
+ "@types/mocha": "^10.0.7",
139
+ "@types/node": "^22.3.0",
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": "^7.0.2",
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.3.0",
148
+ "mocha": "^10.7.3",
146
149
  "c8": "^9.1.0",
147
- "prettier": "^3.2.5",
148
- "semantic-release": "^23.0.0",
149
- "sinon": "^17.0.1",
150
+ "prettier": "^3.3.3",
151
+ "semantic-release": "^24.0.0",
152
+ "sinon": "^18.0.0",
150
153
  "ts-node": "^10.9.2",
151
- "typedoc": "^0.25.12",
152
- "typescript": "^5.4.2"
154
+ "typedoc": "^0.26.5",
155
+ "typescript": "^5.5.4"
153
156
  },
154
157
  "dependencies": {
155
- "@aws-sdk/client-sqs": "^3.529.1"
158
+ "@aws-sdk/client-sqs": "^3.632.0"
156
159
  },
157
160
  "peerDependencies": {
158
- "@aws-sdk/client-sqs": "^3.529.1"
161
+ "@aws-sdk/client-sqs": "^3.632.0"
159
162
  },
160
163
  "mocha": {
161
164
  "spec": "test/**/**/*.test.ts",