Parked: design issues that would need a major

Đang mở
#357 1 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 4 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
10/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

This issue is a parking list for several possible breaking changes to the selector AST and parsing model, and says no major release is planned. Read the linked issues (#14, #135, #189, #202, #204, and #228) to understand each use case; the issue gives no implementation entry point or acceptance criteria. Work is complete only if a concrete blocking use case motivates taking an item out of the parking list and its breaking change is accepted for a major release.

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

Mô tả

These issues all describe the same kind of change: the AST or the parsing model would have to change in a way that cannot ship in a minor. None of them breaks working code today, and none has attracted a single reaction in the years they have been open, so they are collected here rather than kept individually open.

  • #14, :nth-child(2n + 1) parses the + as a combinator. The An+B of S microsyntax would need its own representation.
  • #135, an API to report whether a selector uses non-standard syntax, which also implies a strict parsing mode.
  • #189, a comment between two compound selectors lands in raws rather than in the AST, so h2 /*c*/ h4 and h2/*c*/h4 disagree.
  • #202, :foo() with empty arguments produces a questionable child shape.
  • #204, // comments reach this parser as selector text. Arguably postcss-scss should strip them before they get here.
  • #228, a semantic equality check, so that :is(a, b) and :is(b, a) compare equal.

There is no major planned. This is a parking list, not a roadmap. The package is maintained for the tooling that depends on it, and the bar for a breaking AST change is a concrete problem that cannot be solved any other way.

If one of these blocks you, comment on it with a real use case and it can be taken back out.

Ngôn ngữ chính
JavaScript
Star
217
Fork
89
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
2

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 postcss/postcss-selector-parser

Tất cả issue của postcss/postcss-selector-parser

Issue tương tự

Thêm issue về JavaScript

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.