Skip to content

feature request: : Add a flag to turn off DEPRECATION WARNS #2822

@luiscla27

Description

@luiscla27

Since version 4.9 of node-sass the current warning is being shown in a lot of projects. (you may see an open issue asking for a way to silence the warning here)

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("variable-exists")) instead.

The warning is ok and i would love to fix all my deprecated functions call but i can't, the main reason is that i don't even know which library is the one with the issue... (is not my code) 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 accept the responsibility :)

And so... this feature request is to add somewhere somehow a flag that can be turned on/off the DEPRECATION WARNINGS

I've already mistakenly tried to add an environment variable at the node-sass project, but @nschonni told me that the PR should be done here at libsass, however @xzyfer told me that the acceptable solution to silencing deprecation warnings is to fix the deprecated code, even thought that the code belongs to someone else, a library.

  • You may se the code to add the flag is already available at PR-2587 from node-sass project, is not much.
  • Also the open issue regarding this matter is 2334 (also from node-sass project).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions