[Chore] Update dependencies to latest ncu versions and clear npm audit findings

Đang mở
#40 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@adamant-al đang làm issue này rồi.

Từ ngày 14/11/2026.

  • #44 của @adamant-al — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, node.js
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Bắt đầu với package.json, package-lock.json và .ai-tasks/update-deps-security-notes.md. Chạy ncu, npm install và npm audit để xác định các bản cập nhật và các bản sửa lỗi bảo mật hợp lý, sau đó kiểm tra npm run docs:build. Công việc được xem là hoàn tất khi các phát hiện an toàn ở mức medium/high/critical đã được xử lý hoặc ghi lại, lockfile và các ghi chú bảo mật đã được cập nhật, đồng thời build thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

CI/CD Security Task

Summary

Update npm dependencies to the latest versions reported by ncu at implementation time, and reduce npm audit vulnerabilities as far as is rational without risky breakage.

Details

Direct dependency is currently vitepress@^1.6.4. Run ncu during implementation and bump packages to the latest stable versions it reports.

Also address known transitive vulnerabilities (today: vite via vitepress, already partially mitigated with an esbuild override). Prefer npm overrides for patched transitive versions when a direct bump is not available, and follow .ai-tasks/update-deps-security-notes.md for the security review.

Scope:

  • Update package.json / package-lock.json via ncu + npm install
  • Clear or reduce medium/high/critical npm audit findings where a safe override or upgrade exists
  • Do not chase low-severity noise or force major upgrades that break the docs site
  • Keep VitePress build working (npm run docs:build)

Out of scope:

  • Content/documentation page edits
  • Large refactors unrelated to dependency resolution

Checklist

  • Run ncu and update dependencies to the latest versions available at implementation time
  • Refresh the lockfile with npm install
  • Apply rational fixes for medium/high/critical npm audit findings (overrides only when needed)
  • Follow .ai-tasks/update-deps-security-notes.md (dependency diff, audit, suspicious packages/scripts, lockfile integrity, build smoke check)
  • Confirm npm run docs:build succeeds
  • Summarize remaining vulnerabilities that cannot be fixed without breaking changes

Notes

PR will be linked here after creation.

Suggested PR title: Chore: Update dependencies and clear npm audit findings

Security review checklist reference: .ai-tasks/update-deps-security-notes.md

Verification

  • ncu reports no remaining outdated direct dependencies (or remaining gaps are documented)
  • npm audit has no unresolved medium/high/critical issues that can be fixed rationally
  • npm run docs:build completes without errors
  • Security notes checklist items are covered in the PR description
Ngôn ngữ chính
CSS
Star
119
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Adamant-im/docs

Tất cả issue của Adamant-im/docs

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.