Skip to content

Fix npm deprecation warnings and reduce vulnerabilities#550

Open
mfeeney wants to merge 1 commit into
beyond-all-reason:masterfrom
mfeeney:fix/npm-deprecation-warnings-512
Open

Fix npm deprecation warnings and reduce vulnerabilities#550
mfeeney wants to merge 1 commit into
beyond-all-reason:masterfrom
mfeeney:fix/npm-deprecation-warnings-512

Conversation

@mfeeney

@mfeeney mfeeney commented Feb 19, 2026

Copy link
Copy Markdown

Summary

Addresses #512. Cleans up what we can on the deprecation/vulnerability front without major version bumps.

  • Replaced glob-promise with glob@11glob-promise was our only actionable direct dependency here. It wraps the deprecated glob@8, which drags in inflight (known memory leak, deprecated). Modern glob has native Promise support so the wrapper isn't needed anymore. Used minimatch directly for the pattern-matching in parseSdpFile since that's all the old Glob class was being used for there.
  • Bumped electron-forge, electron-builder, and electron-updater to latest minor versions to pick up whatever transitive dependency fixes they've shipped.
  • Relaxed the Node engine field from exact 22.18.0 to >=22.16.0 — contributors on any recent Node 22 release won't get EBADENGINE warnings anymore. CI still pins 22.18.0 explicitly so builds are deterministic.
  • Ran npm audit fix for any remaining safe automatic fixes.

Why most warnings/vulns remain

The bulk of the deprecation warnings and audit findings come from deep transitive dependencies in electron-builder, electron-forge, eslint, and related build tooling — things like old versions of glob, rimraf, minimatch, tar, tmp, etc. that are baked into those packages' dependency trees. We can't fix those without major version bumps (e.g. electron 37→40, primevue 3→4, eslint ecosystem changes), which are separate efforts and out of scope here.

Test plan

  • npm run typecheck passes
  • npx eslint . clean
  • npx vitest run tests — 28/28 pass
  • npm start — app launches and runs normally

@bcdrme

bcdrme commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Hi, I've merged a bunch of dependatbots PR. If you can check the conflict on package-lock :)

…reason#512)

Replace glob-promise with modern glob@11 which has native Promise
support, eliminating the transitive dependency on deprecated glob@8
and inflight. Use minimatch directly for pattern matching in
parseSdpFile instead of going through the Glob class.

Bump electron-forge, electron-builder, and electron-updater to latest
minor versions to pick up transitive dependency fixes.

Relax the Node engine constraint from exact 22.18.0 to >=22.16.0 so
contributors on different patch releases don't get EBADENGINE warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mfeeney
mfeeney force-pushed the fix/npm-deprecation-warnings-512 branch from c115b2f to 78153e5 Compare February 20, 2026 16:25
@mfeeney

mfeeney commented Feb 20, 2026

Copy link
Copy Markdown
Author

Rebased on latest master and regenerated the lock file, should be good now! :)

@p2004a p2004a left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry about it but it needs to be rebased again

import * as fs from "fs";
import * as glob from "glob-promise";
import { glob } from "glob";
import { Minimatch } from "minimatch";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be direct dependency in package.json if we use this library directly

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mfeeney Did you want to add Minimatch to the package.json so this can be looked at for a merge?

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.

5 participants