File tree 7 files changed +35
-4
lines changed
7 files changed +35
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.38.2
2
+
3
+ * No user-visible changes
4
+
1
5
## 1.38.1
2
6
3
7
* No user-visible changes
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export 'src/exception.dart' show SassException;
26
26
export 'src/importer.dart' ;
27
27
export 'src/logger.dart' ;
28
28
export 'src/syntax.dart' ;
29
- export 'src/value.dart' ;
29
+ export 'src/value.dart' hide SassApiColor ;
30
30
export 'src/visitor/serialize.dart' show OutputStyle;
31
31
export 'src/warn.dart' show warn;
32
32
Original file line number Diff line number Diff line change @@ -305,3 +305,25 @@ class SassColor extends Value {
305
305
return buffer.toString ();
306
306
}
307
307
}
308
+
309
+ /// Extension methods that are only visible through the `sass_api` package.
310
+ ///
311
+ /// These methods are considered less general-purpose and more liable to change
312
+ /// than the main [SassColor] interface.
313
+ extension SassApiColor on SassColor {
314
+ /// Whether the `red` , `green` , and `blue` fields have already been computed
315
+ /// for this value.
316
+ ///
317
+ /// Note that these fields can always be safely computed after the fact; this
318
+ /// just allows users such as the Sass embedded compiler to access whichever
319
+ /// representation is readily available.
320
+ bool get hasCalculatedRgb => _red != null ;
321
+
322
+ /// Whether the `hue` , `saturation` , and `lightness` fields have already been
323
+ /// computed for this value.
324
+ ///
325
+ /// Note that these fields can always be safely computed after the fact; this
326
+ /// just allows users such as the Sass embedded compiler to access whichever
327
+ /// representation is readily available.
328
+ bool get hasCalculatedHsl => _saturation != null ;
329
+ }
Original file line number Diff line number Diff line change
1
+ ## 1.0.0-beta.5
2
+
3
+ * Add ` SassColor.hasCalculatedRgb ` and ` .hasCalculatedHsl ` extension getters.
4
+
1
5
## 1.0.0-beta.4
2
6
3
7
* ` UseRule ` , ` ForwardRule ` , and ` DynamicImport ` now share a common ` Dependency `
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export 'package:sass/src/ast/sass.dart' hide AtRootQuery;
14
14
export 'package:sass/src/async_import_cache.dart' ;
15
15
export 'package:sass/src/exception.dart' show SassFormatException;
16
16
export 'package:sass/src/import_cache.dart' ;
17
+ export 'package:sass/src/value/color.dart' ;
17
18
export 'package:sass/src/visitor/find_dependencies.dart' ;
18
19
export 'package:sass/src/visitor/interface/expression.dart' ;
19
20
export 'package:sass/src/visitor/interface/statement.dart' ;
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 : 1.0.0-beta.4
5
+ version : 1.0.0-beta.5
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 : ' >=2.12.0 <3.0.0'
11
11
12
12
dependencies :
13
- sass : 1.38.1
13
+ sass : 1.38.2
14
14
15
15
dependency_overrides :
16
16
sass : {path: ../..}
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.38.1
2
+ version : 1.38.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