github.com/ruinelson/swiftsftp breaking changes
github.com/ruinelson/swiftsftp 4.0.0 (November 30, 2026) is its newest release with breaking changes, 64 of them. The first: Drops the swift-log dependency in github.com/RuiNelson/SwiftSFTP 4.0.0. Every breaking API change we have recorded in github.com/ruinelson/swiftsftp on Swift Package Index: 64 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.2.0, released December 4, 2026. Source repository
github.com/ruinelson/swiftsftp 4.0.0 breaking changes
- Removed
SwiftSFTP no longer depends on swift-log and logs nothing. Add swift-log as a direct dependency if your code relied on it through SwiftSFTP. github.com - Removed
Values encoded by earlier versions do not decode; UserAuthentication and HostKeyAcceptance (other than .acceptAny) and TCPLocation are affected. github.com - Removed
AlreadyClosed
AlreadyClosed and NotLoggedIn are replaced by MisuseError, which only release builds throw. github.com - Removed
AsymmetricKeyType
AsymmetricKeyType is replaced by AsymmetricAlgorithm types and a key's algorithm property. github.com - Removed
contentsOfDirectory
contentsOfDirectory and the Set-returning listDirectory are replaced by listDirectory(path:recursive:), which returns [FileMetadata]. github.com - Removed
fork
fork(loggedIn:) is replaced by fork(), which is always logged in. github.com - Removed
getServerHostKey
getServerHostKey loses shortHandForm and HostKeyAcceptance.shortHandAcceptedKeys is removed. github.com - Removed
HostKeyAcceptance.shortHandAcceptedKeys
HostKeyAcceptance.shortHandAcceptedKeys is replaced by .publicKeys. github.com - Removed
initAndLogin
initAndLogin and login(timeOut:) are removed; the initializer now logs in. github.com - Removed
isValid_
isValid_ and isValidForSSH_ checks on key text are replaced by PrivateKey, PublicKey and validForSSHAuth. github.com - Removed
KeyValidation
The KeyValidation protocol and its isValid and isValidForSSH checks, privateKeyType/publicKeyType, and password: variants are removed; use validForSSHAuth. github.com - Removed
login
login(timeOut:) is removed; the initializer now logs in. github.com - Removed
multiDownload
multiDownload is replaced by SFTPSwarm; callers must switch to a swarm. github.com - Removed
multiTune
multiTune is replaced by SFTPSwarm; callers must switch to a swarm. github.com - Removed
multiUpload
multiUpload, multiDownload and multiTune are replaced by SFTPSwarm; callers must switch to a swarm. github.com - Removed
NotLoggedIn
NotLoggedIn is replaced by MisuseError, which only release builds throw. github.com - Removed
OpenSSHKeyPair
OpenSSHKeyPair is removed; use AsymmetricCryptography.EdDSA.Ed25519. github.com - Removed
PrivateKeyFile
PrivateKeyFile is removed; use PrivateKey with .privateKey(_:) or .privateKeys(_:). github.com - Removed
PrivateKeySet
Old private key types and cases are removed; use PrivateKey with .privateKey(_:) or .privateKeys(_:). github.com - Removed
PrivateKeyString
PrivateKeyString is removed; use PrivateKey with .privateKey(_:) or .privateKeys(_:). github.com - Removed
ProgrammingErrorHandler
ProgrammingError, ProgrammingErrorHandler and programmingErrorHandler are replaced by DeinitError, DeinitErrorHandler and deinitErrorHandler. github.com - Removed
ReferenceCache.close
ReferenceCache.close() is removed; release the cache or call removeAll(). github.com - Removed
SFTPClient.init
The logger and trapOnDeInitWithoutClose parameters are gone; pass deinitErrorHandler instead. github.com - Removed
SFTPClient.initAndLogin
Call the async throwing SFTPClient initializer with the same arguments instead of initAndLogin. github.com - Removed
SFTPClient.login
Login happens inside the initializer, so call it there with loginTimeOut. github.com - Removed
SFTPClientInvalidConfig.authenticationFailed
SFTPClientInvalidConfig.authenticationFailed(_:) is removed; catch UserAuthenticationError instead. github.com - Removed
SFTPClientInvalidConfig.invalidTimeOutValue
invalid timeout and keepalive errors are removed; those values now fail a precondition. github.com - Removed
String.isValid_ShortHandHostKey
String.isValid_ShortHandHostKey is removed; use isValid_HostKey. github.com - Removed
SwiftSFTP_Curve25519
SwiftSFTP_Curve25519 and OpenSSHKeyPair are removed; use AsymmetricCryptography.EdDSA.Ed25519. github.com - Removed
TraceSetToLogger
TraceSetToLogger is replaced by TraceSetHandler and Trace. github.com - Renamed
AsymmetricCryptographyError.keyTypeMismatch
AsymmetricCryptographyError.keyTypeMismatch becomes algorithmMismatch. github.com - Renamed
AsymmetricKeyType
Keys use an algorithm property of type any AsymmetricAlgorithm.Type in place of type. github.com - Renamed
contentsOfDirectory
contentsOfDirectory is renamed to listDirectory(path:recursive:), which returns [FileMetadata]. github.com - Renamed
HostKeyAcceptance.loadFromFile
loadFromFile and loadFromFileString are renamed loadKnownHostsFile and loadKnownHostsString. github.com - Renamed
HostKeyAcceptance.loadFromFileString
loadFromFileString is renamed loadKnownHostsString. github.com - Renamed
SFTPClient.contentsOfDirectory
Call listDirectory(path:recursive:), which returns an array of FileMetadata. github.com - Behavior changed
Minimum platforms rise to macOS 12, iOS 15, tvOS 15, watchOS 9 and Mac Catalyst 15. github.com - Behavior changed
SwiftSFTP logs nothing; logger and trapOnDeInitWithoutClose are replaced by deinitErrorHandler. github.com - Behavior changed
A server rejecting credentials now throws UserAuthenticationError. github.com - Behavior changed
Users must depend on PathWorks 2.1.0 or later. github.com - Behavior changed
Invalid timeouts, keepalive intervals, buffer sizes, non-file URLs and empty shell agent inputs trap instead of throwing; validate user input first. github.com - Behavior changed
The minimum deployment targets went up (macOS 12, iOS 15, tvOS 15, watchOS 9, Mac Catalyst 15). Raise your own deployment target if it is below these. github.com - Behavior changed
PrivateKey
Errors in a key such as a missing file or wrong passphrase now throw where the key is created. github.com - Behavior changed
read
read() without an argument reads readAhead (2 MiB by default) instead of 32 KiB. github.com - Behavior changed
SFTPClient
Objects released without close() close themselves; errors go to deinitErrorHandler and close() is optional. github.com - Behavior changed
SFTPClient.init
The first parameter of SFTPClient.init and preflightConfigurationCheck is unlabeled. github.com - Behavior changed
SFTPClientProtocol
Conformers must make the initializer async throws, add new requirements and replace login, fork and contentsOfDirectory. github.com - Behavior changed
SFTPFile.read
file.read() reads the client's readAhead, 2 MiB by default, instead of a fixed 32 KiB. github.com - Behavior changed
SFTPSwarm
The next striped transfer deletes partial files from 3.x multi-connection transfers and starts from zero. github.com - Behavior changed
TCPLocation
TCPLocation.noDelay defaults to true, turning on TCP_NODELAY; pass noDelay: false to keep Nagle's algorithm. github.com
And 14 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.