1.0.0 (2021-04-02)
This is a major release and contain breaking changes. Please read this changelog before upgrading.
- Drop support for node 6.
- Switch deprecated node-redis-scripty to node-redis-script.
- Updated deps.
- Merge #18: Pass lock id to
.lock
callback.
- Allow proper use of Warlock with different redis clients.
- Bugfix
- Key generator no longer md5's the key. Instead appends a ':lock' string to the original key. To override, set
warlock.makeKey
to your own function. - Lock ownership check uses
uuid.v1
value. - Bump Redis requirement to
v2.6.12
. - Using additional Redis SET arguments to set lock key instead of script.
- Add
warlock.optimistic
method.