Skip to content

Commit fa4827f

Browse files
authoredSep 19, 2024··
Add documentation link to legacy-js-api warning (#2355)
1 parent 7c3f5e2 commit fa4827f

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed
 

‎CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
`color.green()`, `color.blue()`, `color.hue()`, `color.saturation()`,
55
`color.lightness()`, `color.whiteness()`, and `color.blackness()`.
66

7+
* Update deprecation warnings for the legacy JS API to include a link to
8+
[relevant documentation].
9+
10+
[relevant documentation]: https://sass-lang.com/d/legacy-js-api
11+
712
## 1.79.1
813

914
* No user-visible changes.

‎lib/src/async_compile.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ Future<CompileResult> _compileStylesheet(
163163
logger?.warnForDeprecation(
164164
Deprecation.legacyJsApi,
165165
'The legacy JS API is deprecated and will be removed in '
166-
'Dart Sass 2.0.0.');
166+
'Dart Sass 2.0.0.\n\n'
167+
'More info: https://sass-lang.com/d/legacy-js-api');
167168
}
168169
var evaluateResult = await evaluateAsync(stylesheet,
169170
importCache: importCache,

‎lib/src/compile.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_compile.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: 4141eec2214ef480b6fdf07e5090202cdea3eb89
8+
// Checksum: 42c9e2008d449ba4b73b3b92a64cf4d51253837d
99
//
1010
// ignore_for_file: unused_import
1111

@@ -172,7 +172,8 @@ CompileResult _compileStylesheet(
172172
logger?.warnForDeprecation(
173173
Deprecation.legacyJsApi,
174174
'The legacy JS API is deprecated and will be removed in '
175-
'Dart Sass 2.0.0.');
175+
'Dart Sass 2.0.0.\n\n'
176+
'More info: https://sass-lang.com/d/legacy-js-api');
176177
}
177178
var evaluateResult = evaluate(stylesheet,
178179
importCache: importCache,

‎pkg/sass-parser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-parser",
3-
"version": "0.2.1-dev",
3+
"version": "0.2.1",
44
"description": "A PostCSS-compatible wrapper of the official Sass parser",
55
"repository": "sass/sass",
66
"author": "Google Inc.",

‎pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.79.2-dev
2+
version: 1.79.2
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)
Please sign in to comment.