diff --git a/CHANGELOG.md b/CHANGELOG.md index 75b0036ba..5f0f81854 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.80.2 + +* Fix a bug where deprecation warnings were incorrectly emitted for the + plain-CSS `invert()` function. + ## 1.80.1 * Fix a bug where repeated deprecation warnings were not automatically limited. diff --git a/lib/src/functions/color.dart b/lib/src/functions/color.dart index 7acac4562..7f0acd1fb 100644 --- a/lib/src/functions/color.dart +++ b/lib/src/functions/color.dart @@ -55,9 +55,12 @@ final global = UnmodifiableListView([ space: ColorSpace.rgb, name: 'channels') }), - _function("invert", r"$color, $weight: 100%, $space: null", - (arguments) => _invert(arguments, global: true)) - .withDeprecationWarning("color"), + _function("invert", r"$color, $weight: 100%, $space: null", (arguments) { + if (arguments[0] is! SassNumber && !arguments[0].isSpecialNumber) { + warnForGlobalBuiltIn("color", "invert"); + } + return _invert(arguments, global: true); + }), // ### HSL _channelFunction("hue", ColorSpace.hsl, (color) => color.hue, diff --git a/pkg/sass-parser/CHANGELOG.md b/pkg/sass-parser/CHANGELOG.md index 3ef13ebd8..96134c138 100644 --- a/pkg/sass-parser/CHANGELOG.md +++ b/pkg/sass-parser/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.2 + +* No user-visible changes. + ## 0.3.1 * No user-visible changes. diff --git a/pkg/sass-parser/package.json b/pkg/sass-parser/package.json index 2ca8ffdf2..23408b94c 100644 --- a/pkg/sass-parser/package.json +++ b/pkg/sass-parser/package.json @@ -1,6 +1,6 @@ { "name": "sass-parser", - "version": "0.3.1", + "version": "0.3.2", "description": "A PostCSS-compatible wrapper of the official Sass parser", "repository": "sass/sass", "author": "Google Inc.", diff --git a/pkg/sass_api/CHANGELOG.md b/pkg/sass_api/CHANGELOG.md index 391f58055..5d7f7666b 100644 --- a/pkg/sass_api/CHANGELOG.md +++ b/pkg/sass_api/CHANGELOG.md @@ -1,3 +1,7 @@ +## 13.1.2 + +* No user-visible changes. + ## 13.1.1 * Make `AsyncImporterCache.wrapLogger()` and `ImporterCache.wrapLogger()` always diff --git a/pkg/sass_api/pubspec.yaml b/pkg/sass_api/pubspec.yaml index d4c2c61a5..93d17af15 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: 13.1.1 +version: 13.1.2 description: Additional APIs for Dart Sass. homepage: https://github.com/sass/dart-sass @@ -10,7 +10,7 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: - sass: 1.80.1 + sass: 1.80.2 dev_dependencies: dartdoc: ^8.0.14 diff --git a/pubspec.yaml b/pubspec.yaml index 3c8de29ea..448495da0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.80.1 +version: 1.80.2 description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass