Skip to content

Commit

Permalink
Merge pull request #312 from DavidVujic/release_5_4_0
Browse files Browse the repository at this point in the history
Release v5.4.0
  • Loading branch information
DavidVujic committed Apr 18, 2022
2 parents c2d6437 + 1266746 commit f86ef1f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### v 5.4.0 (2022-04-18)
* feat: starting the zookeeper client in a Node.js Worker thread Pull request [310](https://github.com/yfinkelstein/node-zookeeper/pull/310) by @deepcoldy

#### v 5.3.2 (2022-02-16)
* fix: handle normalize path with slashes in all platforms. Pull request [305](https://github.com/yfinkelstein/node-zookeeper/pull/305) by @hufeng

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 5.4.0__ It is possible to start the zookeeper client in a Node.js Worker thread.

:rocket: __New since version 5.1.0__ Support for `SSL`, that was introduced in Apache ZooKeeper C Client v3.6.0.

:rocket: __New since version 4.9.0__ Support for `Dynamic Reconfiguration`, introduced in Apache ZooKeeper server v3.5.5.
Expand Down
4 changes: 4 additions & 0 deletions examples/in_node_worker_thread.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { Worker } = require('worker_threads');

// eslint-disable-next-line no-new
new Worker('./examples/index.js', { workerData: null });
4 changes: 3 additions & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ async function init() {
});
}

init().catch(logger.error);
if (require.main === module) {
init().catch(logger.error);
}
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.7.x)",
"version": "5.3.2",
"version": "5.4.0",
"author": "Yuri Finkelstein <yurif2003@yahoo.com>",
"license": "MIT",
"contributors": [
Expand Down
Binary file modified prebuilds/darwin-arm64/node.abi93.node
Binary file not shown.
Binary file modified prebuilds/darwin-x64/node.abi83.node
Binary file not shown.
Binary file modified prebuilds/darwin-x64/node.abi93.node
Binary file not shown.
Binary file modified prebuilds/win32-x64/node.abi83.node
Binary file not shown.
Binary file modified prebuilds/win32-x64/node.abi93.node
Binary file not shown.

0 comments on commit f86ef1f

Please sign in to comment.