Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postcss/postcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8.5.26
Choose a base ref
...
head repository: postcss/postcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8.5.28
Choose a head ref
  • 17 commits
  • 20 files changed
  • 11 contributors

Commits on Aug 6, 2026

  1. Do not terminate a hack-prefixed property before a comment (#2126)

    * Do not terminate a hack-prefixed property before a comment
    
    A declaration is read as a custom property when the *first token* of the
    declaration starts with `--`, but the stringifier decided it from `prop`.
    The `*`/`_` hack prefix is moved out of `prop` into `raws.before` after that
    decision, so for `*--x:red` the parser builds a normal declaration -- whose
    value stops at the first comment -- while the stringifier saw a custom
    property and terminated it:
    
      postcss.parse('a{*--x:red/*c*/}').toString()
      // => 'a{*--x:red;/*c*/}', semicolon invented
    
    The same applies to any declaration with something other than spaces in
    `before`. Check `before` alongside `prop` so the two stay in sync: only a
    declaration that will re-parse as a custom property can swallow a following
    comment, and only that one needs the semicolon.
    
    * Shorten the comment
    
    ---------
    
    Co-authored-by: Jayesh <[email protected]>
    Jaybhade and jayesh-keychain authored Aug 6, 2026
    Configuration menu
    Copy the full SHA
    8f37847 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2026

  1. Keep empty values in the middle and at the start of list.comma() (#2134)

    split() only pushed an item at a separator when it had collected some
    text, so an empty value was dropped unless it happened to be the last
    one. list.comma(',,') returned [''] instead of ['', '', ''].
    
    Whitespace hid the inconsistency: 'a, ,b' collects ' ', which is not
    empty, so it survives and is then trimmed to ''. That makes the result
    depend on the spacing rather than the number of commas:
    
        list.comma('a,,b')  // ['a', 'b']
        list.comma('a, ,b') // ['a', '', 'b']
    
    Rule#selectors reads through list.comma, so 'a,,b' reported two
    selectors and assigning them back rewrote the rule as 'a,b'.
    
    The `last` flag already marks the separator as significant, which is
    what comma() passes and space() does not, so it is the right condition
    here too. Runs of whitespace still collapse for space().
    MahinAnowar authored Aug 14, 2026
    Configuration menu
    Copy the full SHA
    27c8be3 View commit details
    Browse the repository at this point in the history
  2. Fix rule end offset when spaces precede its own semicolon (#2135)

    Signed-off-by: maximilliangrand <[email protected]>
    Co-authored-by: maximilliangrand <[email protected]>
    maximilliangrand and maximilliangrand authored Aug 14, 2026
    Configuration menu
    Copy the full SHA
    55a4edf View commit details
    Browse the repository at this point in the history
  3. Update dependencies

    ai committed Aug 14, 2026
    Configuration menu
    Copy the full SHA
    c3be75a View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2026

  1. Configuration menu
    Copy the full SHA
    d40227b View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2026

  1. Drop whitespace-only values from list.space() (#2141)

    list.split() tested current for emptiness before trimming it, so a chunk made only of whitespace that is not one of the separators survived the check and was pushed as an empty string. Trimming first makes the emptiness check see the value that actually gets pushed.
    MahinAnowar authored Aug 19, 2026
    Configuration menu
    Copy the full SHA
    3909f50 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2026

  1. Configuration menu
    Copy the full SHA
    09a678f View commit details
    Browse the repository at this point in the history
  2. Add CodeRabbit sponsor (#2145)

    ai authored Aug 26, 2026
    Configuration menu
    Copy the full SHA
    e993739 View commit details
    Browse the repository at this point in the history
  3. Add GitHub Sponsors link

    ai committed Aug 26, 2026
    Configuration menu
    Copy the full SHA
    508e997 View commit details
    Browse the repository at this point in the history
  4. Fix link

    ai committed Aug 26, 2026
    Configuration menu
    Copy the full SHA
    6d23bc3 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2026

  1. Keep non-annotation comments when the processor has no plugins (#2150)

    clearAnnotation() has two implementations. The AST one removes only a
    comment whose text starts with `# sourceMappingURL=`, and
    PreviousMap#loadAnnotation finds annotations by the same marker. The
    string one, which is the only path NoWorkResult can take, searched for
    `/*#` and removed every comment that began with it.
    
    So postcss().process(css) silently deleted `/*#region */` and
    `/*#endregion */` folding markers, and any other comment starting with
    `#`, while the same CSS through a processor with one no-op plugin kept
    them. It happens with `map` unset too, because NoWorkResult calls
    clearAnnotation() unconditionally.
    
    Searching for the whole `/*# sourceMappingURL=` marker lines the string
    path up with the other two and keeps the plain string scan.
    
    Co-authored-by: Dylan Pulver <[email protected]>
    dylanpulver and dylanpulver authored Sep 3, 2026
    Configuration menu
    Copy the full SHA
    3e82edc View commit details
    Browse the repository at this point in the history
  2. Update dependencies

    ai committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    1dba938 View commit details
    Browse the repository at this point in the history
  3. Fix linter

    ai committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    62b1626 View commit details
    Browse the repository at this point in the history
  4. Release 8.5.27 version

    ai committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    ae40ca4 View commit details
    Browse the repository at this point in the history
  5. Add missed release notes

    ai committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    5039fd7 View commit details
    Browse the repository at this point in the history
  6. Typo

    ai committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    f8fc252 View commit details
    Browse the repository at this point in the history
  7. Release 8.5.28 version

    ai committed Sep 3, 2026
    Configuration menu
    Copy the full SHA
    e544bff View commit details
    Browse the repository at this point in the history
Loading