Repository navigation
Release 4.2.0 - #131
Merged
Merged
Release 4.2.0#131
Conversation
Declares SSH2Shell, HostConfig, ServerConfig, handlers, and event payloads, and points package.json at index.d.ts. No TypeScript build or runtime dependency is added.
Links the runtime source to the public declaration file and annotates the main public and helper signatures. No TypeScript dependency or ts-check gate is added yet.
Adds the ts-check directive needed by editor tooling, with lib/ rebuilt to match src/.
Add hand-maintained index.d.ts and package types/files entries, JSDoc aliases and @ts-check in source, and README guidance with annotated README-linked live tests. Record the editor-support additions under Unreleased and add an AI-assisted workflow prompt for maintaining the declarations. Runtime behavior is unchanged.
Restore the constructor Stream/EventEmitter options pass-through and correct the editor declarations for hostVerifier key bytes and nullable error callbacks. Annotate the remaining README-linked keyboard-interactive example and record the review fixes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release
4.2.0adds public editor/type support without changing runtime behavior.index.d.tsdescribing the constructor, public methods, host and server configuration, handlers, events, and runtime state.package.jsontypesat./index.d.tsand includes the declaration in the publishedfileslist. No TypeScript dependency, build step, or CI gate was added.// @ts-checkinsrc/, withlib/kept in sync through the normal build check.No connection or command-flow code changed.
Verification
tscacross sources and the annotated live tests: 0 errorsnpm test: 229/229 unit passed; 174 passed / 55 skipped baselinenpm run check:changelog: passed for 4.2.0git diff --check: cleannpm pack --dry-run: confirmedindex.d.tsis included in the 4.2.0 tarballCoverage summary
Coverage is diagnostic only: no coverage dependency and no CI coverage gate. The current figures are unchanged from
test/coverage.md, measured on Node v26.13.0 on 2026-11-23, because this release adds declarations and documentation only.lib/ssh2shell.jslib/ssh2shell/defaults.jslib/ssh2shell/util.jssrc/ssh2shell.jssrc/ssh2shell/defaults.jssrc/ssh2shell/util.jsCombined line union: 2912 of 2967 executable lines. Residual headline: 55 lines missed by both.
Full miss-overlap table:
ssh2shell.jsdefaults.jsutil.jsMeasurement commands are documented in
test/coverage.md:npm run build, the Node built-in coverage unit command againstlib/, and the serial live command againstsrc/. Raw LCOV files stay local.