Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"tailwindcss": "^4",
"typescript": "^5",
"vite": "^8.0.16",
"vitest": "^1.6.0"
"vitest": "^4.1.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify peer compatibility between installed vitest and `@vitest/`* versions in package.json.
# Read-only checks only.

set -euo pipefail

echo "== Local package.json versions =="
python - <<'PY'
import json
with open("package.json") as f:
    p = json.load(f)
dev = p.get("devDependencies", {})
for k in ["vitest", "`@vitest/browser`", "`@vitest/coverage-v8`", "`@vitest/ui`"]:
    print(f"{k}: {dev.get(k)}")
PY

echo
echo "== npm registry peerDependencies (latest 4.1.0 tags) =="
for pkg in vitest `@vitest/browser` `@vitest/coverage-v8` `@vitest/ui`; do
  echo "-- $pkg@4.1.0 --"
  curl -s "https://registry.npmjs.org/${pkg}/4.1.0" | jq '{name, version, peerDependencies}'
done

Repository: forbiddenlink/skill-mapper

Length of output: 1124


Align @vitest/* versions with vitest major (v4)

package.json pins vitest to ^4.1.0 while @vitest/browser, @vitest/coverage-v8, and @vitest/ui are still on ^1.6.0 (Lines 87–89 vs 102). vitest@4.1.0 declares a peerDependency on @vitest/ui: "4.1.0", so this version skew can break peer resolution and test:ui / test:coverage.

Suggested fix
-    "`@vitest/browser`": "^1.6.0",
-    "`@vitest/coverage-v8`": "^1.6.0",
-    "`@vitest/ui`": "^1.6.0",
+    "`@vitest/browser`": "^4.1.0",
+    "`@vitest/coverage-v8`": "^4.1.0",
+    "`@vitest/ui`": "^4.1.0",
     "vitest": "^4.1.0"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 102, Update package.json to align the `@vitest/`* package
versions with the vitest major v4 release: bump the dependencies/devDependencies
entries for "`@vitest/browser`", "`@vitest/coverage-v8`", and "`@vitest/ui`" to match
the vitest ^4.x version (same major/minor as "vitest": "^4.1.0") so
peerDependency resolution is satisfied; locate and update the entries for
"`@vitest/browser`", "`@vitest/coverage-v8`", and "`@vitest/ui`" in package.json to
the corresponding v4 version range that matches "vitest" (e.g., ^4.1.0) and then
run the package manager to reinstall or update lockfile.

},
"description": "Production-grade gamified skill tree learning platform with progression tracking, achievements, and interactive challenges",
"license": "MIT",
Expand Down
Loading
Loading