Skip to content

Commit 7f7c6f5

Browse files
committed
chore(release): 5.8.1
1 parent fd915ae commit 7f7c6f5

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ 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+
## [5.8.1](https://github.com/SocketDev/socket-lib/releases/tag/v5.8.1) - 2026-03-11
9+
10+
### Performance
11+
12+
- **windows**: Add comprehensive caching for expensive PATH resolution operations
13+
- `getBinPath()`, `getBinPathSync()`: Cache binary path lookups
14+
- `findRealBin()`: Cache `all:true` lookups and use single `whichSync({ all: true })` call
15+
- `getVoltaBinPath()`: Cache Volta binary resolution
16+
- `spawn()`: Cache binary path resolution before spawning
17+
- `getGitPath()`: Cache git binary path
18+
- `getCachedRealpath()`: New helper caching `realpathSync()` calls for git operations
19+
- `findGitRoot()`: Cache git root directory lookups
20+
- `findPackageJson()`: Cache package.json path lookups
21+
- `readPackageJson()`: Cache parsed package.json content
22+
- `resolveBinaryPath()`: Cache binary path resolution with Windows extension handling
23+
- `NPM_BIN_PATH`, `NPM_REAL_EXEC_PATH`: Share npm path resolution to avoid duplicate `which.sync()` calls
24+
- `ProcessLockManager.isStale()`: Use single `statSync({ throwIfNoEntry: false })` instead of `existsSync()` + `statSync()`
25+
- All caches validate entries with `existsSync()` and remove stale entries automatically
26+
827
## [5.8.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.8.0) - 2026-03-10
928

1029
### Added

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": "5.8.0",
3+
"version": "5.8.1",
44
"packageManager": "pnpm@10.32.1",
55
"license": "MIT",
66
"description": "Core utilities and infrastructure for Socket.dev security tools",

0 commit comments

Comments
 (0)