fix: remove dependency on Q
Brief Summary of Changes
This PR removes a deprecated and outdated Promise library - Q. And replaces it with Promise API and built-ins.
deprecation notice from q:
You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
The source now uses the following methods:
new Promise()- supported since Node 0.12 and in all browsers (except IE11)Promise.resolve- same as abovePromise.reject- same as above
What Does This PR Address?
- [ ] GitHub issue (Add reference - #XX)
- [x] Refactoring
- [ ] New feature
- [ ] Bug fix
- [ ] Adds more tests
Are Tests Included?
- [ ] Yes
- [x] No, the tests logic didn't change
@talentlessguy PR looks great, thank you for your contribution. Can you please pull latest master? There are some fixes to the CI that need to be included before we can merge.
@cloudinary-pkoniu sure thing