-
Notifications
You must be signed in to change notification settings - Fork 309
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 #303
Comments
@vikaspotluri123 that would be amazing, yes. The only hard limitation is that it has to work in the oldest LTS release, which I believe is 6.x now. Do you plan to use any automated tools to do this? I remember testing https://lebab.io/ once in another project and it kinda worked ok (for the most part). I think we can start by picking a few files and converting them and then we'll go from there. What do you think? |
Cool. I'd try with lebab first, since it's still under development and esnext has no activity in the past 7 months. |
Sounds good! Do you prefer liberally let or constantly const? // Both liberally let and constantly const
const doTheMath = require('./do-the-math');
// liberally let
const liberal = (a, b) => {
let retVal = doTheMath(a + b);
return retVal;
};
// constantly const
const constant = (a, b) => {
const retVal = doTheMath(a + b);
return retVal;
} |
const when possible |
I've migrated |
Pretty cool. Let's see how the |
I'm running tests locally, and ~10 are failing with nock-related errors. My hope is it's just an OS-compat issue since it's been failing since before I made changes. For the RetryRestClient, converting it to an ES6 class causes some tests to fail since it's not invoked with the Also, since node v6+ supports Object.assign, I'm removing the |
🤔 Weird. What errors are you seeing?
Do you have an example?
ok |
Once I migrate this file, I'm going to create a PR to test w/ CI |
On a separate note, I'm also fixing typos as I see them, partially because my editor doesn't like them 😅 |
For now, I've locally migrated the auth folder and the src/*.js folder, I'll migrate the management folder tomorrow (hopefully). 30 failing tests atm w/ a good portion failing because of the |
Seems to be so, most of the failing tests on CircleCI relate to expected failures (i.e. FWIW My env is: Windows 10 1803 Build 17134.285 |
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. |
Howdy!
As part of Auth0 ❤️ Hacktoberfest I was thinking of migrating this library to ES6 - are there any objections and / or limitations regarding this?
The only possible downside I see with this is this would drop support for Node v4, although it's been EoL since April 🤔
The text was updated successfully, but these errors were encountered: