sass / dart-sass

The reference implementation of Sass, written in Dart.
https://sass-lang.com/dart-sass
MIT License
3.9k stars 352 forks source link

Backport deprecation API to legacy JS API #2293

Closed jathak closed 1 week ago

jathak commented 1 month ago

See https://github.com/sass/sass/pull/3907. See https://github.com/sass/sass-spec/pull/2006.

This also fixes a bug where the deprecation flags would not always be respected when using embedded Sass, as ImportCaches could be created with an unwrapped logger, meaning any parse-time deprecation warnings (e.g. @import) couldn't be controlled. ImportCache now wraps the logger it gets in a DeprecationProcessingLogger to fix this.

[skip sass-embedded]