-
Notifications
You must be signed in to change notification settings - Fork 311
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
Migrate to ES6 #304
Migrate to ES6 #304
Conversation
Node versions that support the ES6 migrations support native Object.assign
Migrating to ES6 breaks support for earlier versions
Potential issue: ManagementClient.deleteUserMultifcator is misspelled!
native promisify functionality is only available in v8+
@@ -1,156 +1,125 @@ | |||
var expect = require('chai').expect; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this file is so different, maybe precommit hook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Not sure why it wasn't formatted before..
https://github.com/vikaspotluri123/node-auth0/blob/es6/src/auth/index.js#L448 - I didn't migrate this to let / const since it's an unused variable - didn't want to forget to mention this - Should I remove it, or is the function call incorrect? There's another version of this on line 405 |
If it's unused, feel free to remove it. Probably some copy/pasting mistake |
Based on other functions, it feels like the function call should use |
I didn't want to fix the typo in https://github.com/vikaspotluri123/node-auth0/blob/es6/src/management/index.js#L1137 since it's part of the code rather than docs - thoughts? |
Let's not change behaviors in this PR. If the variable is unused, leave it as is |
Can't remove/fix that typo because it's part of the public API. It's already deprecated and it will be removed in the next major |
Although... This PR will be a breaking change anyway... 🤔 Let me think about this. |
Regenerate lockfile to make bluebird resolve to the same version for this and rest-facade so we can use instanceof(Promise) in tests. Since it was regenerated, subdeps were updated and integrity hashes were added (new in Yarn v1.10.x)
Use es6-promisify in production (which is already required by subdeps) and bluebird in development for testing rest-facade
@luisrudge you're not waiting on me for anything, right? Just wanted to make sure 😄 |
@vikasjayaram I didn't know it was done 😬 I'll try to do some testing this week. I still need to discuss with the team if this should be considered a breaking change or not (I think it is). |
hey @vikasjayaram - I'm sorry this is take more than expected. I'm not sure when this will get merged but I want to make it clear that I already contacted our hacktoberfest admin to make sure you get points for this one 🎉 Thanks so much for this PR. |
No worries, thanks for the update 😄 |
@vikaspotluri123 sorry I missed your username twice 😬 |
Thanks @vikasjayaram for all your effort in this issue. We have big plans for Management SDKs and, sadly, we'll have to drop this PR in favor of what's next. |
Refs #303
Todo