Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat: runtime compatibility badges per package

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
nuxt, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start by reading the package-page implementation and how package metadata and exports are currently loaded; the issue does not name specific files or tests. Review the runtime-compat-data source and determine how its results can be matched to package entry points and runtime-specific export conditions. Done means package pages show accurate compatibility badges for the listed runtimes, with coverage for the proposed checks and tests for the behavior.

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

Mô tả

back front needs discussion
Describe the feature

Show runtime compatibility badges on package pages so developers know — before adding a package — whether it works on non-Node runtimes.

Uses runtime-compat-data (unjs) as the data source.

Runtimes: node · workerd · deno · bun · edge-light · netlify · llrt · fastly

Approach:

  1. Scan package entry points for Node built-in imports + global API usage
  2. Cross-ref against runtime-compat-data
  3. Also check exports for runtime-specific conditions (workerd, worker, etc.)

References:

Additional information
  • Would you be willing to help implement this feature?
Ngôn ngữ chính
TypeScript
Star
3.6k
Fork
533
Merge trung bình
4 ngày 13 giờ
Pull request đã merge (30 ngày)
37

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 npmx-dev/npmx.dev

Tất cả issue của npmx-dev/npmx.dev

Issue tương tự

Thêm issue về TypeScript

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.