Skip to content

Commit

Permalink
Don't emit "deg" for hsl hues (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Feb 14, 2023
1 parent d2bc710 commit c8b4cd0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.58.1

* Emit a unitless hue when serializing `hsl()` colors. The `deg` unit is
incompatible with IE, and while that officially falls outside our
compatibility policy, it's better to lean towards greater compatibility.

## 1.58.0

* Remove sourcemap comments from Sass sources. The generated sourcemap comment
Expand Down
1 change: 0 additions & 1 deletion lib/src/visitor/serialize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ class _SerializeVisitor
var opaque = fuzzyEquals(value.alpha, 1);
_buffer.write(opaque ? "hsl(" : "hsla(");
_writeNumber(value.hue);
_buffer.write("deg");
_buffer.write(_commaSeparator);
_writeNumber(value.saturation);
_buffer.writeCharCode($percent);
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.0.1

* No user-visible changes.

## 5.0.0

* **Breaking change:** Instead of a `Tuple`, `findDependencies()` now returns a
Expand Down
4 changes: 2 additions & 2 deletions pkg/sass_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: sass_api
# Note: Every time we add a new Sass AST node, we need to bump the *major*
# version because it's a breaking change for anyone who's implementing the
# visitor interface(s).
version: 5.0.0
version: 5.0.1
description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
sass: 1.58.0
sass: 1.58.1

dev_dependencies:
dartdoc: ^5.0.0
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.58.0
version: 1.58.1
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down

0 comments on commit c8b4cd0

Please sign in to comment.