Skip to content

Commit 98e09a6

Browse files
authored
Merge pull request #266 from DavidVujic/code-docs-for-exist-function
fix: wrong type for watch param - should be boolean
2 parents f750d93 + e69066d commit 98e09a6

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### v 4.8.1 (2021-02-18)
2+
* fix: the `watch` param passed in to the exists (the promise based) function is a boolean. Pull request [266](https://github.com/yfinkelstein/node-zookeeper/pull/266) by @davidvujic
3+
14
#### v 4.8.0 (2021-01-31)
25
* feat: add support for TTL and Container nodes. Pull request [255](https://github.com/yfinkelstein/node-zookeeper/pull/255) by @dreusel
36
* fix: Example code: use one client, use only when connected Pull request [264](https://github.com/yfinkelstein/node-zookeeper/pull/264) by @davidvujic

lib/typedeclarations.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ declare module "zookeeper" {
462462
create(path: string, data: (string | Buffer), flags: number, ttl?: number | undefined): Promise<string>;
463463
/**
464464
* @param {string} path
465-
* @param {function} watch
465+
* @param {boolean} watch
466466
* @fulfill {stat}
467467
* @returns {Promise.<stat>}
468468
*/

lib/zk_promise.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ZooKeeperPromise extends ZooKeeper {
3838

3939
/**
4040
* @param {string} path
41-
* @param {function} watch
41+
* @param {boolean} watch
4242
* @fulfill {stat}
4343
* @returns {Promise.<stat>}
4444
*/

package.json

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

0 commit comments

Comments
 (0)