Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(typescript): update test dependencies#346

Draft
NikolayS wants to merge 2 commits into
mainNikolayS/PgQue:mainfrom
agent/fix-typescript-audit-compliantNikolayS/PgQue:agent/fix-typescript-audit-compliantCopy head branch name to clipboard
Draft

fix(typescript): update test dependencies#346
NikolayS wants to merge 2 commits into
mainNikolayS/PgQue:mainfrom
agent/fix-typescript-audit-compliantNikolayS/PgQue:agent/fix-typescript-audit-compliantCopy head branch name to clipboard

Conversation

@NikolayS

Copy link
Copy Markdown
Owner

Summary

  • add lock-aware high-severity audit gates to TypeScript CI and both release paths;
  • update Vitest to the first fixed 3.2 line;
  • force Vite to the fixed 6.4.3 line because Bun otherwise retains a vulnerable nested Vite 5 release.

Fixes #344.

RED

With the audit-gate commit applied before the dependency update:

bun audit --audit-level high
2 vulnerabilities (1 critical, 1 high)

The findings were GHSA-5xrq-8626-4rwp in direct Vitest and GHSA-fx2h-pf6j-xcff in transitive Vite.

GREEN

  • bun install --frozen-lockfile passed;
  • bun audit --audit-level high reported no vulnerabilities;
  • bun audit --production --audit-level high reported no vulnerabilities;
  • bun run check passed;
  • live-Postgres bun run test: 85 passed;
  • bun run build passed;
  • npm pack --dry-run produced the expected 14-file package;
  • actionlint, YAML parsing, and git diff --check passed.

Official package metadata confirms Vitest 3.2.6 and Vite 6.4.3 support the package's Node 20 runtime floor.

This is intentionally a draft and has not been merged.

@NikolayS

Copy link
Copy Markdown
Owner Author

Real-user verification evidence

This PR has chronological RED then GREEN history.

RED commit 1957968:

cd clients/typescript
bun install --frozen-lockfile
bun audit --audit-level high

Result: 2 vulnerabilities, one critical in direct Vitest and one high in transitive Vite.

GREEN commit c97359c:

bun install --frozen-lockfile
bun audit --audit-level high
bun audit --production --audit-level high
bun run check
PGQUE_TEST_DSN=postgresql:///pgque_pr_rules_audit bun run test
bun run build
npm pack --dry-run

Both audits reported No vulnerabilities found; typecheck passed; the live-Postgres suite passed 85/85; build passed; package smoke produced the expected 14-file npm tarball. The Vite override is required because Bun otherwise retains vulnerable nested Vite 5.4.21. Final head CI: 17/17 checks passed. This remains a draft and was not merged.

@NikolayS NikolayS left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

REV rubric review

Automated ultrareview quota was unavailable, so I executed the five official
REV rubric prompts manually. SOC2 findings were omitted as instructed. This is
a comment-only review, not an approval.

Blocking findings

None. I found no unresolved functional, security, documentation, or test
blocker on head c97359cb312e321567c1c92eed4da43f9c3ae0e5.

Rubric results

  • Bug hunter: the dependency-only change leaves runtime client behavior and
    packaging inputs unchanged.
  • Security reviewer: Vitest and transitive Vite are moved past the reviewed
    critical/high advisories; the frozen lockfile and high-severity audit gates
    protect CI plus both release paths.
  • Docs reviewer: the PR body records advisory identifiers, version rationale,
    runtime-floor compatibility, and exact RED/GREEN evidence; public client API
    documentation does not need a change.
  • Guidelines checker: commits are chronological chore RED then fix GREEN,
    both allowed and under 50 characters; title is compliant and CI is green.
  • Test analyzer: I independently reproduced audit exit 1 with one critical and
    one high finding before the dependency update, then No vulnerabilities found, typecheck, unit tests, build, and package smoke on the head. Full CI
    run 29156035189 passed.

Nonblocking findings

None from the manual rubrics. No code change is requested by this review.

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.

Upgrade vulnerable Vitest and Vite test tooling

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.