You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope to do this soon, but carefully to avoid breaking any users that may be using some of the older Node.js versions. We need to increase the major package version number whenever we drop one or more Node.js versions according to semver etiquette.
I do think you are right that not many app developers would be using Node.js pre-6.0 and version 6 is approaching EOL.
I would like to get PR #24 and ideally PR #12 finished, to be published in a 1.0.1 release before starting the major updates. @n1ru4l I think it would be helpful if you could take a look at PR #12, to help determine whether or not we should merge it before publishing the next release.
Also since nodeunit seems deprecated (https://www.npmjs.com/package/nodeunit#deprecated-project) and from my perspective the current tests are a mess. E.g. adding my test for (#24) was frustrating since there was no nice way to see the actual differences of expected and actual for long strings.
Therefore I would recommend to update to a more mature testing framework. I personally would prefer jest (https://jestjs.io/).
Furthermore tools like prettier and eslint could improve the overall code quality/consistency. I have set those up for multiple projects and could do so for this one too!
We are converting https://github.com/react-native-community/cli to TypeScript and it would be awesome if this package had some kind of TS types: shipped with the package or hosted in DefinitelyTyped repository.
Closing as resolved and stale. Most of the items have been completed since the ticket was created, and there appears to be another ticket covering ES6.
Activity
n1ru4l commentedon Dec 7, 2018
Object.assignis available since4.9.1and most projects that are usingcordova-node-xcoderequire the minimum node version6/8 as a dependency.Also node versions prior to
6are afaik no longer maintained (https://github.com/nodejs/Release).I think we should certainly start modernizing this code!
brody2consult commentedon Dec 7, 2018
I hope to do this soon, but carefully to avoid breaking any users that may be using some of the older Node.js versions. We need to increase the major package version number whenever we drop one or more Node.js versions according to
semveretiquette.I do think you are right that not many app developers would be using Node.js pre-6.0 and version
6is approaching EOL.brody2consult commentedon Dec 9, 2018
I would like to get PR #24 and ideally PR #12 finished, to be published in a
1.0.1release before starting the major updates. @n1ru4l I think it would be helpful if you could take a look at PR #12, to help determine whether or not we should merge it before publishing the next release.n1ru4l commentedon Dec 9, 2018
Also since nodeunit seems deprecated (https://www.npmjs.com/package/nodeunit#deprecated-project) and from my perspective the current tests are a mess. E.g. adding my test for (#24) was frustrating since there was no nice way to see the actual differences of expected and actual for long strings.
Therefore I would recommend to update to a more mature testing framework. I personally would prefer jest (https://jestjs.io/).
Furthermore tools like prettier and eslint could improve the overall code quality/consistency. I have set those up for multiple projects and could do so for this one too!
brody2consult commentedon Dec 9, 2018
Agreed; I would rather discuss this in a separate issue.
I think it would make sense but not be absolutely necessary to do this after we drop deprecated Node.js version.
fbartho commentedon Mar 4, 2019
Could we possibly either convert this to TypeScript or start shipping TypeScript Definitions?
This would be super straightforward with the move to ES6 classes #38, as it would be nearly self-documenting!
Esemesek commentedon Jul 31, 2019
We are converting https://github.com/react-native-community/cli to TypeScript and it would be awesome if this package had some kind of TS types: shipped with the package or hosted in DefinitelyTyped repository.
erisu commentedon Jun 4, 2026
Closing as resolved and stale. Most of the items have been completed since the ticket was created, and there appears to be another ticket covering ES6.