Skip to content

Commit 473b032

Browse files
authored
Merge pull request #247 from DavidVujic/release-4.6.0
feat: bump package version, update documentation
2 parents 1515347 + df909f0 commit 473b032

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#### v 4.6.0 (2020-10-31)
2+
* feat: The default API from the library is the async/await enabled client (containing both callbacks and promisified methods)
3+
* fix: add TypeScript declarations.
4+
Pull request [246](https://github.com/yfinkelstein/node-zookeeper/pull/246) by @davidvujic
5+
16
#### v 4.5.3 (2020-09-20)
27
* fix: Update depencencies causing warnings on install. Pull request [242](https://github.com/yfinkelstein/node-zookeeper/pull/242) by @davidvujic
38

README.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,19 @@ npm install zookeeper
1818

1919
## Examples
2020

21-
Use the `async/await` enabled client:
22-
2321
```javascript
24-
const ZooKeeper = require('zookeeper').Promise;
22+
const ZooKeeper = require('zookeeper');
2523
```
2624

27-
Note: checkout the API for the [async/await enabled client here](#methods-asyncawait-enabled-client)
25+
The ZooKeeper client support both callbacks and `async/await`.
2826

29-
There is also a callbacks based client:
27+
### Documentation
28+
The source code is documented with `JSDoc` code comments and `TypeScript` type declarations.
3029

31-
```javascript
32-
const ZooKeeper = require('zookeeper');
33-
```
30+
Also, have a look at the API documentation here:
31+
* [async/await enabled methods](#methods-asyncawait-enabled-client-methods)
32+
* [callback enabled methods](#methods-callbacks-based-client-methods)
3433

35-
Note: checkout the API for the [callback based client here](#methods-callbacks-based-client)
3634

3735
### Example: create a client
3836

@@ -83,7 +81,7 @@ Check out the code in the [examples](./examples) folder: master,workers, tasks a
8381

8482
## API Reference
8583

86-
### Methods: async/await enabled client
84+
### Methods: async/await enabled client methods
8785

8886
* `init(options)`
8987
* `connect(options, connect_cb)`
@@ -115,7 +113,7 @@ Check out the code in the [examples](./examples) folder: master,workers, tasks a
115113
* children is an array of strings
116114
* stat is an object
117115

118-
### Methods: callbacks based client
116+
### Methods: callbacks based client methods
119117

120118
* `init(options)`
121119
* `connect(options, connect_cb)`
@@ -216,7 +214,7 @@ For more details please refer to ZooKeeper docs.
216214

217215
## Windows support
218216

219-
Install `CMake` to build a ZooKeeper client on Windows. `Python 2.7.x` is currently required by the tool `node-gyp` to build the ZooKeeper client as a native Node.js Addon.
217+
Install `CMake` to build a ZooKeeper client on Windows. Install Python.
220218

221219
Also, run `npm install` in a Powershell window. For further instructions visit [node-gyp documentation](https://github.com/nodejs/node-gyp/#on-windows).
222220

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zookeeper",
3-
"description": "apache zookeeper client (zookeeper async API v3.4.x - v3.5.x)",
4-
"version": "4.5.3",
3+
"description": "apache zookeeper client (zookeeper async API v3.4.x - v3.6.x)",
4+
"version": "4.6.0",
55
"author": "Yuri Finkelstein <[email protected]>",
66
"license": "MIT",
77
"contributors": [

0 commit comments

Comments
 (0)