Skip to content

Commit 3c9a501

Browse files
committed
Fix sass-parser compatibility with the latest PostCSS
1 parent 9a5b4f5 commit 3c9a501

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pkg/sass-parser/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 0.4.23
22

3+
* Update types for compatibility with the latest PostCSS.
4+
35
* **Potentially-breaking bug fix**: parenthesized, comma-separated lists are now
46
correctly wrapped in a `ParenthesizedExpression`.
57

pkg/sass-parser/lib/src/node.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ declare abstract class Node
121121
opts?: Pick<postcss.WarningOptions, 'index' | 'word'>,
122122
): postcss.Position;
123123
positionInside(index: number): postcss.Position;
124-
rangeBy(opts?: Pick<postcss.WarningOptions, 'endIndex' | 'index' | 'word'>): {
124+
rangeBy(
125+
opts?: Pick<
126+
postcss.WarningOptions,
127+
'end' | 'endIndex' | 'index' | 'start' | 'word'
128+
>,
129+
): {
125130
start: postcss.Position;
126131
end: postcss.Position;
127132
};

0 commit comments

Comments
 (0)