Skip to content

Commit 37286e5

Browse files
committed
chore: bump to 2.5.0
Update CHANGELOG.md with process locking utilities and script refactoring improvements.
1 parent 18fac4b commit 37286e5

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ 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 utilities**: Added `ProcessLockManager` class providing cross-platform inter-process synchronization using file-system based locks
13+
- Atomic lock acquisition via `mkdir()` for thread-safe operations
14+
- Stale lock detection with automatic cleanup (default 10 seconds, aligned with npm's npx strategy)
15+
- Exponential backoff with jitter for retry attempts
16+
- Process exit handlers for guaranteed cleanup even on abnormal termination
17+
- Three main APIs: `acquire()`, `release()`, and `withLock()` (recommended)
18+
- Comprehensive test suite with `describe.sequential` for proper isolation
19+
- Export: `@socketsecurity/lib/process-lock`
20+
21+
### Changed
22+
23+
- **Script refactoring**: Renamed `spinner.succeed()` to `spinner.success()` for consistency
24+
- **Script cleanup**: Removed redundant spinner cleanup in interactive-runner
25+
826
## [2.4.0](https://github.com/SocketDev/socket-lib/releases/tag/v2.4.0) - 2025-10-28
927

1028
### 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)