Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Conversation

@luiscla27
Copy link

@luiscla27 luiscla27 commented Jan 30, 2019

Added env variable called NODE_SASS_NO_DEPRECATION, so everyone can be able to disable deprecation warnings.

Warnings will stop being shown by setting the variable NODE_SASS_NO_DEPRECATION to 0

This is related to issue #2334, you may modify variable name and configuration value as you wish, the idea of this PR is just to give everyone some hope of a possible solution.

I think some people are willing to take the risk to ignore node_sass warnings, file 1.
I think some people are willing to take the risk to ignore node_sass warnings, file 2.
@luiscla27
Copy link
Author

luiscla27 commented Jan 30, 2019

I guess checks fail because the NEW variable needs to be added to the test environment.

@nschonni
Copy link
Contributor

Sorry, we can't make changes to the files in the libsass folder as that is just pulled in from upstream

@nschonni nschonni closed this Jan 30, 2019
@luiscla27
Copy link
Author

luiscla27 commented Jan 30, 2019

So there's a way to achieve the same results by modifying something somewhere else?? this PR was intended to be a suggestion, do you know where is the upstream folder @nschonni ?

@nschonni
Copy link
Contributor

The upstream project is https://github.com/sass/libsass
I'm not 💯 but I think the next pull of libsass will have removed the things that the deprecation warnings were talking about

@luiscla27
Copy link
Author

Thank you @nschonni! the deprecation warnings are being shown on sass implementations (not sass itself), i'll try to make this PR there :)

@xzyfer
Copy link
Contributor

xzyfer commented Jan 31, 2019 via email

@luiscla27
Copy link
Author

luiscla27 commented Jan 31, 2019

But @xzyfer ... as stated at issue #2334, how do i modify code that doesn't belong to me??

I don't even know which library is the one with the issue... i understand the need to force everyone to update their deprecated stuff, but that's not feasible. I think every developer is responsible for their own application and taking the risk to be outdated is on their own,

I'll not make de PR, instead i'll just add a feature request to solve this.

@xzyfer
Copy link
Contributor

xzyfer commented Jan 31, 2019 via email

@luiscla27
Copy link
Author

luiscla27 commented Jan 31, 2019

Most fwk's/libraries already expose warnings this same way, i understand the need to force everyone to update their deprecated stuff, as you said... the code will stop working on future releases. Thats same reason that every other lib "warns" developers of the risk.

@xzyfer, the library/fwk responsibility is to provide a solution by upgrading the code... taking the risk of "don't upgrade" is a time bomb, but is a time bomb that usually the developer explicitly silenced,

Please remember that this warnings are not critically important to continue our work as developers... if they were like that, an error would be thrown instead of a warning.

@Tofandel
Copy link

Tofandel commented Sep 27, 2022

But they're warning, so we get them once and then we know we'll need to update the codebase or a dependency when we want to update to the next major release, but in the minor releases there is so much things being deprecated that those warnings from other libs are just polluting the build process if we update minor, so yes a way to disable them would be welcome

Sure it will break in the next major and we won't have warnings to tell us about it, but we'll be expecting that, that's what a major is for. I think builds should by default be without those warnings and that they should only show with a verbose build with a flag

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this pull request Apr 7, 2024
Fix parsing of block comments to ignore css string rules
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants