---
title: "github.com/ruinelson/swiftsftp 4.0.0 Breaking Changes"
description: "What each github.com/ruinelson/swiftsftp release removed, renamed or changed: 64 breaking changes in 1 version on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/ruinelson/swiftsftp
last_updated: 2026-12-04
---

# 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

Latest version `4.2.0`, released December 4, 2026. [Source repository](https://github.com/RuiNelson/SwiftSFTP)

## github.com/ruinelson/swiftsftp 4.0.0 breaking changes

github.com/ruinelson/swiftsftp 4.0.0, released November 30, 2026: 64 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](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Removed**  

Values encoded by earlier versions do not decode; UserAuthentication and HostKeyAcceptance (other than .acceptAny) and TCPLocation are affected. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `AlreadyClosed`  

AlreadyClosed and NotLoggedIn are replaced by MisuseError, which only release builds throw. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `AsymmetricKeyType`  

AsymmetricKeyType is replaced by AsymmetricAlgorithm types and a key's algorithm property. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `contentsOfDirectory`  

contentsOfDirectory and the Set-returning listDirectory are replaced by listDirectory(path:recursive:), which returns \[FileMetadata\]. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `fork`  

fork(loggedIn:) is replaced by fork(), which is always logged in. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `getServerHostKey`  

getServerHostKey loses shortHandForm and HostKeyAcceptance.shortHandAcceptedKeys is removed. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/aecc12bce78257e9ede0e8cb8f30f2c3dc682c95)
- **Removed** `HostKeyAcceptance.shortHandAcceptedKeys`  

HostKeyAcceptance.shortHandAcceptedKeys is replaced by .publicKeys. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `initAndLogin`  

initAndLogin and login(timeOut:) are removed; the initializer now logs in. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/288ad327a1e7aac8f36a27fe8c84f13f62afd242)
- **Removed** `isValid_`  

isValid\_ and isValidForSSH\_ checks on key text are replaced by PrivateKey, PublicKey and validForSSHAuth. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `KeyValidation`  

The KeyValidation protocol and its isValid and isValidForSSH checks, privateKeyType/publicKeyType, and password: variants are removed; use validForSSHAuth. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/edf8adac063878d1418dc7ee1a964958fd9762de)
- **Removed** `login`  

login(timeOut:) is removed; the initializer now logs in. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/288ad327a1e7aac8f36a27fe8c84f13f62afd242)
- **Removed** `multiDownload`  

multiDownload is replaced by SFTPSwarm; callers must switch to a swarm. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `multiTune`  

multiTune is replaced by SFTPSwarm; callers must switch to a swarm. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `multiUpload`  

multiUpload, multiDownload and multiTune are replaced by SFTPSwarm; callers must switch to a swarm. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `NotLoggedIn`  

NotLoggedIn is replaced by MisuseError, which only release builds throw. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `OpenSSHKeyPair`  

OpenSSHKeyPair is removed; use AsymmetricCryptography.EdDSA.Ed25519. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `PrivateKeyFile`  

PrivateKeyFile is removed; use PrivateKey with .privateKey(\_:) or .privateKeys(\_:). [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `PrivateKeySet`  

Old private key types and cases are removed; use PrivateKey with .privateKey(\_:) or .privateKeys(\_:). [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `PrivateKeyString`  

PrivateKeyString is removed; use PrivateKey with .privateKey(\_:) or .privateKeys(\_:). [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `ProgrammingErrorHandler`  

ProgrammingError, ProgrammingErrorHandler and programmingErrorHandler are replaced by DeinitError, DeinitErrorHandler and deinitErrorHandler. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/081396afa7045de3e6be7ff170d963c0e88145f4)
- **Removed** `ReferenceCache.close`  

ReferenceCache.close() is removed; release the cache or call removeAll(). [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `SFTPClient.init`  

The logger and trapOnDeInitWithoutClose parameters are gone; pass deinitErrorHandler instead. [github.com](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Removed** `SFTPClient.initAndLogin`  

Call the async throwing SFTPClient initializer with the same arguments instead of initAndLogin. [github.com](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Removed** `SFTPClient.login`  

Login happens inside the initializer, so call it there with loginTimeOut. [github.com](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Removed** `SFTPClientInvalidConfig.authenticationFailed`  

SFTPClientInvalidConfig.authenticationFailed(\_:) is removed; catch UserAuthenticationError instead. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `SFTPClientInvalidConfig.invalidTimeOutValue`  

invalid timeout and keepalive errors are removed; those values now fail a precondition. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/081396afa7045de3e6be7ff170d963c0e88145f4)
- **Removed** `String.isValid_ShortHandHostKey`  

String.isValid_ShortHandHostKey is removed; use isValid_HostKey. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/aecc12bce78257e9ede0e8cb8f30f2c3dc682c95)
- **Removed** `SwiftSFTP_Curve25519`  

SwiftSFTP_Curve25519 and OpenSSHKeyPair are removed; use AsymmetricCryptography.EdDSA.Ed25519. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Removed** `TraceSetToLogger`  

TraceSetToLogger is replaced by TraceSetHandler and Trace. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Renamed** `AsymmetricCryptographyError.keyTypeMismatch`  

AsymmetricCryptographyError.keyTypeMismatch becomes algorithmMismatch. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/195eb3b836191fdffd2e2a9cd37f8db8332eded4)
- **Renamed** `AsymmetricKeyType`  

Keys use an algorithm property of type any AsymmetricAlgorithm.Type in place of type. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/195eb3b836191fdffd2e2a9cd37f8db8332eded4)
- **Renamed** `contentsOfDirectory`  

contentsOfDirectory is renamed to listDirectory(path:recursive:), which returns \[FileMetadata\]. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Renamed** `HostKeyAcceptance.loadFromFile`  

loadFromFile and loadFromFileString are renamed loadKnownHostsFile and loadKnownHostsString. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Renamed** `HostKeyAcceptance.loadFromFileString`  

loadFromFileString is renamed loadKnownHostsString. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Renamed** `SFTPClient.contentsOfDirectory`  

Call listDirectory(path:recursive:), which returns an array of FileMetadata. [github.com](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Behavior changed**  

Minimum platforms rise to macOS 12, iOS 15, tvOS 15, watchOS 9 and Mac Catalyst 15. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed**  

SwiftSFTP logs nothing; logger and trapOnDeInitWithoutClose are replaced by deinitErrorHandler. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed**  

A server rejecting credentials now throws UserAuthenticationError. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed**  

Users must depend on PathWorks 2.1.0 or later. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **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](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **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](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Behavior changed** `PrivateKey`  

Errors in a key such as a missing file or wrong passphrase now throw where the key is created. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed** `read`  

read() without an argument reads readAhead (2 MiB by default) instead of 32 KiB. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed** `SFTPClient`  

Objects released without close() close themselves; errors go to deinitErrorHandler and close() is optional. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed** `SFTPClient.init`  

The first parameter of SFTPClient.init and preflightConfigurationCheck is unlabeled. [github.com](https://github.com/RuiNelson/SwiftSFTP/commit/17c9381659ed362cc9cd54a65c6a24fa6d8f3bb4)
- **Behavior changed** `SFTPClientProtocol`  

Conformers must make the initializer async throws, add new requirements and replace login, fork and contentsOfDirectory. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed** `SFTPFile.read`  

file.read() reads the client's readAhead, 2 MiB by default, instead of a fixed 32 KiB. [github.com](https://github.com/RuiNelson/SwiftSFTP/blob/v4.0.0/Documentation/MigrationGuide-3.24-To-4.0.md)
- **Behavior changed** `SFTPSwarm`  

The next striped transfer deletes partial files from 3.x multi-connection transfers and starts from zero. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)
- **Behavior changed** `TCPLocation`  

TCPLocation.noDelay defaults to true, turning on TCP_NODELAY; pass noDelay: false to keep Nagle's algorithm. [github.com](https://github.com/RuiNelson/SwiftSFTP/releases/tag/v4.0.0)

And 14 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
