Parked: design issues that would need a major

オープン
#357 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
10/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
javascript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
217
フォーク
89
平均マージ
2日 1時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

postcss/postcss-selector-parser のほかの issue

postcss/postcss-selector-parser の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。