Skip to content

chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.1 + register .claude/hooks/* + lib-stub expansion#596

Open
John-David Dalton (jdalton) wants to merge 6 commits intomainfrom
chore/ci-cascade-main-34fef52b
Open

chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.1 + register .claude/hooks/* + lib-stub expansion#596
John-David Dalton (jdalton) wants to merge 6 commits intomainfrom
chore/ci-cascade-main-34fef52b

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton John-David Dalton (jdalton) commented Apr 18, 2026

Summary

Multi-repo cascade sync:

1. socket-registry refs (SHA pin bump)

SocketDev/socket-registry/.github/...@<SHA> refs in .github/workflows/@d54c36d0bed05ffffbe8b14e7663927eaa19d5df.

2. weekly-update delegation

.github/workflows/weekly-update.yml reduced to a thin 20-line delegator calling SocketDev/socket-registry/.github/workflows/weekly-update.yml@d54c36d0.

3. @socketsecurity/lib 5.19.1 bump

package.json dev dep @socketsecurity/lib bumped from 5.18.25.19.1. Hook manifest .claude/hooks/check-new-deps/package.json also bumped.

lib 5.19.x brings:

  • New dlx pin pipeline (dlx/integrity, dlx/arborist, dlx/lockfile) with generatePackagePin() + default 7-day minimum-release-age
  • pacote shim exposes tarball/manifest/packument (fixes latent runtime crash in fetchPackageManifest/fetchPackagePackument)
  • DlxBinaryOptions.hash? / DlxPackageOptions.hash? / DlxPackageOptions.lockfile? options
  • ~1.1 MB smaller dist/external/ via stub coverage of sigstore/tuf/arborist internals + zod v4 locales + debug/browser
  • 5.19.1 restores stdio/{prompts,progress,clear} + vendored @inquirer/* shims that 5.19.0 accidentally removed

Fixes pre-existing printFooter imports in scripts/build.mts + scripts/check.mts that pulled from lib/stdio/header (where printFooter never lived). 5.18.2's loose subpath exports hid the bug; 5.19.x surfaces it.

4. Register .claude/hooks/* as workspace packages

pnpm-workspace.yaml packages: glob now includes .claude/hooks/*. Taze (run via pnpm run update) now sees and bumps the hook manifests automatically, so they stay in lockstep with the root without manual sed.

5. Expand SDK's libStubPlugin pattern

createLibStubPlugin in .config/esbuild.config.mts now also stubs external/del.js + external/cacache.js. Both are eagerly loaded by @socketsecurity/lib/dist/fs.js (lazy getDel()) and @socketsecurity/lib/dist/cacache.js, but SDK never calls safeDelete/safeDeleteSync and cache-with-ttl degrades gracefully.

Cascade

  • Direct push (main): socket-lib (5.19.1 release), socket-btm, sdxgen, socket-tui, socketui, socket-registry, socket-packageurl-js
  • PR: socket-cli (#1237), socket-sdk-js (this PR)

Test plan

  • CI green
  • No stale registry refs: grep -rn "SocketDev/socket-registry" .github/ | grep "@" | grep -v d54c36d0 returns nothing
  • grep @socketsecurity/lib package.json .claude/hooks/check-new-deps/package.json shows 5.19.1
  • pnpm run update now traverses .claude/hooks/* package.jsons too

…date

Update all SocketDev/socket-registry action/workflow SHA pins in
.github/workflows/ to d54c36d0bed05ffffbe8b14e7663927eaa19d5df (the
current propagation SHA per socket-registry's _local-not-for-reuse-*.yml
pins).

Also: .github/workflows/weekly-update.yml is now a thin delegator to
SocketDev/socket-registry/.github/workflows/weekly-update.yml — the
shared Layer 3 reusable that invokes the /updating skill umbrella via
Claude Code. Drops ~340 lines of inline update logic; same behavior.
@jdalton John-David Dalton (jdalton) force-pushed the chore/ci-cascade-main-34fef52b branch from 3917f67 to c98d145 Compare April 19, 2026 03:47
@jdalton John-David Dalton (jdalton) changed the title chore(ci): bump socket-registry action refs to main (34fef52b) chore(ci): bump socket-registry refs to d54c36d0 + delegate weekly-update Apr 19, 2026
@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 19, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​socketsecurity/​lib@​5.19.1100100100100100

View full report

@jdalton John-David Dalton (jdalton) changed the title chore(ci): bump socket-registry refs to d54c36d0 + delegate weekly-update chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.0 Apr 19, 2026
…nals

The current createLibStubPlugin already stubs socket-lib's globs.js,
sorts.js, and the npm-pack / pico-pack external bundles since none of
their code paths are exercised by the SDK's runtime.

Extend the same pattern to two more transitive externals:

- @socketsecurity/lib/dist/external/del.js — pulled in by fs.js's
  lazy getDel() for safeDelete/safeDeleteSync. The SDK only uses
  validateFiles() from fs and never deletes.
- @socketsecurity/lib/dist/external/cacache.js — destructures from
  npm-pack (already stubbed), so the eager require would already
  yield undefined. Stubbing makes the intent explicit.

Result on dist/index.js: 712,442 → 711,934 bytes (−508 bytes).
Modest gain since socket-lib's own stubs (v5.19.0 +) cascade here
automatically once the lib dep bumps.

Full vitest suite runs with same pass/fail counts as main
(739 passing; 1 pre-existing .claude/hooks failure unrelated to
this change).
@jdalton John-David Dalton (jdalton) changed the title chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.0 chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.0 + lib-stub expansion Apr 19, 2026
@jdalton John-David Dalton (jdalton) changed the title chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.0 + lib-stub expansion chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.1 + lib-stub expansion Apr 19, 2026
@jdalton John-David Dalton (jdalton) changed the title chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.1 + lib-stub expansion chore: cascade bump — socket-registry refs + @socketsecurity/lib 5.19.1 + register .claude/hooks/* + lib-stub expansion Apr 19, 2026
`npm publish --provenance` requires the GitHub Actions OIDC
id-token endpoint — running the script locally (non-dry-run) fails
with "Provenance generation in GitHub Actions requires
'id-token: write' permission".

Guarded the flag behind `process.env.GITHUB_ACTIONS === 'true'` so
local emergency publishes still work. CI runs unchanged.

Same fix landed in stuie + socket-registry + socket-packageurl-js
in parallel commits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant