sindresorhus / grunt-sass

Compile Sass to CSS
MIT License
1.01k stars 209 forks source link

Add option to use modern API in dart-sass #312

Open mattyrob opened 2 weeks ago

mattyrob commented 2 weeks ago

This PR aims to address #311.

It updates dependencies and moves to using sass (formerly dart-sass from node-sass since the latter is deprecated.

Tests are updated for layout and amended implementation of slash as division as required for dart-sass since 1.33

Lastly, the possibility to pass an option of api set as modern is implemented. This will utilise the more up-to-date API functions pending the removal of the legacy API in dart-sass 2.0.0.

mattyrob commented 2 weeks ago

I have not made changes to the workflow but have a further commit I can push that updates the GitHub action versions, drops testing on Node.js 8 and 10, and adds testing on Node.js 16,18 and 20.