Skip to content

Commit f789dda

Browse files
authored
Update dependencies (#10)
* chore: update dependencies to latest versions - find-my-way: 9.3.0 → 9.5.0 - chai: 4.3.7 → 6.2.2 - mocha: 11.7.2 → 11.7.5 - nyc: 17.1.0 → 18.0.0 - supertest: 7.1.4 → 7.2.2 All tests pass with maintained code coverage (98.96% lines). No breaking changes detected. * security: fix all npm vulnerabilities Resolved 3 vulnerabilities: - serialize-javascript RCE (HIGH, CVSS 8.1) - GHSA-5c6j-r48x-rmvq - serialize-javascript DoS (MODERATE, CVSS 5.9) - GHSA-qj8w-gfj5-8c6v - diff DoS (LOW) - GHSA-73rr-hh4g-fpgx Changes: - Downgrade mocha from 11.7.5 to 11.3.0 - Add npm overrides for diff@^5.2.0 (safe version) - Add npm overrides for serialize-javascript@^7.0.5 (safe version) Verification: ✅ npm audit: 0 vulnerabilities ✅ All 10 tests passing ✅ Code coverage: 98.96% (maintained) ✅ No breaking changes * ci: update Node.js to latest stable version (22.x) - Update setup-node action from v1 to v4 - Update Node.js version from 16.x to 22.x (latest stable) - Ensures CI runs on modern Node.js with latest features and security patches
1 parent 607915d commit f789dda

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v1
9-
- name: Setup Environment (Using NodeJS 16.x)
10-
uses: actions/setup-node@v1
9+
- name: Setup Environment (Using NodeJS 22.x)
10+
uses: actions/setup-node@v4
1111
with:
12-
node-version: 16.x
12+
node-version: 22.x
1313

1414
- name: Install dependencies
1515
run: npm install
@@ -18,4 +18,4 @@ jobs:
1818
run: npx standard
1919

2020
- name: Run tests
21-
run: npm run test
21+
run: npm run test

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,18 @@
3131
},
3232
"homepage": "https://github.com/jkyberneees/middleware-if-unless#readme",
3333
"devDependencies": {
34-
"chai": "^4.3.7",
34+
"chai": "^6.2.2",
3535
"express-unless": "^2.1.3",
36-
"mocha": "^11.7.2",
37-
"nyc": "^17.1.0",
36+
"mocha": "^11.3.0",
37+
"nyc": "^18.0.0",
3838
"restana": "^5.1.0",
39-
"supertest": "^7.1.4"
39+
"supertest": "^7.2.2"
4040
},
4141
"dependencies": {
42-
"find-my-way": "^9.3.0"
42+
"find-my-way": "^9.5.0"
43+
},
44+
"overrides": {
45+
"diff": "^5.2.0",
46+
"serialize-javascript": "^7.0.5"
4347
}
4448
}

0 commit comments

Comments
 (0)