File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
## 1.78.0
2
2
3
+ * The ` meta.feature-exists ` function is now deprecated. This deprecation is
4
+ named ` feature-exists ` .
5
+
3
6
* Fix a crash when using ` @at-root ` without any queries or children in the
4
7
indented syntax.
5
8
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ enum Deprecation {
15
15
// DO NOT EDIT. This section was generated from the language repo.
16
16
// See tool/grind/generate_deprecations.dart for details.
17
17
//
18
- // Checksum: 309e4f1f008f08379b824ab6094e13df2e18e187
18
+ // Checksum: dd5c6aa0f1431fa9fc88bb71a96f832adbc165f5
19
19
20
20
/// Deprecation for passing a string directly to meta.call().
21
21
callString ('call-string' ,
@@ -95,6 +95,10 @@ enum Deprecation {
95
95
deprecatedIn: '1.77.7' ,
96
96
description: 'Declarations after or between nested rules.' ),
97
97
98
+ /// Deprecation for meta.feature-exists
99
+ featureExists ('feature-exists' ,
100
+ deprecatedIn: '1.78.0' , description: 'meta.feature-exists' ),
101
+
98
102
/// Deprecation for @import rules.
99
103
import.future ('import' , description: '@import rules.' ),
100
104
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import 'package:collection/collection.dart';
8
8
9
9
import '../ast/sass/statement/mixin_rule.dart' ;
10
10
import '../callable.dart' ;
11
+ import '../deprecation.dart' ;
12
+ import '../evaluation_context.dart' ;
11
13
import '../util/map.dart' ;
12
14
import '../value.dart' ;
13
15
@@ -26,6 +28,10 @@ final global = UnmodifiableListView([
26
28
// evaluator, because they need access to context that's only available at
27
29
// runtime.
28
30
_function ("feature-exists" , r"$feature" , (arguments) {
31
+ warnForDeprecation (
32
+ "The feature-exists() function is deprecated.\n\n "
33
+ "More info: https://sass-lang.com/d/feature-exists" ,
34
+ Deprecation .featureExists);
29
35
var feature = arguments[0 ].assertString ("feature" );
30
36
return SassBoolean (_features.contains (feature.text));
31
37
}),
You can’t perform that action at this time.
0 commit comments