Skip to content

Commit 5e64495

Browse files
committed
chore: bump to 2.5.0
Add process-lock module with comprehensive inter-process locking capabilities.
1 parent 8baa319 commit 5e64495

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.5.0](https://github.com/SocketDev/socket-lib/releases/tag/v2.5.0) - 2025-10-28
9+
10+
### Added
11+
12+
- **Process locking for inter-process synchronization**: New `process-lock` module provides cross-platform file-system based locks
13+
- Atomic lock acquisition using mkdir (POSIX standard)
14+
- Stale lock detection and cleanup (10 second default, aligned with npm's approach)
15+
- Automatic process exit cleanup to prevent orphaned locks
16+
- Exponential backoff retry strategy with jitter
17+
- Convenient `withLock()` method for automatic lock management
18+
- Comprehensive test coverage with 19 unit tests
19+
820
## [2.4.0](https://github.com/SocketDev/socket-lib/releases/tag/v2.4.0) - 2025-10-28
921

1022
### Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/lib",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"license": "MIT",
55
"description": "Core utilities and infrastructure for Socket.dev security tools",
66
"keywords": [

0 commit comments

Comments
 (0)