Skip to content

Commit 98c25a0

Browse files
committed
chore: bump to 2.4.0
Update CHANGELOG.md with download locking improvements aligned with npm's npx strategy.
1 parent bb81b50 commit 98c25a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
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.4.0](https://github.com/SocketDev/socket-lib/releases/tag/v2.4.0) - 2025-10-28
9+
10+
### Changed
11+
12+
- **Download locking aligned with npm**: Reduced default `staleTimeout` in `downloadWithLock()` from 300 seconds to 10 seconds to align with npm's npx locking strategy
13+
- Prevents stale locks from blocking downloads for extended periods
14+
- Matches npm's battle-tested timeout range (5-10 seconds)
15+
- Binary downloads now protected against concurrent corruption
16+
- **Binary download protection**: `dlxBinary.downloadBinary()` now uses `downloadWithLock()` to prevent corruption when multiple processes download the same binary concurrently
17+
- Eliminates race conditions during parallel binary downloads
18+
- Maintains checksum verification and executable permissions
19+
820
## [2.3.0](https://github.com/SocketDev/socket-lib/releases/tag/v2.3.0) - 2025-10-28
921

1022
### Added

0 commit comments

Comments
 (0)