-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Comparing changes
Open a pull request
base repository: postcss/postcss
base: eae46db
head repository: postcss/postcss
compare: 92ccc93
- 17 commits
- 24 files changed
- 9 contributors
Commits on Jun 16, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 51d5317 - Browse repository at this point
Copy the full SHA 51d5317View commit details
Commits on Jun 25, 2026
-
Configuration menu - View commit details
-
Copy full SHA for e961264 - Browse repository at this point
Copy the full SHA e961264View commit details
Commits on Jun 27, 2026
-
fix(node): always include offset in positionBy() like rangeBy() (#2099)
positionBy()'s default branch returned this.source.start verbatim, so for custom syntaxes whose source.start lacks an offset (e.g. postcss-html) it returned a position without offset, violating the Position type which declares offset as required. rangeBy()/positionInside() were normalized to always compute offset via sourceOffset() (#2033, issue #2029) but positionBy() was left behind. Mirror the rangeBy() pattern. Co-authored-by: oss69U-prep <prep@local> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 698425a - Browse repository at this point
Copy the full SHA 698425aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2b4872 - Browse repository at this point
Copy the full SHA d2b4872View commit details -
Configuration menu - View commit details
-
Copy full SHA for db3ecbf - Browse repository at this point
Copy the full SHA db3ecbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6091858 - Browse repository at this point
Copy the full SHA 6091858View commit details -
Configuration menu - View commit details
-
Copy full SHA for 616e571 - Browse repository at this point
Copy the full SHA 616e571View commit details -
Configuration menu - View commit details
-
Copy full SHA for b91e4a6 - Browse repository at this point
Copy the full SHA b91e4a6View commit details -
Fix Node#rangeBy() ignoring index 0 (#2091)
When calling Node#rangeBy() (and therefore Node#error() and Node#warn()) with index 0, the resulting range covered the whole node instead of a single character at offset 0. The end-of-range branch used a truthy check on opts.index, so an index of 0 fell through and left the end position at the node's end. This is the same off-by-zero issue that was previously fixed for endIndex; the index branches were missed. Switch both index checks to a numeric type check, matching the existing endIndex handling. index 0 now produces a single-character range, consistent with every other index value.
Configuration menu - View commit details
-
Copy full SHA for d1e80b8 - Browse repository at this point
Copy the full SHA d1e80b8View commit details
Commits on Jun 28, 2026
-
Preserve node raws when rehydrating a JSON AST (#2100)
fromJSON() attached child nodes through the container constructor, which runs them back through append()/normalize(). For root-level children that re-applies insertion spacing normalization and overwrites each node's own raws.before with the previous sibling's, so toJSON() -> fromJSON() was not lossless: stylesheets with non-uniform blank lines between top-level rules came back with their spacing flattened. Rehydrate children separately and attach them directly, keeping the raws exactly as serialized.
Configuration menu - View commit details
-
Copy full SHA for 3828982 - Browse repository at this point
Copy the full SHA 3828982View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8863369 - Browse repository at this point
Copy the full SHA 8863369View commit details -
Configuration menu - View commit details
-
Copy full SHA for da323fc - Browse repository at this point
Copy the full SHA da323fcView commit details -
Don't clone root-less child nodes in container constructor (#2097)
The container constructor cloned every real Node passed in `nodes`, so a freshly created (parent-less) node was adopted as a copy and the caller's original reference never had its `parent` set — later operating on it threw `Cannot read properties of undefined`. The clone was added only to keep the source tree intact when moving nodes between roots, so it's skipped when the node has no parent. Nodes that already belong to another tree are still cloned, preserving the existing behavior. Closes #1987.
Configuration menu - View commit details
-
Copy full SHA for d4feed6 - Browse repository at this point
Copy the full SHA d4feed6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34942ce - Browse repository at this point
Copy the full SHA 34942ceView commit details -
Fix
Input#origin()returning incorrect position (#2036)* Add missing `test.run()` * Fix `Input#origin()` returning incorrect position * Refactor test with source-map-js
Configuration menu - View commit details
-
Copy full SHA for 46e4510 - Browse repository at this point
Copy the full SHA 46e4510View commit details -
Configuration menu - View commit details
-
Copy full SHA for 818bdd6 - Browse repository at this point
Copy the full SHA 818bdd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92ccc93 - Browse repository at this point
Copy the full SHA 92ccc93View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff eae46db...92ccc93