Skip to content
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

better deprecation UX #487

Closed
jonathanong opened this issue Feb 5, 2016 · 1 comment
Closed

better deprecation UX #487

jonathanong opened this issue Feb 5, 2016 · 1 comment

Comments

@jonathanong
Copy link

i have no idea where the new deprecation errors are coming from and they're annoying.

  • don't warn every single time
  • show a stack trace of where the deprecation occured

here's what express, etc. uses: https://github.com/dougwilson/nodejs-depd

@chriso
Copy link
Collaborator

chriso commented Feb 5, 2016

Sweet, TIL. Version 4.7.1 uses node-depd.

In the mean time, you could add the following before any other code to turn the notices into errors:

require('validator').coerce = false;

@chriso chriso closed this as completed Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants