Skip to content

Commit c907bcb

Browse files
authored
Expose Expression.isCalculationSafe to sass_api (#2404)
This is necessary to fix sass/migrator#262.
1 parent 37a05f9 commit c907bcb

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

lib/src/ast/sass/expression.dart

-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ abstract class Expression implements SassNode {
2626
Expression();
2727

2828
/// Whether this expression can be used in a calculation context.
29-
///
30-
/// @nodoc
31-
@internal
3229
bool get isCalculationSafe => accept(const IsCalculationSafeVisitor());
3330

3431
/// If this expression is valid interpolated plain CSS, returns the equivalent

pkg/sass-parser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-parser",
3-
"version": "0.4.1-dev",
3+
"version": "0.4.1",
44
"description": "A PostCSS-compatible wrapper of the official Sass parser",
55
"repository": "sass/sass",
66
"author": "Google Inc.",

pkg/sass_api/CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 14.0.1
1+
## 14.1.0
22

3-
* No user-visible changes.
3+
* Add `Expression.isCalculationSafe`, which returns true when this expression
4+
can safely be used in a calcuation.
45

56
## 14.0.0
67

pkg/sass_api/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: sass_api
22
# Note: Every time we add a new Sass AST node, we need to bump the *major*
33
# version because it's a breaking change for anyone who's implementing the
44
# visitor interface(s).
5-
version: 14.0.1-dev
5+
version: 14.1.0
66
description: Additional APIs for Dart Sass.
77
homepage: https://github.com/sass/dart-sass
88

99
environment:
1010
sdk: ">=3.0.0 <4.0.0"
1111

1212
dependencies:
13-
sass: 1.80.4-dev
13+
sass: 1.80.4
1414

1515
dev_dependencies:
1616
dartdoc: ^8.0.14

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.80.4-dev
2+
version: 1.80.4
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)