Skip to content

deps: refresh + vitest 2→4 with explicit vite ^7 (clears all critical/high/moderate advisories) - #10

Merged
terraboops merged 1 commit into
mainfrom
deps/vitest4
Aug 25, 2026
Merged

terraboops merged 1 commit into
mainfrom
deps/vitest4

Conversation

@terraboops

Copy link
Copy Markdown
Collaborator

What

Dependency refresh for @bitcomplete/mdx-components, plus the vitest major bump that clears the outstanding advisories.

In-range (minor/patch): react/react-dom → ^19.2.8 · @mdx-js/mdx → ^3.1.1 · tailwind-merge → ^3.6.0 · tailwindcss + @tailwindcss/cli → ^4.3.3 · tsup → ^8.5.1 · @hugeicons/core-free-icons → ^4.3.0 · @hugeicons/react → ^1.1.10 · @types/* current.

vitest 2 → 4, plus an explicit vite ^7 devDependency.

That second part needs explaining. vitest@4 alone fails at startup:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './module-runner'
is not defined by "exports" in .../node_modules/vite/package.json

vitest 4 declares vite: ^6.0.0 || ^7.0.0 || ^8.0.0 as a peer, but pnpm resolved the stale vite 5.4.21 from the lockfile — a peer-range violation, with no overrides in play. vite is only ever a peer here, so nothing pinned it deliberately. Declaring vite ^7 explicitly resolves it.

Audit

critical high moderate low
before 1 1 3 1
after 0 0 0 1

All six ran through vitest → vite → esbuild and were dev/test-only — Vitest UI server, vite server.fs.deny bypass, esbuild dev server. None ship in dist/ and none are reachable from vitest run in CI, so this was never urgent; it's just cheap to clear now. The remaining low is an esbuild Windows dev-server read, not applicable here.

Test evidence

pnpm run typecheck   tsc --noEmit, clean
pnpm test            2 files, 16/16 passed
pnpm run build       IIFE + DTS success — dist/bundle.iife.global.js 807.04 KB, index.d.ts 23.24 KB

Bundle and declaration sizes are byte-identical to main, so the published artifact is unchanged.

Held back

typescript 7 · @types/node 26 — majors, separate discussion.

@terraboops
terraboops merged commit 75a2f4a into main Aug 25, 2026
1 check passed
@terraboops
terraboops deleted the deps/vitest4 branch August 25, 2026 16:49
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.

1 participant