You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
#### v 4.8.0 (2021-01-31)
2
+
* feat: add support for TTL and Container nodes. Pull request [255](https://github.com/yfinkelstein/node-zookeeper/pull/255) by @dreusel
3
+
* fix: Example code: use one client, use only when connected Pull request [264](https://github.com/yfinkelstein/node-zookeeper/pull/264) by @davidvujic
4
+
1
5
#### v 4.7.1 (2020-12-27)
2
6
* fix: build an AddOn from the ZooKeeper C Client v3.5.8 in all platforms (Linux, Mac OS X and Windows). Pull request [260](https://github.com/yfinkelstein/node-zookeeper/pull/260) by @davidvujic
Copy file name to clipboardexpand all lines: README.md
+15-7
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,11 @@ And you're done!
19
19
(note the name `zookeeper` in lowercase)
20
20
21
21
#### News
22
+
: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:
23
+
22
24
: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.
23
25
Everything is already included in the package. Linux user? Don't worry, the installer will quickly build a `Native Node.js AddOn` for the Linux flavor you are running.
24
26
25
-
26
-
#### Next release (work in progress)
27
-
:rocket: Adding support for the new node types introduced in Apache ZooKeeper server v3.5.5: `Container` and `TTL`:rocket:
28
-
29
27
## Examples
30
28
31
29
```javascript
@@ -97,7 +95,8 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _
97
95
*`init(options)`
98
96
*`connect(options, connect_cb)`
99
97
*`close()`
100
-
*`path = await create(path, data, flags)`
98
+
*`path = await create(path, data, flags, ttl)`
99
+
*`ttl` is optional. Must be positive if a TTL flag is used. See [Input parameters](#input-parameters)
101
100
*`mkdirp(path, callback(Error))`
102
101
*`stat = await exists(path, watch)`
103
102
* rejects if node does not exist
@@ -132,6 +131,7 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _
132
131
*`connect(options, connect_cb)`
133
132
*`close()`
134
133
*`a_create(path, data, flags, path_cb)`
134
+
*`a_createTtl(path, data, flags, ttl, pathCb)`
135
135
*`mkdirp(path, callback(Error))`
136
136
*`a_exists(path, watch, stat_cb)`
137
137
*`a_get(path, watch, data_cb)`
@@ -171,9 +171,17 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _
0 commit comments