Skip to content

Commit

Permalink
Merge pull request #247 from DavidVujic/release-4.6.0
Browse files Browse the repository at this point in the history
feat: bump package version, update documentation
  • Loading branch information
DavidVujic committed Oct 31, 2020
2 parents 1515347 + df909f0 commit 473b032
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#### v 4.6.0 (2020-10-31)
* feat: The default API from the library is the async/await enabled client (containing both callbacks and promisified methods)
* fix: add TypeScript declarations.
Pull request [246](https://github.com/yfinkelstein/node-zookeeper/pull/246) by @davidvujic

#### v 4.5.3 (2020-09-20)
* fix: Update depencencies causing warnings on install. Pull request [242](https://github.com/yfinkelstein/node-zookeeper/pull/242) by @davidvujic

Expand Down
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@ npm install zookeeper

## Examples

Use the `async/await` enabled client:

```javascript
const ZooKeeper = require('zookeeper').Promise;
const ZooKeeper = require('zookeeper');
```

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

There is also a callbacks based client:
### Documentation
The source code is documented with `JSDoc` code comments and `TypeScript` type declarations.

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

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

### Example: create a client

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

## API Reference

### Methods: async/await enabled client
### Methods: async/await enabled client methods

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

### Methods: callbacks based client
### Methods: callbacks based client methods

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

## Windows support

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.
Install `CMake` to build a ZooKeeper client on Windows. Install Python.

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

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zookeeper",
"description": "apache zookeeper client (zookeeper async API v3.4.x - v3.5.x)",
"version": "4.5.3",
"description": "apache zookeeper client (zookeeper async API v3.4.x - v3.6.x)",
"version": "4.6.0",
"author": "Yuri Finkelstein <yurif2003@yahoo.com>",
"license": "MIT",
"contributors": [
Expand Down

0 comments on commit 473b032

Please sign in to comment.