walinejs / waline

💬 A Simple, Safe Comment System
https://waline.js.org/en/
GNU General Public License v2.0
2.3k stars 404 forks source link

fix(client): update sass functions to use new module syntax #2784

Closed mapxn closed 3 weeks ago

mapxn commented 3 weeks ago

These changes address deprecation warnings from Dart Sass 3.0.0

mapxn commented 3 weeks ago

Fix the following warnings:

Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use string.index instead.

More info and automated migrator: https://sass-lang.com/d/import

   â•·
24 │   @if not str-index($svg, xmlns) {
   │           ^^^^^^^^^^^^^^^^^^^^^^
   ╵
    src/styles/helpers/_svg.scss 24:11  svg-url()
    src/styles/helpers/_svg.scss 48:21  background-svg()
    src/styles/meta.scss 31:5           root stylesheet

Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use string.slice instead.

More info and automated migrator: https://sass-lang.com/d/import

  â•·
8 │     str-slice($string, 1, $index - 1) + $replace +
  │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
    src/styles/helpers/_svg.scss 8:5    string-replace()
    src/styles/helpers/_svg.scss 25:11  svg-url()
    src/styles/helpers/_svg.scss 48:21  background-svg()
    src/styles/meta.scss 31:5           root stylesheet

Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use string.length instead.

More info and automated migrator: https://sass-lang.com/d/import

   â•·
10 │         str-slice($string, $index + str-length($search)),
   │                                     ^^^^^^^^^^^^^^^^^^^
   ╵
    src/styles/helpers/_svg.scss 10:37  string-replace()
    src/styles/helpers/_svg.scss 25:11  svg-url()
    src/styles/helpers/_svg.scss 48:21  background-svg()
    src/styles/meta.scss 31:5           root stylesheet

Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use string.slice instead.

More info and automated migrator: https://sass-lang.com/d/import

   â•·
10 │         str-slice($string, $index + str-length($search)),
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    src/styles/helpers/_svg.scss 10:9   string-replace()
    src/styles/helpers/_svg.scss 25:11  svg-url()
    src/styles/helpers/_svg.scss 48:21  background-svg()
    src/styles/meta.scss 31:5           root stylesheet