File tree Expand file tree Collapse file tree 4 files changed +36
-32
lines changed Expand file tree Collapse file tree 4 files changed +36
-32
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.35.2
2
+
3
+ * ** Potentially breaking bug fix:** Fixed a bug where certain local variable
4
+ declarations nested within multiple ` @if ` statements would incorrectly
5
+ override a global variable. It's unlikely that any real stylesheets were
6
+ relying on this bug, but if so they can simply add ` !global ` to the variable
7
+ declaration to preserve the old behavior.
8
+
1
9
## 1.35.1
2
10
3
11
* Fix a bug where the quiet dependency flag didn't silence warnings in some
Original file line number Diff line number Diff line change @@ -740,29 +740,27 @@ class AsyncEnvironment {
740
740
/// executes [callback] and returns its result.
741
741
Future <T > scope <T >(Future <T > callback (),
742
742
{bool semiGlobal = false , bool when = true }) async {
743
+ // We have to track semi-globalness even if `!when` so that
744
+ //
745
+ // div {
746
+ // @if ... {
747
+ // $x: y;
748
+ // }
749
+ // }
750
+ //
751
+ // doesn't assign to the global scope.
752
+ semiGlobal = semiGlobal && _inSemiGlobalScope;
753
+ var wasInSemiGlobalScope = _inSemiGlobalScope;
754
+ _inSemiGlobalScope = semiGlobal;
755
+
743
756
if (! when ) {
744
- // We still have to track semi-globalness so that
745
- //
746
- // div {
747
- // @if ... {
748
- // $x: y;
749
- // }
750
- // }
751
- //
752
- // doesn't assign to the global scope.
753
- var wasInSemiGlobalScope = _inSemiGlobalScope;
754
- _inSemiGlobalScope = semiGlobal;
755
757
try {
756
758
return await callback ();
757
759
} finally {
758
760
_inSemiGlobalScope = wasInSemiGlobalScope;
759
761
}
760
762
}
761
763
762
- semiGlobal = semiGlobal && _inSemiGlobalScope;
763
- var wasInSemiGlobalScope = _inSemiGlobalScope;
764
- _inSemiGlobalScope = semiGlobal;
765
-
766
764
_variables.add ({});
767
765
_variableNodes.add ({});
768
766
_functions.add ({});
Original file line number Diff line number Diff line change 5
5
// DO NOT EDIT. This file was generated from async_environment.dart.
6
6
// See tool/grind/synchronize.dart for details.
7
7
//
8
- // Checksum: d5a12dbc383245a91d1e2fee0e2c4aa38939a3d8
8
+ // Checksum: 6e5ee671e0a6e5b1d6ac87beb6aeee1e4b155d74
9
9
//
10
10
// ignore_for_file: unused_import
11
11
@@ -746,29 +746,27 @@ class Environment {
746
746
/// If [when] is false, this doesn't create a new scope and instead just
747
747
/// executes [callback] and returns its result.
748
748
T scope <T >(T callback (), {bool semiGlobal = false , bool when = true }) {
749
+ // We have to track semi-globalness even if `!when` so that
750
+ //
751
+ // div {
752
+ // @if ... {
753
+ // $x: y;
754
+ // }
755
+ // }
756
+ //
757
+ // doesn't assign to the global scope.
758
+ semiGlobal = semiGlobal && _inSemiGlobalScope;
759
+ var wasInSemiGlobalScope = _inSemiGlobalScope;
760
+ _inSemiGlobalScope = semiGlobal;
761
+
749
762
if (! when ) {
750
- // We still have to track semi-globalness so that
751
- //
752
- // div {
753
- // @if ... {
754
- // $x: y;
755
- // }
756
- // }
757
- //
758
- // doesn't assign to the global scope.
759
- var wasInSemiGlobalScope = _inSemiGlobalScope;
760
- _inSemiGlobalScope = semiGlobal;
761
763
try {
762
764
return callback ();
763
765
} finally {
764
766
_inSemiGlobalScope = wasInSemiGlobalScope;
765
767
}
766
768
}
767
769
768
- semiGlobal = semiGlobal && _inSemiGlobalScope;
769
- var wasInSemiGlobalScope = _inSemiGlobalScope;
770
- _inSemiGlobalScope = semiGlobal;
771
-
772
770
_variables.add ({});
773
771
_variableNodes.add ({});
774
772
_functions.add ({});
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.35.1
2
+ version : 1.35.2-dev
3
3
description : A Sass implementation in Dart.
4
4
author : Sass Team
5
5
homepage : https://github.com/sass/dart-sass
You can’t perform that action at this time.
0 commit comments