Skip to content

test(native): refresh pinned-tool snapshots without a native build - #1732

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
test/share-snapshot-version-rewrite
Open

John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
test/share-snapshot-version-rewrite

Conversation

@jdalton

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

Copy link
Copy Markdown
Contributor

Adds fixed-width snapshot version updates, reference-backed bump skills, and a consistent src/sea/stage/ layout for native payload stagers.

Stable v1.x stages socket, @socketsecurity/cli, and @socketsecurity/cli-with-sentry; the native 2.1 RC stages only socket under rc-2.1.0.

Verified: snapshot tests (5 pass), SEA tests (16 pass, 1 skipped), script type check, and scoped lint.

@cursor

cursor Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test/snapshot tooling only; no runtime CLI or security-sensitive paths changed.

Overview
Adds a shared swapVersionInSnapshot helper in snapshot-dependencies.mts so terminal SVG snapshots can bump pinned dependency versions without changing fixed row width—trailing spaces absorb length differences.

The helper uses strict version-boundary matching, throws when the old version is missing or the new one does not fit, and is covered by new Vitest cases (grow/shrink, prefix non-match, error paths). Minor formatting-only tweaks elsewhere in the same module.

Reviewed by Cursor Bugbot for commit a42a0c9. Configure here.

@jdalton
John-David Dalton (jdalton) force-pushed the test/share-snapshot-version-rewrite branch from a42a0c9 to 9faa2a0 Compare November 17, 2026 20:40
@jdalton John-David Dalton (jdalton) changed the title test(native): share snapshot version replacement test(native): refresh pinned-tool snapshots without a native build Nov 17, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the test/share-snapshot-version-rewrite branch 4 times, most recently from 1944696 to 7115849 Compare November 17, 2026 21:15
@jdalton
John-David Dalton (jdalton) force-pushed the test/share-snapshot-version-rewrite branch from 7115849 to 82b439e Compare November 17, 2026 21:22
Co-authored-by: Martin Torp <martin@socket.dev>
@jdalton
John-David Dalton (jdalton) force-pushed the test/share-snapshot-version-rewrite branch from 82b439e to 303251e Compare November 17, 2026 21:41

This branch has not been deployed

No deployments
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.

1 participant