You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catalog bump from 5.20.1 to 5.21.0 plus the caller-side migrations
needed for the new API surface:
- pnpm-workspace.yaml catalog: 5.20.1 → 5.21.0
- packageManager + engines.pnpm: 11.0.0-rc.0 → 11.0.0-rc.2 to match
the rest of the fleet
Migrations for 5.21.0 changes:
1. `printFooter` moved out of `@socketsecurity/lib/stdio/header` —
it was a latent wrong-path import that lib's loose subpath
exports hid on 5.18.2. Now imported from
`@socketsecurity/lib/stdio/footer` in scripts/check.mts and
scripts/type.mts.
2. `StdioOptions` strictening via `SpawnExtra = Record<string,
unknown>` — `spawnExtra?.['stdio']` is `unknown`, not assignable
to `StdioOptions`. Cast to `StdioOptions | undefined` at the
9 call sites in utils/dlx/spawn.mts and utils/coana/spawn.mts.
Also switched `||` → `??` so an empty-string stdio (not a real
value, but TypeScript-possible) doesn't silently fall through.
3. `IpcHandshake` / `IpcMessage` types removed from
`@socketsecurity/lib/ipc`. The cli validator re-derives these
shapes structurally anyway — define them locally in
utils/validation/ipc.mts alongside the validators.
4. `sendBootstrapHandshake`'s parameter requires a non-optional
`send` method, but `ChildProcess.send` is optional. Add a
runtime typeof-guard with a clear TypeError before the call
(we always spawn with an IPC channel; the guard just narrows
for the type system).
Lint + typecheck clean. Pre-existing check-new-deps hook test
failures on main are unrelated to this bump.
0 commit comments