Skip to content

4.2.1

Latest

Choose a tag to compare

@cmp-202 cmp-202 released this 24 Nov 23:30
· 2 commits to master since this release
81b7df7

Release 4.2.1 hardens editor/type support and adds a dev-only typecheck gate. Runtime behavior and the JavaScript API are unchanged.

Added

  • A conditional exports map so Node 16+/node16/nodenext resolution finds index.d.ts for the root import while preserving lib/*, including extensionless deep imports, and package.json subpaths.
  • A dev-only, pinned TypeScript typecheck gate that validates static type contracts across annotated sources, repository scripts, live tests, and strict consumer fixtures under node16 and nodenext. This is contract coverage, not line coverage; the line-coverage report remains diagnostic only. It is required in CI and runs from prepublishOnly; runtime dependencies are unchanged.

Changed

  • Tightened public declarations: command responses are strings, HostConfig carries ThisType<SSH2Shell>, stop() returns this, and addListener has EventEmitter-compatible overloads.
  • Cleared actionable editor warnings in sources, scripts, tests, and declarations while preserving 4.2.0 runtime behavior, the ASCII filter pattern, and the compilePromptRegex deep-import export.
  • Documented session modes and review-cycle commit policy, and ignored the local editor-only jsconfig.json.

Full notes: https://github.com/cmp-202/ssh2shell/blob/v4.2.1/CHANGELOG.md