question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about deprecation warnings

See original GitHub issue

Is my understanding correct that previous to ~v1.32 Sass wasn’t logging deprecation warnings to stderr? I’m finding that the JS API is not programmatic enough for my needs because from what I can tell, there’s not programmatic way to silence deprecation warnings using the JS API. I’m aware I can use --quiet as a flag for the CLI, but I need programmatic control over stdout / stderr, which is why I’m using the JS API in the first place.

Assuming my understanding is correct, that forced deprecation warnings are recent and a side-effect of using the JS API, would you recommend I revert my version to ~v1.32 or is there some reasonable way I can suppress the deprecation warnings without resorting to creating child processes and invoking the CLI API instead.

Thank you.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jathakcommented, Dec 19, 2022

No, but for the @-moz-document deprecation, you can avoid the warning by just interpolating the name.

0reactions
black7375commented, Dec 19, 2022

Thanks, there is no warning in the next code:

@#{-moz-document} url-prefix("about:downloads") {
}

It seems to be suitable as a temporary solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newest 'deprecation-warning' Questions - Stack Overflow
A deprecation warning indicates that a method is obsolete. Using a newer method (which has been provided in the meanwhile) is preferred. Learn...
Read more >
How to stop PHP errors (notices, warnings, deprecation, etc ...
How to stop PHP errors (notices, warnings, deprecation, etc) from showing on front end? Ask Question. Asked 5 months ago. Modified 5 months...
Read more >
You have questions on Policy deprecation warnings
When installing policy, a policy deprecation warning will be displayed if CPL syntax is used that has been replaced in the OS version...
Read more >
[erlang-questions] Deprecation warnings: OTP20 and OTP21 ...
Hi! This is a shout of pain we got while preparing our project for upcoming OTP release. The problem: * We compile our...
Read more >
[Question] Deprecation warnings · Issue #154 - GitHub
I'm currently using v2.2.1. About a week ago, I spent about 2-3 days trying to find out why the authentication workflow seemed to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found