FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix deprecation warning and failing test under Node v6 (fixes #70) by mcous · Pull Request #71 · ericelliott/credential · GitHub

Fix deprecation warning and failing test under Node v6 (fixes #70) - #71

Closed
mcous wants to merge 1 commit into
ericelliott:masterfrom
mcous:fix-for-node-v6
Closed

Fix deprecation warning and failing test under Node v6 (fixes #70)#71
mcous wants to merge 1 commit into
ericelliott:masterfrom
mcous:fix-for-node-v6

Conversation

mcous commented Apr 28, 2016

Copy link
Copy Markdown

Fixes two problems with credential under Node v6:

So:

  • Node v6 is now tested by Travis
  • "SHA1" (the old default) is now present as an explicit parameter
  • A CLI test that was checking stderr with equality (and failing) now uses a regex

Fixes two problems with credential under Node v6:

* crypto.pbkdf2 without an explicit digest algorithm has been deprecated
* The formatting of logging Error objects was changed by nodejs/node#4582

So:

* Node v6 is now tested by Travis
* "SHA1" (the old default) is now present as an explicit parameter
* A CLI test that was checking stderr with equality (and failing) now uses a regex

mcous commented Apr 28, 2016

Copy link
Copy Markdown
Author

Travis gave me failures with the timing tests under Node v4 and v5, but I'm unable to reproduce them locally.

It also gave me a failure with v0.10, which (as I have just now discovered) does not have a digest parameter at all. Seeing as v0.10 is going to be supported by Node for another 6 months, I'm not sure about the best course of action here.

Copy link
Copy Markdown
Owner

Unless you can think of something better, I think this may simply have to be a breaking change.

mcous commented Apr 29, 2016

Copy link
Copy Markdown
Author

I could check the Node version and apply the arguments accordingly, which would be ugly but work.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL