sindresorhus / grunt-sass

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

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

Open mattyrob opened 1 month ago

mattyrob commented 1 month 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 1 month 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.