diff --git a/CHANGELOG.md b/CHANGELOG.md index 28c5d93de..58484c821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ `color.green()`, `color.blue()`, `color.hue()`, `color.saturation()`, `color.lightness()`, `color.whiteness()`, and `color.blackness()`. +* Update deprecation warnings for the legacy JS API to include a link to + [relevant documentation]. + +[relevant documentation]: https://sass-lang.com/d/legacy-js-api + ## 1.79.1 * No user-visible changes. diff --git a/lib/src/async_compile.dart b/lib/src/async_compile.dart index 78d3e3256..01d9574d7 100644 --- a/lib/src/async_compile.dart +++ b/lib/src/async_compile.dart @@ -163,7 +163,8 @@ Future _compileStylesheet( logger?.warnForDeprecation( Deprecation.legacyJsApi, 'The legacy JS API is deprecated and will be removed in ' - 'Dart Sass 2.0.0.'); + 'Dart Sass 2.0.0.\n\n' + 'More info: https://sass-lang.com/d/legacy-js-api'); } var evaluateResult = await evaluateAsync(stylesheet, importCache: importCache, diff --git a/lib/src/compile.dart b/lib/src/compile.dart index b0132f3af..265443efc 100644 --- a/lib/src/compile.dart +++ b/lib/src/compile.dart @@ -5,7 +5,7 @@ // DO NOT EDIT. This file was generated from async_compile.dart. // See tool/grind/synchronize.dart for details. // -// Checksum: 4141eec2214ef480b6fdf07e5090202cdea3eb89 +// Checksum: 42c9e2008d449ba4b73b3b92a64cf4d51253837d // // ignore_for_file: unused_import @@ -172,7 +172,8 @@ CompileResult _compileStylesheet( logger?.warnForDeprecation( Deprecation.legacyJsApi, 'The legacy JS API is deprecated and will be removed in ' - 'Dart Sass 2.0.0.'); + 'Dart Sass 2.0.0.\n\n' + 'More info: https://sass-lang.com/d/legacy-js-api'); } var evaluateResult = evaluate(stylesheet, importCache: importCache, diff --git a/pkg/sass-parser/package.json b/pkg/sass-parser/package.json index fcb6bc998..6d9eeba97 100644 --- a/pkg/sass-parser/package.json +++ b/pkg/sass-parser/package.json @@ -1,6 +1,6 @@ { "name": "sass-parser", - "version": "0.2.1-dev", + "version": "0.2.1", "description": "A PostCSS-compatible wrapper of the official Sass parser", "repository": "sass/sass", "author": "Google Inc.", diff --git a/pubspec.yaml b/pubspec.yaml index af25ccf65..0ad1c05c1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.79.2-dev +version: 1.79.2 description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass