mathsass icon indicating copy to clipboard operation
mathsass copied to clipboard

Deprecation warnings as of sass v 1.33.0

Open wesgro opened this issue 4 years ago • 1 comments

Hello!

Was wondering if there's any want to update this library to work for the new canonical version of sass? Currently I am getting a bunch of deprecation warnings around the use of the / (division operator) which sass >= 1.33.0 would like to be accessed through the @use "sass:math"; syntax.

Willing to open a PR if someone could push that up to NPM (will be a breaking change as it relies on language features only available in the dart-sass compiler).

wesgro avatar Jun 21 '21 19:06 wesgro

I think this whole library should be marked as deprecated now, in favor of @use "sass:math"; which allows you to do math.pow(...), math.log(...), etc.

If not, this library needs to be updated to at least call the math.whatever functions wherever they are available.

See: https://sass-lang.com/documentation/modules/math

kiprobinson avatar Aug 08 '21 02:08 kiprobinson