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
ES6 refactor #185
ES6 refactor #185
Conversation
Thank you for doing this long awaited task! It's a massive PR and I will need some time to review this. |
You can follow ESLint refactoring progress in a separate PR: jbienkowski311#1 |
Awesome work @jbienkowski311! |
I've merged What I would like to do before announcing that this PR ready to merge is explicit definition of the input parameters for the API methods. Before, the library was using PS: You can consider #184 as done 😉 |
Okay, I think that's enough for this PR. @DavidVujic please check if I did not mess up with the API (I used documentation from README.md and tests). I've added |
Thank you @jbienkowski311! I'll have a look. I would like to finish issue #153 and build a new release from it before merging this branch. Are you ok with that? |
Sure thing! |
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.
Great work! I have a question about the legacy Promise library that is used in the Master branch: this PR with native Promises will be a breaking change, won't it?
If possible, to avoid breaking changes - could we add wrappers in the ZK Promise class for the old Promise lib functions? They could be marked with JsDoc "deprecated" comments. What do you think about it?
Now this could be a potential breaking change... However it is an easy fix to implement. Just give me few hours 😉 |
@DavidVujic I brought back the |
Awesome! I'll try to finish the review in the next couple of days. Currently at a location with a poor connection 🐮 🐑 🐔 🇸🇪 |
This pull request is a first step to move this project closer to the present times.
Description
ZooKeeper
and its promisified version to ES6 standard.lib/promise
, instead use nativePromise
class.Motivation and Context
This project remembers the old days of Node 0.x. A lot has changed since then and we should move on. This PR is a first step towards better code quality.
As there are a lot of changes I submit this PR as is for now. I will however start working on enforcing the
eslint
rules, so we should end up with a project that is nice and tidy.TODO
eslint
passHow Has This Been Tested?
It has been tested with both unit and integration tests.
Types of changes
Checklist: