Comparing version 6.2.1 to 6.2.2
@@ -0,1 +1,6 @@ | ||
#### v 6.2.2 (2024-07-08) | ||
* docs: access Zookeeper constants from ZooKeeper.constants | ||
Pull request [347](https://github.com/yfinkelstein/node-zookeeper/pull/347) by @maharjanraj | ||
#### v 6.2.1 (2024-07-04) | ||
@@ -2,0 +7,0 @@ * fix: ACL type, should be an array of objects. Also, fix typo in permissions key. |
{ | ||
"name": "zookeeper", | ||
"description": "apache zookeeper client (zookeeper async API v3.5.x - v3.8.x)", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"author": "Yuri Finkelstein <yurif2003@yahoo.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -47,3 +47,3 @@ # node-zookeeper | ||
timeout: timeoutMs, | ||
debug_level: ZooKeeper.ZOO_LOG_LEVEL_WARN, | ||
debug_level: ZooKeeper.constants.ZOO_LOG_LEVEL_WARN, | ||
host_order_deterministic: false, | ||
@@ -75,3 +75,3 @@ }; | ||
try { | ||
const createdPath = await client.create(path, data, ZooKeeper.ZOO_EPHEMERAL); | ||
const createdPath = await client.create(path, data, ZooKeeper.constants.ZOO_EPHEMERAL); | ||
@@ -233,14 +233,14 @@ console.log(`(created: ${createdPath})`); | ||
* ZooKeeper.ZOO_OPEN_ACL_UNSAFE - anyone can do anything | ||
* ZooKeeper.ZOO_READ_ACL_UNSAFE - anyone can read | ||
* ZooKeeper.ZOO_CREATOR_ALL_ACL - gives full rights to authorised user (you have to be authorised first, otherwise it will result with "invalid acl") | ||
* ZooKeeper.constants.ZOO_OPEN_ACL_UNSAFE - anyone can do anything | ||
* ZooKeeper.constants.ZOO_READ_ACL_UNSAFE - anyone can read | ||
* ZooKeeper.constants.ZOO_CREATOR_ALL_ACL - gives full rights to authorised user (you have to be authorised first, otherwise it will result with "invalid acl") | ||
If you don't want to use predefined ACLs you can define your own (the ACL object is described above), for limiting permisions you can use: | ||
* ZooKeeper.ZOO_PERM_READ - read permission | ||
* ZooKeeper.ZOO_PERM_WRITE - write permission | ||
* ZooKeeper.ZOO_PERM_CREATE - create permission | ||
* ZooKeeper.ZOO_PERM_DELETE - delete permission | ||
* ZooKeeper.ZOO_PERM_ADMIN - admin permission | ||
* ZooKeeper.ZOO_PERM_ALL - all of the above | ||
* ZooKeeper.constants.ZOO_PERM_READ - read permission | ||
* ZooKeeper.constants.ZOO_PERM_WRITE - write permission | ||
* ZooKeeper.constants.ZOO_PERM_CREATE - create permission | ||
* ZooKeeper.constants.ZOO_PERM_DELETE - delete permission | ||
* ZooKeeper.constants.ZOO_PERM_ADMIN - admin permission | ||
* ZooKeeper.constants.ZOO_PERM_ALL - all of the above | ||
@@ -247,0 +247,0 @@ For more details please refer to ZooKeeper docs. |
3224128