diff --git a/CHANGELOG.md b/CHANGELOG.md index b64a1a8de..3d6fa2cb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/visitor/serialize.dart b/lib/src/visitor/serialize.dart index 316a0dbe1..1cd98b593 100644 --- a/lib/src/visitor/serialize.dart +++ b/lib/src/visitor/serialize.dart @@ -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); diff --git a/pkg/sass_api/CHANGELOG.md b/pkg/sass_api/CHANGELOG.md index 1f6f55a16..06c7fc29f 100644 --- a/pkg/sass_api/CHANGELOG.md +++ b/pkg/sass_api/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.0.1 + +* No user-visible changes. + ## 5.0.0 * **Breaking change:** Instead of a `Tuple`, `findDependencies()` now returns a diff --git a/pkg/sass_api/pubspec.yaml b/pkg/sass_api/pubspec.yaml index c39ba869e..cd8fb44ae 100644 --- a/pkg/sass_api/pubspec.yaml +++ b/pkg/sass_api/pubspec.yaml @@ -2,7 +2,7 @@ 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 @@ -10,7 +10,7 @@ environment: sdk: ">=2.17.0 <3.0.0" dependencies: - sass: 1.58.0 + sass: 1.58.1 dev_dependencies: dartdoc: ^5.0.0 diff --git a/pubspec.yaml b/pubspec.yaml index 1ff90c37f..c7c9b78c1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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