@pager/minion-army 2.2.1 → 2.3.0

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/.nsprc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "exceptions": [
3
+ ]
4
+ }
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18.12
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.3.0](https://github.com/pagerinc/minion-army/compare/v2.2.1...v2.3.0) (2025-05-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **RAG-1540:** support newrelic 12 and resolve vulnerabilities ([#461](https://github.com/pagerinc/minion-army/issues/461)) ([daab112](https://github.com/pagerinc/minion-army/commit/daab1122840de1f1e48a7029b0bc99a30b60eda8))
7
+
1
8
  ## [2.2.1](https://github.com/pagerinc/minion-army/compare/v2.2.0...v2.2.1) (2024-03-20)
2
9
 
3
10
 
package/cloudbuild.yaml CHANGED
@@ -18,7 +18,7 @@ steps:
18
18
  args: ['test']
19
19
 
20
20
  - id: npm-publish
21
- name: 'gcr.io/$PROJECT_ID/cloudbuilders/npm:6.13.4'
21
+ name: 'us-east1-docker.pkg.dev/$PROJECT_ID/cloudbuilders/npm:6.13.4'
22
22
  secretEnv: ['NPM_TOKEN']
23
23
  env:
24
24
  - 'TAG_NAME=$TAG_NAME'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pager/minion-army",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Microservice Framework for RabbitMQ Workers",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -31,20 +31,15 @@
31
31
  "@hapi/eslint-config-hapi": "13.x",
32
32
  "@hapi/eslint-plugin-hapi": "4.x",
33
33
  "@pager/semantic-release-config": "2.x",
34
- "ava": "3.x",
34
+ "ava": "4.x",
35
35
  "eslint": "7.x",
36
36
  "joi": "^17.2.1",
37
37
  "nyc": "15.x",
38
- "semantic-release": "21.x"
38
+ "semantic-release": "24.x"
39
39
  },
40
40
  "peerDependencies": {
41
- "joi": "^17.2.0",
42
- "newrelic": "11.x"
43
- },
44
- "renovate": {
45
- "extends": [
46
- "github>pagerinc/renovate-config"
47
- ]
41
+ "joi": "17.x",
42
+ "newrelic": ">=11.x <=12.x"
48
43
  },
49
44
  "release": {
50
45
  "extends": "@pager/semantic-release-config"
package/test/index.js CHANGED
@@ -221,7 +221,7 @@ Test('Worker handler fails validation', async (t) => {
221
221
  t.truthy(army.minions);
222
222
  t.truthy(army.minions.logging);
223
223
 
224
- await t.throwsAsync(() => army.minions.logging.handle('hola'), null, '"value" must be of type object');
224
+ await t.throwsAsync(() => army.minions.logging.handle('hola'), undefined, '"value" must be of type object');
225
225
  });
226
226
 
227
227
  Test('Army throws if manifest is invalid', async (t) => {
@@ -248,7 +248,7 @@ Test('Army throws if manifest is invalid', async (t) => {
248
248
  ]
249
249
  };
250
250
 
251
- await t.throws(() => Army(manifest), null, '"workers[0].handler" must be of type function');
251
+ await t.throws(() => Army(manifest), undefined, '"workers[0].handler" must be of type function');
252
252
  });
253
253
 
254
254
  Test('Army uses same exchange for all workers unless specified', (t) => {
@@ -1,34 +0,0 @@
1
- name: Release
2
- on:
3
- push:
4
- branches:
5
- - master
6
- jobs:
7
- release:
8
- name: Release
9
- runs-on: ubuntu-latest
10
- steps:
11
- - name: Checkout
12
- uses: actions/checkout@v2
13
- with:
14
- persist-credentials: false
15
- - name: Setup Node.js
16
- uses: actions/setup-node@v2
17
- with:
18
- node-version: 18
19
- - name: Cache
20
- uses: actions/cache@v2
21
- with:
22
- path: ~/.npm
23
- key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }}
24
- restore-keys: |
25
- ${{ runner.os }}-npm-
26
- - name: Install dependencies
27
- run: npm i
28
- env:
29
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30
- - name: Release
31
- env:
32
- GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
33
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34
- run: npx semantic-release