-
Notifications
You must be signed in to change notification settings - Fork 78
Resolve Deprecation Warnings by Migrating Dart Sass
#239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Resolve Deprecation Warnings by Migrating Dart Sass
#239
Conversation
tweak around `importer` as well in response to the migration
|
I would definitively prefer option 2 and remove Node Sass support |
|
Thank you for your prompt confirmation, @doberkofler. Regarding ceasing
In the meantime, I suggest we wait for further opinions from others. |
|
I am also for dropping the support for Node Sass fully. It's already a deprecated package for longer time. Regarding breaking changes I see no problem with releasing new major version which will clearly inform about it. |
|
Thanks for your perspective, @krzysztof-cislo. Given multiple responses advocating for dropping |
|
(cc: @doberkofler @krzysztof-cislo) As previously mentioned, I've created a PR #240 for dropping |
, unless using `node-sass` as `implementation`
#240 → #239
resolves: #232
What I did
Deprecation The legacy JS API is deprecated…Dart Sassimporter(not finalized)importerDiscussion points
Now this PR is still draft due to the following points:
Design of the
importerInterfaceThe latest
Dart SassandNode Sassinterfaces significantly differ.Therefore, this PR currently stops treating both importer interfaces as one.
The prospective interface employs a union type.
Details of the interface design
Before
typed-scss-modules/lib/sass/importer.ts
Lines 1 to 7 in e80c68e
Now
I'd like to confirm whether there is any better solution.
Support for Deprecated
Node SassNode Sassis now deprecated as announced below.https://sass-lang.com/blog/node-sass-is-end-of-life/
I am open to discussions on whether and when to discontinue support.
Available options
I see two possibilities (suggestions are welcomed):
1. Continue supporting
Node Sassfor a while (and remove it after that), using the union interface2. Remove
Node Sasssupport, and using a non-union interfaceI invite discussions on the best approach.
※ As either option involves breaking backward compatibility, we will update the major version regardless.