File tree Expand file tree Collapse file tree 5 files changed +20
-6
lines changed Expand file tree Collapse file tree 5 files changed +20
-6
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.52.3
2
+
3
+ * Fix crash when trailing loud comments (` /* ... */ ` ) appear twice in a row
4
+ across two different imports which themselves imported the same file each.
5
+
1
6
## 1.52.2
2
7
3
8
* Preserve location of trailing loud comments (` /* ... */ ` ) instead of pushing
Original file line number Diff line number Diff line change @@ -1356,6 +1356,11 @@ class _SerializeVisitor
1356
1356
// simple forward search of the previous.span.text as that might contain
1357
1357
// other left braces.
1358
1358
var searchFrom = node.span.start.offset - previous.span.start.offset - 1 ;
1359
+
1360
+ // Imports can cause a node to be "contained" by another node when they are
1361
+ // actually the same node twice in a row.
1362
+ if (searchFrom < 0 ) return false ;
1363
+
1359
1364
var endOffset = previous.span.text.lastIndexOf ("{" , searchFrom);
1360
1365
endOffset = math.max (0 , endOffset);
1361
1366
var span = previous.span.file.span (
Original file line number Diff line number Diff line change
1
+ ## 1.0.0-beta.48
2
+
3
+ * No user-visible changes.
4
+
1
5
## 1.0.0-beta.47
2
6
3
7
* No user-visible changes.
Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ name: sass_api
2
2
# Note: Every time we add a new Sass AST node, we need to bump the *major*
3
3
# version because it's a breaking change for anyone who's implementing the
4
4
# visitor interface(s).
5
- version : 1.0.0-beta.47
5
+ version : 1.0.0-beta.48
6
6
description : Additional APIs for Dart Sass.
7
7
homepage : https://github.com/sass/dart-sass
8
8
9
9
environment :
10
- sdk : ' >=2.12.0 <3.0.0'
10
+ sdk : " >=2.12.0 <3.0.0"
11
11
12
12
dependencies :
13
- sass : 1.52.2
13
+ sass : 1.52.3
14
14
15
15
dev_dependencies :
16
16
dartdoc : ^5.0.0
17
17
18
18
dependency_overrides :
19
- sass : {path: ../..}
19
+ sass : { path: ../.. }
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.52.2
2
+ version : 1.52.3
3
3
description : A Sass implementation in Dart.
4
4
homepage : https://github.com/sass/dart-sass
5
5
@@ -8,7 +8,7 @@ executables:
8
8
sass : sass
9
9
10
10
environment :
11
- sdk : ' >=2.12.0 <3.0.0'
11
+ sdk : " >=2.12.0 <3.0.0"
12
12
13
13
dependencies :
14
14
args : ^2.0.0
You can’t perform that action at this time.
0 commit comments