@socketsecurity/lib 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.2.1](https://github.com/SocketDev/socket-lib/releases/tag/v5.2.1) - 2026-01-06
9
+
10
+ ### Fixed
11
+
12
+ - **releases**: Fixed "Text file busy" errors when executing downloaded binaries
13
+ - Changed `downloadGitHubRelease()` to use synchronous `chmodSync()` instead of async `chmod()`
14
+ - Ensures file system operations complete before binary execution
15
+ - Prevents race conditions in CI/CD environments where async operations may not fully flush to disk
16
+
8
17
  ## [5.2.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.2.0) - 2026-01-06
9
18
 
10
19
  ### Added
@@ -232,7 +232,7 @@ async function downloadGitHubRelease(config) {
232
232
  );
233
233
  const isWindows = binaryName.endsWith(".exe");
234
234
  if (!isWindows) {
235
- await (0, import_promises.chmod)(binaryPath, 493);
235
+ (0, import_node_fs.chmodSync)(binaryPath, 493);
236
236
  if (removeMacOSQuarantine && process.platform === "darwin" && platformArch.startsWith("darwin")) {
237
237
  try {
238
238
  await (0, import_spawn.spawn)("xattr", ["-d", "com.apple.quarantine", binaryPath], {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@socketsecurity/lib",
3
- "version": "5.2.0",
4
- "packageManager": "pnpm@10.26.2",
3
+ "version": "5.2.1",
4
+ "packageManager": "pnpm@10.27.0",
5
5
  "license": "MIT",
6
6
  "description": "Core utilities and infrastructure for Socket.dev security tools",
7
7
  "keywords": [
@@ -722,7 +722,7 @@
722
722
  "@socketregistry/is-unicode-supported": "1.0.5",
723
723
  "@socketregistry/packageurl-js": "1.3.5",
724
724
  "@socketregistry/yocto-spinner": "1.0.25",
725
- "@socketsecurity/lib-stable": "npm:@socketsecurity/lib@5.1.2",
725
+ "@socketsecurity/lib-stable": "npm:@socketsecurity/lib@5.2.0",
726
726
  "@types/node": "24.9.2",
727
727
  "@typescript/native-preview": "7.0.0-dev.20250920.1",
728
728
  "@vitest/coverage-v8": "4.0.3",