Skip to content

Commit

Permalink
Merge pull request #275 from DavidVujic/release-4_9_0
Browse files Browse the repository at this point in the history
Release  v4.9.0
  • Loading branch information
DavidVujic authored May 13, 2021
2 parents 35a3e53 + e301aa5 commit 81b791c
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### v 4.9.0 (2021-05-13)
* feat: Dynamic Reconfiguration. Pull request [273](https://github.com/yfinkelstein/node-zookeeper/pull/273) by @bhack-onshape

#### v 4.8.2 (2021-04-20)
* fix: set initial value to noResponseCounter on init and reset on close. Pull request [271](https://github.com/yfinkelstein/node-zookeeper/pull/271) by @davidvujic

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ And you're done!
(note the name `zookeeper` in lowercase)

#### News
:rocket: __New since version 4.9.0__ Support for `Dynamic Reconfiguration`, introduced in Apache ZooKeeper server v3.5.5.

:rocket: __New since version 4.8.0__ Support for the new node types introduced in Apache ZooKeeper server v3.5.5: `Container` and `TTL` :rocket:

:tada: __New since version 4.7.0__ :tada: The install process is faster than ever. If you are a Mac OS X or Windows user, there is no longer a need to build an AddOn during the install process.
Expand Down
3 changes: 3 additions & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ module.exports.ZOOKEEPER_WRITE = NativeZk.ZOOKEEPER_WRITE;
/** @type {number} 2 */
module.exports.ZOOKEEPER_READ = NativeZk.ZOOKEEPER_READ;

/** @type {string} */
module.exports.ZOO_CONFIG_NODE = NativeZk.ZOO_CONFIG_NODE;

/** @deprecated use strings directly */
module.exports.on_closed = 'close';
/** @deprecated use strings directly */
Expand Down
50 changes: 49 additions & 1 deletion lib/typedeclarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ declare module "zookeeperWithCallbacks" {
static get ZOOKEEPER_WRITE(): number;
/** @deprecated @returns {number} 2 */
static get ZOOKEEPER_READ(): number;
/** @deprecated @returns {string} "/zookeeper/config" */
static get ZOO_CONFIG_NODE(): string;
/** @deprecated use strings directly */
static get on_closed(): string;
/** @deprecated use strings directly */
Expand Down Expand Up @@ -331,6 +333,32 @@ declare module "zookeeperWithCallbacks" {
* @returns {*}
*/
a_sync(path: string, cb: Function): any;
/**
* @param {boolean} watch
* @param {dataCb} dataCb
* @returns {*}
*/
a_getconfig(watch: boolean, dataCb: dataCb): any;
/**
* @param {watchCb} watchCb
* @param {dataCb} dataCb
* @returns {*}
*/
aw_getconfig(watchCb: watchCb, dataCb: dataCb): any;
/**
* @param {string|null} joining
* @param {string|null} leaving
* @param {string|null} members
* @param {number} config_version
* @param {dataCb} dataCb
* @returns {*}
*/
a_reconfig(joining: string | null, leaving: string | null, members: string | null, config_version: number, dataCb: dataCb): any;
/**
* @param {string} servers
* @returns {*}
*/
set_servers(servers: string): any;
/** @param {number} value */
set state(arg: number);
get state(): number;
Expand Down Expand Up @@ -466,7 +494,7 @@ declare module "zookeeper" {
* @fulfill {stat}
* @returns {Promise.<stat>}
*/
exists(path: string, watch: Function): Promise<stat>;
exists(path: string, watch: boolean): Promise<stat>;
/**
* @param {string} path
* @param {function} watchCb
Expand Down Expand Up @@ -548,6 +576,26 @@ declare module "zookeeper" {
* @returns {Promise}
*/
sync(path: string): Promise<any>;
/**
* @param {boolean} watch
* @fulfill {string|Buffer}
* @returns {Promise.<string|Buffer>}
*/
getconfig(watch: boolean): Promise<string | Buffer>;
/**
* @param {function} watchCb
* @fulfill {string|Buffer}
* @returns {Promise.<string|Buffer>}
*/
w_getconfig(watchCb: Function): Promise<string | Buffer>;
/**
* @param {string|null} joining
* @param {string|null} leaving
* @param {string|null} members
* @param {number} config_version
* @returns {*}
*/
reconfig(joining: string | null, leaving: string | null, members: string | null, config_version: number): any;
/**
* @private
* @param {function} fn
Expand Down
2 changes: 1 addition & 1 deletion 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.6.x)",
"version": "4.8.2",
"version": "4.9.0",
"author": "Yuri Finkelstein <[email protected]>",
"license": "MIT",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion prebuilds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Create prebuilds for Windows 10:

```bash
npx prebuildify --arch x64 --platform win32 --target 12.20.1
Npx prebuildify --arch x64 --platform win32 --target 14.15.4
npx prebuildify --arch x64 --platform win32 --target 14.15.4
```
Binary file modified prebuilds/darwin-x64/node.abi72.node
Binary file not shown.
Binary file modified prebuilds/darwin-x64/node.abi83.node
Binary file not shown.
Binary file modified prebuilds/win32-x64/node.abi72.node
Binary file not shown.
Binary file modified prebuilds/win32-x64/node.abi83.node
Binary file not shown.

0 comments on commit 81b791c

Please sign in to comment.