From 1763ef68751a446c9afa245490c7214075a92967 Mon Sep 17 00:00:00 2001 From: Jennifer Thakar Date: Thu, 19 Sep 2024 15:20:29 -0700 Subject: [PATCH] Add documentation link to legacy-js-api warning --- CHANGELOG.md | 5 +++++ lib/src/async_compile.dart | 3 ++- lib/src/compile.dart | 5 +++-- pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) 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/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