Skip to content

fix package lock - #182

Merged
tonychang04 merged 1 commit into
devAug31from
fix/fixDockerBuildIssue
Sep 2, 2025
Merged

tonychang04 merged 1 commit into
devAug31from
fix/fixDockerBuildIssue

Conversation

@tonychang04

@tonychang04 tonychang04 commented Sep 2, 2025 •

Copy link
Copy Markdown
Member

ran npm i

fix package lock so it builds successfully

test:

locally run docker build image it works.

@tonychang04
tonychang04 force-pushed the fix/fixDockerBuildIssue branch from 364e437 to b986f5f Compare September 2, 2025 05:13
@tonychang04
tonychang04 marked this pull request as ready for review September 2, 2025 05:22
@tonychang04
tonychang04 merged commit b26aee4 into devAug31 Sep 2, 2025
tonychang04 added a commit that referenced this pull request Sep 10, 2026
* chore(deps): vitest 4.1.11, nodemailer 9.1.1, js-yaml 4.3.2

Clears 7 of the 11 open Dependabot alerts on this repo. The remaining 4 are
covered below with reasons, not left silent.

  vitest          ^4.1.8 / ^4.1.6 -> ^4.1.11 in backend, packages/ui and
                  packages/dashboard (each declares its own)        2 alerts, dev
  @vitest/mocker  lifts to 4.1.11 with vitest
  nodemailer      ^9.0.3 -> ^9.1.1                                  4 alerts, runtime
  js-yaml         override 5.2.3 -> ^4.3.2                          1 alert, dev, HIGH

nodemailer is NOT the 6.x -> 9.x major the alert ranges imply -- the repo is
already on 9.0.3, so this is a patch bump. Note 9.1.1 rather than 9.1.0: alert
#192 covers "<= 9.1.0", so 9.1.0 would still be flagged.

js-yaml is the interesting one. The root override pinned 5.2.3, but every
consumer wants ^4.1.x (@eslint/eslintrc, cosmiconfig, csv-to-pg), so a 5.x pin
could not apply to them and the root copy sat on the vulnerable 4.3.1 while the
override looked like it had handled it. ^4.3.2 is the patched release in the
line they actually resolve, so the override now does what it claims.

NOT FIXED, and not fixable:

  adm-zip #188   GHSA-vwc7-r8mq-g2x9, ">= 0.5.9, <= 0.6.0", first_patched_version
                 NONE. 0.6.0 is the latest published version, so there is no
                 upstream fix to take. Needs a risk acceptance or a replacement
                 dependency, not a bump.

NOT FIXED, deliberately, both unchanged from #2048:

  qs #182/#183   express@4 -> [email protected] pins qs@~6.15.1 and the patch
                 is 6.16.0, outside it. Needs an express 5 major.
  csv-parse #187 dev-only, via pgsql-seed -> [email protected] -> csv-parse ^6.2.1.
                 pg-seed@latest still requires ^6.2.1, so there is no upstream
                 fix. The runtime path is already on 7.0.2.

Lock regenerated with npm 11 (`npx npm@11 install --package-lock-only`): npm
10.9.4 fails on this repo with `Cannot read properties of null (reading
'edgesOut')`, which reproduces on clean main with the lock deleted and is not
caused by this change. lockfileVersion stays 3 and `npm ci` under npm 10
installs it cleanly.

Verified: `npm ci` clean; `npm run typecheck` 8/8 turbo tasks; backend suite
203 files / 2,425 tests passed, 21 skipped. First run showed 1 failure that
did not reproduce on re-run -- flake, not this change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim

* fix(deps): regenerate the js-yaml subtree so no stale edge survives

Greptile's P2 is correct, and I had noticed this and waved it off, which was
wrong. After the override moved from 5.2.3 to ^4.3.2, the lockfile still pinned
`node_modules/@eslint/eslintrc/node_modules/js-yaml` at 5.2.3 -- a version that
satisfies NEITHER the new override NOR @eslint/eslintrc's own ^4.1.1. A
lock-based install and a fresh resolve would therefore have produced different
trees.

Not a security issue: 5.2.3 sits above the vulnerable `>=4.0.0 <4.3.2` range.
It is a lockfile correctness issue, which is worth fixing on its own terms.

Dropped the stale node and re-resolved. There is now exactly ONE js-yaml, at
4.3.2, satisfying both the override and eslintrc.

Verified: `npm ci` clean; `npm ls js-yaml --all` reports 4.3.2 as `overridden`
and `deduped` with NO `invalid` nodes; `npm run typecheck` 8/8 turbo tasks.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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