Repository navigation
Releases: KunalBurangi/node-redlock
Release list
New Features
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.
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).