Skip to content

Releases: KunalBurangi/node-redlock

New Features

Choose a tag to compare

@KunalBurangi KunalBurangi released this 22 Nov 10:58
93aa7f0

Release Notes v2.3.0
🚀 New Features
Secure Lock Values: Switched from Math.random() to crypto.randomUUID() for cryptographically secure lock tokens.
Event Emitter Support: Redlock now extends EventEmitter and emits acquired, released, renewed, clientError, and error events for better observability.
using Pattern: Introduced a new redlock.using(resource, ttl, routine) method for safer, automatic lock acquisition and release.
Automatic Extension: The using method supports an { autoExtend: true } option to automatically renew locks in the background while a task is running.
🧹 Improvements
Dependency Cleanup: Removed unused dependencies (openai, puppeteer, simple-git, etc.) to significantly reduce package size.
Type Definitions: Moved @types/node to devDependencies.
⚠️ Breaking Changes
Class Inheritance: Redlock now extends EventEmitter. This is generally compatible but changes the prototype chain.
Environment: Requires a Node.js environment with crypto support (standard in all modern Node.js versions).

2.2.0

Choose a tag to compare

@KunalBurangi KunalBurangi released this 01 Jan 17:03

Added

  • Added features for renewLock and acquire lock with custom retry stratergy

2.1.4

Choose a tag to compare

@KunalBurangi KunalBurangi released this 24 Dec 18:08

Fixed:
github action

2.1.3

Choose a tag to compare

@KunalBurangi KunalBurangi released this 24 Dec 18:01

new tag

2.1.1

Choose a tag to compare

@KunalBurangi KunalBurangi released this 24 Dec 17:34

Added:

  • Github Actions