Parked: design issues that would need a major

Ouverte
#357 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 4 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
10/100
Type d'issue
Refactorisation
Clarté
À clarifier
Activité
Active
Stack technique
javascript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
JavaScript
Étoiles
217
Forks
89
Merge moyen
2 j 1 h
PR mergées (30 j)
2

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de postcss/postcss-selector-parser

Toutes les issues de postcss/postcss-selector-parser

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.