File tree 9 files changed +34
-10
lines changed
9 files changed +34
-10
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.83.2
2
+
3
+ * Properly display deprecation IDs for the JS Sass API.
4
+
5
+ * Don't display deprecation IDs for user-defined deprecations.
6
+
1
7
## 1.83.1
2
8
3
9
* Fix a bug where ` --quiet-deps ` would get deactivated for ` @content ` blocks,
Original file line number Diff line number Diff line change @@ -44,13 +44,17 @@ final class EmbeddedLogger extends LoggerWithDeprecationType {
44
44
{FileSpan ? span, Trace ? trace, Deprecation ? deprecation}) {
45
45
var formatted = withGlyphs (() {
46
46
var buffer = StringBuffer ();
47
+ var showDeprecation =
48
+ deprecation != null && deprecation != Deprecation .userAuthored;
47
49
if (_color) {
48
50
buffer.write ('\u 001b[33m\u 001b[1m' );
49
51
if (deprecation != null ) buffer.write ('Deprecation ' );
50
52
buffer.write ('Warning\u 001b[0m' );
53
+ if (showDeprecation) buffer.write (' [\u 001b[34m$deprecation \u 001b[0m]' );
51
54
} else {
52
55
if (deprecation != null ) buffer.write ('DEPRECATION ' );
53
56
buffer.write ('WARNING' );
57
+ if (showDeprecation) buffer.write (' [$deprecation ]' );
54
58
}
55
59
if (span == null ) {
56
60
buffer.writeln (': $message ' );
Original file line number Diff line number Diff line change @@ -41,8 +41,14 @@ final class JSToDartLogger extends LoggerWithDeprecationType {
41
41
deprecationType: deprecations[deprecation? .id]));
42
42
} else {
43
43
_withAscii (() {
44
- _fallback.warn (message,
45
- span: span, trace: trace, deprecation: deprecation != null );
44
+ switch (_fallback) {
45
+ case LoggerWithDeprecationType ():
46
+ _fallback.internalWarn (message,
47
+ span: span, trace: trace, deprecation: deprecation);
48
+ case _:
49
+ _fallback.warn (message,
50
+ span: span, trace: trace, deprecation: deprecation != null );
51
+ }
46
52
});
47
53
}
48
54
}
Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ final class StderrLogger extends LoggerWithDeprecationType {
21
21
void internalWarn (String message,
22
22
{FileSpan ? span, Trace ? trace, Deprecation ? deprecation}) {
23
23
var result = StringBuffer ();
24
+ var showDeprecation =
25
+ deprecation != null && deprecation != Deprecation .userAuthored;
24
26
if (color) {
25
27
// Bold yellow.
26
28
result.write ('\u 001b[33m\u 001b[1m' );
27
29
if (deprecation != null ) result.write ('Deprecation ' );
28
30
result.write ('Warning\u 001b[0m' );
29
- if (deprecation != null ) {
30
- result.write (' [\u 001b[34m$deprecation \u 001b[0m]' );
31
- }
31
+ if (showDeprecation) result.write (' [\u 001b[34m$deprecation \u 001b[0m]' );
32
32
} else {
33
33
if (deprecation != null ) result.write ('DEPRECATION ' );
34
34
result.write ('WARNING' );
35
- if (deprecation != null ) result.write (' [$deprecation ]' );
35
+ if (showDeprecation ) result.write (' [$deprecation ]' );
36
36
}
37
37
38
38
if (span == null ) {
Original file line number Diff line number Diff line change
1
+ ## 0.4.10
2
+
3
+ * No user-visible changes.
4
+
1
5
## 0.4.9
2
6
3
7
* Add support for parsing the ` @include ` rule.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sass-parser" ,
3
- "version" : " 0.4.9 " ,
3
+ "version" : " 0.4.10 " ,
4
4
"description" : " A PostCSS-compatible wrapper of the official Sass parser" ,
5
5
"repository" : " sass/sass" ,
6
6
"author" : " Google Inc." ,
Original file line number Diff line number Diff line change
1
+ ## 15.0.2
2
+
3
+ * No user-visible changes.
4
+
1
5
## 15.0.1
2
6
3
7
* No user-visible changes.
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ 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 : 15.0.1
5
+ version : 15.0.2
6
6
description : Additional APIs for Dart Sass.
7
7
homepage : https://github.com/sass/dart-sass
8
8
9
9
environment :
10
10
sdk : " >=3.3.0 <4.0.0"
11
11
12
12
dependencies :
13
- sass : 1.83.1
13
+ sass : 1.83.2
14
14
15
15
dev_dependencies :
16
16
dartdoc : ^8.0.14
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.83.1
2
+ version : 1.83.2
3
3
description : A Sass implementation in Dart.
4
4
homepage : https://github.com/sass/dart-sass
5
5
You can’t perform that action at this time.
0 commit comments