File tree Expand file tree Collapse file tree 10 files changed +27
-13
lines changed Expand file tree Collapse file tree 10 files changed +27
-13
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.90.0
2
+
3
+ * ** Potentially breaking bug fix:** Fix a situation where Sass wasn't emitting
4
+ an error when loading a ` @forward ` ed module with a configuration when that
5
+ module had already been loaded with a different configuration * and* all
6
+ configured variables in the new configuration had already been used.
7
+
1
8
## 1.89.2
2
9
3
10
### Embedded Host
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ final class Configuration {
50
50
/// will be considered to have the same original config if they were created
51
51
/// as a copy from the same base configuration.
52
52
bool sameOriginal (Configuration that) =>
53
- _originalConfiguration == that._originalConfiguration;
53
+ identical ( _originalConfiguration, that._originalConfiguration) ;
54
54
55
55
/// The empty configuration, which indicates that the module has not been
56
56
/// configured.
@@ -70,7 +70,7 @@ final class Configuration {
70
70
71
71
/// Creates a new configuration from this one based on a `@forward` rule.
72
72
Configuration throughForward (ForwardRule forward) {
73
- if (isEmpty) return const Configuration . empty () ;
73
+ if (isEmpty) return this ;
74
74
var newValues = _values;
75
75
76
76
// Only allow variables that are visible through the `@forward` to be
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ abstract interface class Module<T extends AsyncCallable> {
30
30
/// [AstNode.span] if the span isn't required, since some nodes need to do
31
31
/// real work to manufacture a source span.
32
32
///
33
- /// Implementations must ensure that this has the same keys as [variables] if
34
- /// it's not `null` .
33
+ /// Implementations must ensure that this has the same keys as [variables] .
35
34
Map <String , AstNode > get variableNodes;
36
35
37
36
/// The module's functions.
Original file line number Diff line number Diff line change @@ -854,8 +854,8 @@ final class _EvaluateVisitor
854
854
}) async {
855
855
var url = stylesheet.span.sourceUrl;
856
856
857
+ var currentConfiguration = configuration ?? _configuration;
857
858
if (_modules[url] case var alreadyLoaded? ) {
858
- var currentConfiguration = configuration ?? _configuration;
859
859
if (! _moduleConfigurations[url]! .sameOriginal (currentConfiguration) &&
860
860
currentConfiguration is ExplicitConfiguration ) {
861
861
var message = namesInErrors
@@ -946,7 +946,7 @@ final class _EvaluateVisitor
946
946
);
947
947
if (url != null ) {
948
948
_modules[url] = module;
949
- _moduleConfigurations[url] = _configuration ;
949
+ _moduleConfigurations[url] = currentConfiguration ;
950
950
if (nodeWithSpan != null ) _moduleNodes[url] = nodeWithSpan;
951
951
}
952
952
Original file line number Diff line number Diff line change 5
5
// DO NOT EDIT. This file was generated from async_evaluate.dart.
6
6
// See tool/grind/synchronize.dart for details.
7
7
//
8
- // Checksum: a3068d04660dd2bed34b884aa6e1a21d423dc4e5
8
+ // Checksum: 30755d20ab8cdb065eb2c24d27a5f8a248591fcd
9
9
//
10
10
// ignore_for_file: unused_import
11
11
@@ -862,8 +862,8 @@ final class _EvaluateVisitor
862
862
}) {
863
863
var url = stylesheet.span.sourceUrl;
864
864
865
+ var currentConfiguration = configuration ?? _configuration;
865
866
if (_modules[url] case var alreadyLoaded? ) {
866
- var currentConfiguration = configuration ?? _configuration;
867
867
if (! _moduleConfigurations[url]! .sameOriginal (currentConfiguration) &&
868
868
currentConfiguration is ExplicitConfiguration ) {
869
869
var message = namesInErrors
@@ -954,7 +954,7 @@ final class _EvaluateVisitor
954
954
);
955
955
if (url != null ) {
956
956
_modules[url] = module;
957
- _moduleConfigurations[url] = _configuration ;
957
+ _moduleConfigurations[url] = currentConfiguration ;
958
958
if (nodeWithSpan != null ) _moduleNodes[url] = nodeWithSpan;
959
959
}
960
960
Original file line number Diff line number Diff line change
1
+ ## 0.4.25
2
+
3
+ * No user-visible changes.
4
+
1
5
## 0.4.24
2
6
3
7
* No user-visible changes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sass-parser" ,
3
- "version" : " 0.4.24 " ,
3
+ "version" : " 0.4.25 " ,
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.8.0
2
+
3
+ * No user-visible changes.
4
+
1
5
## 15.7.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.7.1
5
+ version : 15.8.0
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.6.0 <4.0.0"
11
11
12
12
dependencies :
13
- sass : 1.89.2
13
+ sass : 1.90.0
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.89.2
2
+ version : 1.90.0
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