Skip to content

test(native): map socket-patch snapshot refresh - #1718

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
feat/socket-patch-snapshot-refresh
Nov 12, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
feat/socket-patch-snapshot-refresh

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds a targeted native snapshot mapping for @socketsecurity/socket-patch. Both pnpm snapshots:update:dep socket-patch and pnpm snapshots:update:dep patch refresh the same eight help captures and version capture; native tests flag package version drift with the refresh command.

Ran: targeted native refresh and check (9 tests), focused snapshot unit tests (10 tests), pnpm check:lint, and pnpm check:tsc:scripts.

@cursor

cursor Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test and developer-tooling changes only; no production CLI or auth/data paths affected.

Overview
Adds socket-patch to the snapshot dependency registry so pnpm snapshots:update:dep socket-patch can refresh only the nine bundled patch help/version captures instead of the full native matrix.

Stale detection now supports an optional versionSnapshots list: for socket-patch, drift is judged from the version SVG while the refresh hint can still point at the full patch snapshot set. The snapshot workflow injects assertDependenciesCurrent through its dependency interface (used on non-update full runs).

A native test asserts socket-patch --version output matches the pinned @socketsecurity/socket-patch entry in package.json, and CLI/unit coverage documents socket-patch alongside coana in usage errors and help text.

Reviewed by Cursor Bugbot for commit 3011a28. Configure here.

@jdalton
John-David Dalton (jdalton) force-pushed the feat/socket-patch-snapshot-refresh branch from 3011a28 to 23d4f6e Compare November 12, 2026 15:46
@jdalton
John-David Dalton (jdalton) merged commit 8ba501d into v1.x Nov 12, 2026
20 of 23 checks passed
@jdalton
John-David Dalton (jdalton) deleted the feat/socket-patch-snapshot-refresh branch November 12, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants