sqs-consumer 8.1.3 → 8.1.4

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.
@@ -1,21 +1,13 @@
1
1
  name: Publish Package to npmjs
2
2
  on:
3
- release:
4
- types: [created]
5
3
  workflow_dispatch:
6
- inputs:
7
- releaseType:
8
- description: latest or canary?
9
- required: true
10
- type: choice
11
- options:
12
- - canary
13
- - latest
14
4
  jobs:
15
5
  build:
16
6
  runs-on: ubuntu-latest
17
7
  permissions:
18
- contents: read
8
+ contents: write
9
+ issues: write
10
+ pull-requests: write
19
11
  id-token: write
20
12
  steps:
21
13
  - uses: actions/checkout@v4
@@ -25,6 +17,10 @@ jobs:
25
17
  cache: 'npm'
26
18
  registry-url: 'https://registry.npmjs.org'
27
19
  - run: npm ci
28
- - run: npm publish --provenance --access public --tag ${{ github.event.inputs.releaseType || 'latest' }}
20
+ - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
21
+ run: npm audit signatures
22
+ - name: Release
29
23
  env:
24
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
25
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26
+ run: npx semantic-release
package/dist/types.d.ts CHANGED
@@ -5,8 +5,7 @@ export interface ConsumerOptions {
5
5
  */
6
6
  queueUrl: string;
7
7
  /**
8
- * List of queue attributes to retrieve (i.e.
9
- * `['All', 'ApproximateFirstReceiveTimestamp', 'ApproximateReceiveCount']`).
8
+ * List of queue attributes to retrieve, see [AWS docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sqs/Variable/QueueAttributeName/).
10
9
  * @defaultvalue `[]`
11
10
  */
12
11
  attributeNames?: QueueAttributeName[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sqs-consumer",
3
- "version": "8.1.3",
3
+ "version": "8.1.4",
4
4
  "description": "Build SQS-based Node applications without the boilerplate",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,20 +40,107 @@
40
40
  "consumer"
41
41
  ],
42
42
  "license": "Apache-2.0",
43
+ "release": {
44
+ "branches": [
45
+ "main",
46
+ {
47
+ "name": "canary",
48
+ "prerelease": true
49
+ }
50
+ ],
51
+ "plugins": [
52
+ [
53
+ "@semantic-release/commit-analyzer",
54
+ {
55
+ "preset": "conventionalcommits",
56
+ "releaseRules": [
57
+ {
58
+ "type": "feat",
59
+ "release": "minor"
60
+ },
61
+ {
62
+ "type": "chore",
63
+ "release": "patch"
64
+ },
65
+ {
66
+ "type": "fix",
67
+ "release": "patch"
68
+ },
69
+ {
70
+ "type": "docs",
71
+ "release": "patch"
72
+ },
73
+ {
74
+ "type": "refactor",
75
+ "release": "patch"
76
+ },
77
+ {
78
+ "type": "test",
79
+ "release": "patch"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ [
85
+ "@semantic-release/release-notes-generator",
86
+ {
87
+ "preset": "conventionalcommits",
88
+ "presetConfig": {
89
+ "types": [
90
+ {
91
+ "type": "feat",
92
+ "section": "Features"
93
+ },
94
+ {
95
+ "type": "fix",
96
+ "section": "Bug Fixes"
97
+ },
98
+ {
99
+ "type": "chore",
100
+ "section": "Chores"
101
+ },
102
+ {
103
+ "type": "docs",
104
+ "section": "Documentation"
105
+ },
106
+ {
107
+ "type": "refactor",
108
+ "section": "Refactors"
109
+ },
110
+ {
111
+ "type": "test",
112
+ "section": "Tests"
113
+ }
114
+ ]
115
+ }
116
+ }
117
+ ],
118
+ "@semantic-release/git",
119
+ "@semantic-release/github",
120
+ "@semantic-release/npm"
121
+ ]
122
+ },
43
123
  "devDependencies": {
44
124
  "@cucumber/cucumber": "10.0.1",
125
+ "@semantic-release/commit-analyzer": "^11.1.0",
126
+ "@semantic-release/git": "^10.0.1",
127
+ "@semantic-release/github": "^9.2.6",
128
+ "@semantic-release/npm": "^11.0.2",
129
+ "@semantic-release/release-notes-generator": "^12.1.0",
45
130
  "@types/chai": "^4.3.9",
46
131
  "@types/mocha": "^10.0.3",
47
132
  "@types/node": "^20.8.7",
48
133
  "@types/sinon": "^10.0.20",
134
+ "c8": "^8.0.1",
49
135
  "chai": "^4.3.10",
136
+ "conventional-changelog-conventionalcommits": "^7.0.2",
50
137
  "eslint": "^8.52.0",
51
138
  "eslint-config-iplayer": "^9.1.0",
52
139
  "eslint-config-prettier": "^9.0.0",
53
140
  "mocha": "^10.2.0",
54
- "c8": "^8.0.1",
55
141
  "p-event": "^4.2.0",
56
142
  "prettier": "^3.0.3",
143
+ "semantic-release": "^23.0.0",
57
144
  "sinon": "^17.0.0",
58
145
  "sqs-producer": "^4.0.0",
59
146
  "ts-node": "^10.9.1",
package/src/types.ts CHANGED
@@ -6,8 +6,7 @@ export interface ConsumerOptions {
6
6
  */
7
7
  queueUrl: string;
8
8
  /**
9
- * List of queue attributes to retrieve (i.e.
10
- * `['All', 'ApproximateFirstReceiveTimestamp', 'ApproximateReceiveCount']`).
9
+ * List of queue attributes to retrieve, see [AWS docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sqs/Variable/QueueAttributeName/).
11
10
  * @defaultvalue `[]`
12
11
  */
13
12
  attributeNames?: QueueAttributeName[];