Skip to content

chore: release 4.2.1 - #132

Merged
cmp-202 merged 8 commits into
masterfrom
docs/jsdoc-refinements
Nov 24, 2026
Merged

cmp-202 merged 8 commits into
masterfrom
docs/jsdoc-refinements

Conversation

@cmp-202

@cmp-202 cmp-202 commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares 4.2.1 with editor/type-support hardening and WebStorm inspection cleanup.

  • Adds a dev-only TypeScript typecheck gate with checked-in configs, strict consumer fixtures, and CI/publish/prepublishOnly checks.
  • Adds a conditional exports map with types first while preserving extensionless lib/* deep imports.
  • Tightens public declarations: string command responses, HostConfig/ThisType<SSH2Shell>, stop(): this, and EventEmitter-compatible addListener overloads.
  • Clears actionable WebStorm warnings in sources, scripts, live tests, and unit helpers without runtime behavior changes.
  • Restores the 4.2.0 ASCII filter pattern verbatim and retains the compilePromptRegex deep-import export.
  • Adds 4.2.1 changelog entries and compare links.
  • Documents session modes and ignores local jsconfig.json.

Test plan

  • npm run build — passed
  • npm run typecheck — passed
  • npm run check:changelog — passed for 4.2.1
  • npm test — 229 total, 174 passed, 55 skipped, 0 failed
  • npm pack --dry-run — ssh2shell-4.2.1.tgz, index.d.ts included
  • Live suite — 31 passed, 0 failed
  • Fresh WebStorm inspection — 0 actionable findings
  • Verified extensionless and explicit lib/* self-imports

Release type: patch 4.2.1. Same-day follow-up limit explicitly waived by the maintainer.

Add pinned TypeScript typecheck configs, strict consumer fixture, and CI/publish/prepublish gates. Preserve extensionless lib subpaths with explicit exports aliases and bump package metadata to 4.2.1. No runtime dependencies or runtime behavior change.
Narrow command responses to string, type internal host records with HostConfig/ThisType, document stop() as this, and add EventEmitter-compatible addListener overloads. Update editor-support and publishing docs for the dev-only typecheck gate and review-cycle commit policy. Runtime dependencies and behavior are unchanged.
Type internal host records and timer/context values, remove unused callback parameters and redundant returns, preserve the 4.2.0 ASCII filter pattern verbatim, and retain the compilePromptRegex deep-import export. Regenerate lib/ from src/.
Replace unused dotenv bindings with side-effect config calls, remove unused callback parameters, annotate fixture hosts, fake connections, timers and key loading, correct Error cause arguments, simplify trivial ternaries, and remove redundant locals. Test behavior is unchanged.
Move the development notes into a dated 4.2.1 section, split Added and Changed entries, and update the compare links. Final local release gates pass.
Keep the editor-only jsconfig.json local while tsconfig.json remains the checked-in project scope.
Clarify that read-only exploration ends when implementation on a branch is requested, after which normal local development and review-cycle commits apply. Push, PR, tag, publish, and release still require explicit approval.
Describe the TypeScript typecheck as static contract coverage rather than line coverage. Line coverage remains diagnostic only, with no dependency or CI gate.
@cmp-202
cmp-202 merged commit 81b7df7 into master Nov 24, 2026
9 checks passed
@cmp-202
cmp-202 deleted the docs/jsdoc-refinements branch November 24, 2026 23:21
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