- Prefer arrow callbacks - Fixes #304 (Thanks @ururk)
- Fix unixification of paths (Thanks @mbr4477)
- Unixy all paths before passing onwards
- Add
isConnectedmethod
- Add support for Putty private key files
- Add
getDirectorymethod - Add
onChannelsupport toexecCommand - Rename
options.optionsinexecCommandto beoptions.execOptions - Rename
options.sftpOptionstooptions.transferOptionsinputFiles - Add
withSFTPandwithShellmethods - Connection timed out error is now an instance of
SSHError - Invalid argument errors are now
AssertionErrorinstances onKeyboardInteractivedefault will only be set if aconfig.passwordis provided
- Stop swallowing non-existent cwd errors in
execCommand#272 (Thanks @dadamssg)
- Do not include privateKey path in error message
- Potential breaking upgrade to
ssh2dependency
- Breaking upgrade to
ssh2dependency - Internal cleanup / testing system overhaul
- Fix timeout issue with authentication
- Fixed an issue with keyboard authentication validation
- Add keyboard authentication support (Thanks @dominiklessel)
- Add
onStdout,onStderrtoexec{,Command} - Change signature of
put{Files,Directory}methods - Create empty directories remotely in
putDirectory
- Fix passing options in
execCommand
- Fix put directory for long paths
- Add tests for long paths in test suite
- Remove
mkdirpin favor of homegrown solution to fix compatibility with SSH servers running on Windows
- Fix a typo in README
- Add support for passing direct options to
ssh2.exec
- Add sftp
optssupport ingetFile,putFile,putFilesandputDirectory
- Fix support for
config.sock
- Fix a bug where
.getFileparameters were reversed. Published as a major change because it is API breaking
- Implement sftp-backed
mkdir - Implement
maxAtOnceinputFiles()
- Fix a bug for windows users where
.putDirectory()wouldn't convert paths properly ( Thanks @lanxenet )
Confidently, this is the most stable version of this module to date 🎉
- Rename
.endto.dispose - Rename
.getto.getFile - Rename
.putto.putFile - Rename
.putMultito.putFiles - Add
.putDirectoryfunction to copy entire directories - Change order of
.getFileparameters - Extended parameter validation in
.putFiles - Close SFTP connections after they are used
- Hide errors from
cdwhencwdis supplied but it does not exist - Do not throw sync errors in async functions, return a rejected promise instead
- Propagate the private key read error if it's not ENOENT (ie. permissions issue)
- Changed the signature of input in
.putFiles(ie. lowercase the props, from Local to local and from Remote to remote)
- Escape
cwdparameter - Escape shell parameters
- Fix more typos
- Fix
.get's promise never resolving
- Fix some typos
- Fix
stdinsupport in.execand.execCommand
- Return
codeandsignalin.execCommandifstreamis set tobothand in.exec
- Fix a publishing issue
- Fix method name in README
- Stricter validation of config
- Rewrite from CoffeeScript to JS
- Rename
.execto.execCommand - Accept config in
.connectinstead of constructor - Add new
.execmethod that formats given parameters automatically - Do not return file contents in
.getbecause we already write it to a file
- Initial release