Skip to content

Commit

Permalink
Include deprecation IDs in deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jan 4, 2025
1 parent c2a780e commit 3a411a9
Show file tree
Hide file tree
Showing 344 changed files with 1,442 additions and 1,432 deletions.
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust/global.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> legacy/warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -29,7 +29,7 @@ a {
}

<===> non_legacy/warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.change instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand Down
14 changes: 7 additions & 7 deletions spec/core_functions/color/adjust/units.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ a {
}

<===> hue/unknown/warning
DEPRECATION WARNING: $hue: Passing a unit other than deg (60in) is deprecated.
DEPRECATION WARNING [function-units]: $hue: Passing a unit other than deg (60in) is deprecated.

To preserve current behavior: calc($hue / 1in)

Expand Down Expand Up @@ -76,7 +76,7 @@ a {
}

<===> saturation/unitless/warning
DEPRECATION WARNING: $saturation: Passing a number without unit % (-10) is deprecated.
DEPRECATION WARNING [function-units]: $saturation: Passing a number without unit % (-10) is deprecated.

To preserve current behavior: $saturation * 1%

Expand All @@ -100,7 +100,7 @@ a {
}

<===> saturation/unknown/warning
DEPRECATION WARNING: $saturation: Passing a number without unit % (-10in) is deprecated.
DEPRECATION WARNING [function-units]: $saturation: Passing a number without unit % (-10in) is deprecated.

To preserve current behavior: calc($saturation / 1in * 1%)

Expand Down Expand Up @@ -135,7 +135,7 @@ a {
}

<===> lightness/unitless/warning
DEPRECATION WARNING: $lightness: Passing a number without unit % (10) is deprecated.
DEPRECATION WARNING [function-units]: $lightness: Passing a number without unit % (10) is deprecated.

To preserve current behavior: $lightness * 1%

Expand All @@ -159,7 +159,7 @@ a {
}

<===> lightness/unknown/warning
DEPRECATION WARNING: $lightness: Passing a number without unit % (10in) is deprecated.
DEPRECATION WARNING [function-units]: $lightness: Passing a number without unit % (10in) is deprecated.

To preserve current behavior: calc($lightness / 1in * 1%)

Expand Down Expand Up @@ -194,7 +194,7 @@ a {
}

<===> alpha/percent/warning
DEPRECATION WARNING: $alpha: Passing a number with unit % is deprecated.
DEPRECATION WARNING [function-units]: $alpha: Passing a number with unit % is deprecated.

To preserve current behavior: calc($alpha / 1%)

Expand All @@ -218,7 +218,7 @@ a {
}

<===> alpha/unknown/warning
DEPRECATION WARNING: $alpha: Passing a number with unit px is deprecated.
DEPRECATION WARNING [function-units]: $alpha: Passing a number with unit px is deprecated.

To preserve current behavior: calc($alpha / 1px)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/above_max.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 540deg)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/alpha.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 359deg)

Expand Down
6 changes: 3 additions & 3 deletions spec/core_functions/color/adjust_hue/error.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Error: Only 2 arguments allowed, but 3 were passed.
a {b: adjust-hue(1, 2)}

<===> type/color/error
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -60,7 +60,7 @@ Error: $color: 1 is not a color.
a {b: adjust-hue(red, blue)}

<===> type/hue/error
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -84,7 +84,7 @@ Error: $degrees: blue is not a number.
a {b: adjust-hue(lch(0% 0 0deg), 10deg)}

<===> non_legacy/error
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/fraction.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 0.5deg)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/max.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 359deg)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/middle.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 123deg)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/min.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 0deg)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/named.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 123deg)

Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_hue/negative.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: -180deg)

Expand Down
18 changes: 9 additions & 9 deletions spec/core_functions/color/adjust_hue/units.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a {
}

<===> deg/warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -18,7 +18,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 60deg)

Expand All @@ -41,7 +41,7 @@ a {
}

<===> unitless/warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -52,7 +52,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 60deg)

Expand All @@ -75,7 +75,7 @@ a {
}

<===> unknown/warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -86,7 +86,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: $degrees: Passing a unit other than deg (60in) is deprecated.
DEPRECATION WARNING [function-units]: $degrees: Passing a unit other than deg (60in) is deprecated.

To preserve current behavior: calc($degrees / 1in)

Expand All @@ -98,7 +98,7 @@ See https://sass-lang.com/d/function-units
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 60deg)

Expand All @@ -121,7 +121,7 @@ a {
}

<===> angle/warning
DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import
Expand All @@ -132,7 +132,7 @@ More info and automated migrator: https://sass-lang.com/d/import
'
input.scss 1:7 root stylesheet

DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion:
DEPRECATION WARNING [color-functions]: adjust-hue() is deprecated. Suggestion:

color.adjust($color, $hue: 3437.7467707849deg)

Expand Down
8 changes: 4 additions & 4 deletions spec/core_functions/color/alpha.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ a {
}

<===> filter/space_before_equals/warning
DEPRECATION WARNING: Using color.alpha() for a Microsoft filter is deprecated.
DEPRECATION WARNING [color-module-compat]: Using color.alpha() for a Microsoft filter is deprecated.

Recommendation: alpha(c = d)

Expand Down Expand Up @@ -158,7 +158,7 @@ a {
}

<===> css_overloads/alpha/one_arg/warning
DEPRECATION WARNING: Using color.alpha() for a Microsoft filter is deprecated.
DEPRECATION WARNING [color-module-compat]: Using color.alpha() for a Microsoft filter is deprecated.

Recommendation: alpha(c=d)

Expand All @@ -180,7 +180,7 @@ a {
}

<===> css_overloads/alpha/multi_arg/warning
DEPRECATION WARNING: Using color.alpha() for a Microsoft filter is deprecated.
DEPRECATION WARNING [color-module-compat]: Using color.alpha() for a Microsoft filter is deprecated.

Recommendation: alpha(c=d, e=f, g=h)

Expand All @@ -202,7 +202,7 @@ a {
}

<===> css_overloads/opacity/warning
DEPRECATION WARNING: Passing a number (1 to color.opacity() is deprecated.
DEPRECATION WARNING [color-module-compat]: Passing a number (1 to color.opacity() is deprecated.

Recommendation: opacity(1)

Expand Down
Loading

0 comments on commit 3a411a9

Please sign in to comment.