Skip to content

Commit f86ef1f

Browse files
authored
Merge pull request #312 from DavidVujic/release_5_4_0
Release v5.4.0
2 parents c2d6437 + 1266746 commit f86ef1f

10 files changed

+13
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### v 5.4.0 (2022-04-18)
2+
* feat: starting the zookeeper client in a Node.js Worker thread Pull request [310](https://github.com/yfinkelstein/node-zookeeper/pull/310) by @deepcoldy
3+
14
#### v 5.3.2 (2022-02-16)
25
* fix: handle normalize path with slashes in all platforms. Pull request [305](https://github.com/yfinkelstein/node-zookeeper/pull/305) by @hufeng
36

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ And you're done!
1919
(note the name `zookeeper` in lowercase)
2020

2121
#### News
22+
:rocket: __New since version 5.4.0__ It is possible to start the zookeeper client in a Node.js Worker thread.
23+
2224
:rocket: __New since version 5.1.0__ Support for `SSL`, that was introduced in Apache ZooKeeper C Client v3.6.0.
2325

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

examples/in_node_worker_thread.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { Worker } = require('worker_threads');
2+
3+
// eslint-disable-next-line no-new
4+
new Worker('./examples/index.js', { workerData: null });

examples/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ async function init() {
4444
});
4545
}
4646

47-
init().catch(logger.error);
47+
if (require.main === module) {
48+
init().catch(logger.error);
49+
}

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.7.x)",
4-
"version": "5.3.2",
4+
"version": "5.4.0",
55
"author": "Yuri Finkelstein <[email protected]>",
66
"license": "MIT",
77
"contributors": [
16.2 KB
Binary file not shown.

prebuilds/darwin-x64/node.abi83.node

56 Bytes
Binary file not shown.

prebuilds/darwin-x64/node.abi93.node

56 Bytes
Binary file not shown.

prebuilds/win32-x64/node.abi83.node

0 Bytes
Binary file not shown.

prebuilds/win32-x64/node.abi93.node

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)