Skip to content

Commit 41de43f

Browse files
committed
chore(release): Release v5.2.0
1 parent 4817ea8 commit 41de43f

18 files changed

+44
-998
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ 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.2.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.2.0) - 2026-01-06
9+
10+
### Added
11+
12+
- **releases**: Added GitHub release download utilities for cross-project use
13+
- Added `downloadGitHubRelease()` for downloading releases from any GitHub repository
14+
- Added `downloadSocketBtmRelease()` specialized wrapper for socket-btm releases
15+
- Features version caching with `.version` files to avoid redundant downloads
16+
- Supports cross-platform binary downloads (darwin, linux, win32) with automatic platform/arch detection
17+
- Includes Linux musl/glibc support with musl as default for broader compatibility
18+
- Automatically removes macOS quarantine attributes from downloaded binaries
19+
- Supports generic asset downloads (WASM files, models, etc.)
20+
- API inspired by industry tools: `brew`, `cargo`, `gh` for intuitive usage
21+
- Package exports: `@socketsecurity/lib/releases/github` and `@socketsecurity/lib/releases/socket-btm`
22+
823
## [5.1.4](https://github.com/SocketDev/socket-lib/releases/tag/v5.1.4) - 2025-12-30
924

1025
### Fixed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/lib",
3-
"version": "5.1.4",
3+
"version": "5.2.0",
44
"packageManager": "pnpm@10.26.2",
55
"license": "MIT",
66
"description": "Core utilities and infrastructure for Socket.dev security tools",
@@ -523,6 +523,14 @@
523523
"types": "./dist/regexps.d.ts",
524524
"default": "./dist/regexps.js"
525525
},
526+
"./releases/github": {
527+
"types": "./dist/releases/github.d.ts",
528+
"default": "./dist/releases/github.js"
529+
},
530+
"./releases/socket-btm": {
531+
"types": "./dist/releases/socket-btm.d.ts",
532+
"default": "./dist/releases/socket-btm.js"
533+
},
526534
"./sea": {
527535
"types": "./dist/sea.d.ts",
528536
"default": "./dist/sea.js"

test/integration/fs.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
writeJson,
2121
} from '@socketsecurity/lib/fs'
2222
import { describe, expect, it } from 'vitest'
23-
import { runWithTempDir } from '../unit/utils/temp-file-helper.mjs'
23+
import { runWithTempDir } from '../unit/utils/temp-file-helper'
2424

2525
describe('fs integration', () => {
2626
describe('JSON file operations', () => {

test/integration/git.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import path from 'node:path'
1515
import { findGitRoot } from '@socketsecurity/lib/git'
1616
import { spawn } from '@socketsecurity/lib/spawn'
1717
import { describe, expect, it } from 'vitest'
18-
import { runWithTempDir } from '../unit/utils/temp-file-helper.mjs'
18+
import { runWithTempDir } from '../unit/utils/temp-file-helper'
1919

2020
describe('git integration', () => {
2121
describe('repository detection', () => {

test/unit/bin.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
whichRealSync,
2626
} from '@socketsecurity/lib/bin'
2727
import { describe, expect, it } from 'vitest'
28-
import { runWithTempDir } from './utils/temp-file-helper.mjs'
28+
import { runWithTempDir } from './utils/temp-file-helper'
2929

3030
describe('bin', () => {
3131
describe('isShadowBinPath', () => {

test/unit/dlx/binary.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
listDlxCache,
2525
} from '@socketsecurity/lib/dlx/binary'
2626
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
27-
import { mockHomeDir, runWithTempDir } from '../utils/temp-file-helper.mjs'
27+
import { mockHomeDir, runWithTempDir } from '../utils/temp-file-helper'
2828

2929
// Test server setup
3030
let httpServer: http.Server

test/unit/dlx/package.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type {
1919
DlxPackageOptions,
2020
DlxPackageResult,
2121
} from '@socketsecurity/lib/dlx/package'
22-
import { runWithTempDir } from '../utils/temp-file-helper.mjs'
22+
import { runWithTempDir } from '../utils/temp-file-helper'
2323

2424
describe('dlx-package', () => {
2525
describe('generatePackageCacheKey', () => {

test/unit/fs-additional.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
writeJsonSync,
4242
} from '@socketsecurity/lib/fs'
4343
import { describe, expect, it } from 'vitest'
44-
import { runWithTempDir } from './utils/temp-file-helper.mjs'
44+
import { runWithTempDir } from './utils/temp-file-helper'
4545

4646
describe('fs - Additional Coverage', () => {
4747
describe('findUp edge cases', () => {

test/unit/fs.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
writeJsonSync,
4848
} from '@socketsecurity/lib/fs'
4949
import { describe, expect, it } from 'vitest'
50-
import { runWithTempDir } from './utils/temp-file-helper.mjs'
50+
import { runWithTempDir } from './utils/temp-file-helper'
5151

5252
describe('fs', () => {
5353
describe('findUp', () => {

test/unit/git-extended.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
3131
import { spawnSync } from '@socketsecurity/lib/spawn'
3232
import { describe, expect, it } from 'vitest'
33-
import { runWithTempDir } from './utils/temp-file-helper.mjs'
33+
import { runWithTempDir } from './utils/temp-file-helper'
3434

3535
describe('git extended tests', () => {
3636
const projectRoot = normalizePath(process.cwd())

0 commit comments

Comments
 (0)