Skip to content

chore: Update dependencies #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Mar 7, 2025
Merged

chore: Update dependencies #2

merged 24 commits into from
Mar 7, 2025

Conversation

KSDaemon
Copy link
Member

@KSDaemon KSDaemon commented Mar 7, 2025

This PR updates all project dependencies to the latest possible (without breaking) + a bit of easy-taken refactoring.
The huge part of this PR - unmaintained nodeunit is replaced with mocha+chai.
GH workflow actions were updated to latest too.

I also added different Java distributions to test matrix.

Updating to the latest and replacing nodeunit allows to remove all (besides one not fixed yet) the CVEs in transitive dependencies:

❯ osv-scanner --lockfile=./yarn.lock
Scanned /Users/kostik/Projects/Cube.dev/node-jdbc/yarn.lock file and found 223 packages
╭─────────────────────────────────────┬──────┬───────────┬─────────┬─────────┬───────────╮
│ OSV URL                             │ CVSS │ ECOSYSTEM │ PACKAGE │ VERSION │ SOURCE    │
├─────────────────────────────────────┼──────┼───────────┼─────────┼─────────┼───────────┤
│ https://osv.dev/GHSA-2p57-rm9w-gvfp │ 8.1  │ npm       │ ip      │ 2.0.1   │ yarn.lock │
╰─────────────────────────────────────┴──────┴───────────┴─────────┴─────────┴───────────╯

Compared to previous ones:

❯ osv-scanner --lockfile=./yarn.lock
Scanned /Users/kostik/Projects/Cube.dev/node-jdbc/yarn.lock file and found 377 packages
╭─────────────────────────────────────┬──────┬───────────┬─────────────────┬─────────┬───────────╮
│ OSV URL                             │ CVSS │ ECOSYSTEM │ PACKAGE         │ VERSION │ SOURCE    │
├─────────────────────────────────────┼──────┼───────────┼─────────────────┼─────────┼───────────┤
│ https://osv.dev/GHSA-67hx-6x53-jw92 │ 9.3  │ npm       │ @babel/traverse │ 7.20.12 │ yarn.lock │
│ https://osv.dev/GHSA-3xgq-45jj-v275 │ 7.5  │ npm       │ cross-spawn     │ 4.0.2   │ yarn.lock │
│ https://osv.dev/GHSA-3xgq-45jj-v275 │ 7.5  │ npm       │ cross-spawn     │ 7.0.3   │ yarn.lock │
│ https://osv.dev/GHSA-h6ch-v84p-w6p9 │      │ npm       │ diff            │ 1.4.0   │ yarn.lock │
│ https://osv.dev/GHSA-phwq-j96m-2c2q │ 9.8  │ npm       │ ejs             │ 2.7.4   │ yarn.lock │
│ https://osv.dev/GHSA-ghr5-ch3p-vcr6 │ 6.9  │ npm       │ ejs             │ 2.7.4   │ yarn.lock │
│ https://osv.dev/GHSA-78xj-cgh5-2h22 │      │ npm       │ ip              │ 2.0.0   │ yarn.lock │
│ https://osv.dev/GHSA-2p57-rm9w-gvfp │ 8.1  │ npm       │ ip              │ 2.0.0   │ yarn.lock │
│ https://osv.dev/GHSA-p8p7-x288-28g6 │ 6.1  │ npm       │ request         │ 2.88.2  │ yarn.lock │
│ https://osv.dev/GHSA-c2qf-rxjj-qqgw │ 7.5  │ npm       │ semver          │ 5.7.1   │ yarn.lock │
│ https://osv.dev/GHSA-c2qf-rxjj-qqgw │ 7.5  │ npm       │ semver          │ 6.3.0   │ yarn.lock │
│ https://osv.dev/GHSA-f5x3-32g6-xq36 │ 6.5  │ npm       │ tar             │ 6.2.0   │ yarn.lock │
│ https://osv.dev/GHSA-72xf-g2v4-qvf3 │ 6.5  │ npm       │ tough-cookie    │ 2.5.0   │ yarn.lock │
╰─────────────────────────────────────┴──────┴───────────┴─────────────────┴─────────┴───────────╯

@KSDaemon KSDaemon force-pushed the ci-update branch 2 times, most recently from 4476b74 to 6194106 Compare March 7, 2025 09:15
@KSDaemon KSDaemon merged commit 75c8f32 into master Mar 7, 2025
68 checks passed
@KSDaemon KSDaemon deleted the ci-update branch March 7, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants