Moya breaking changes
Updated December 4, 2026
On this page
Latest version 15.0.0, released September 4, 2021. Source repository
- From 14.0.0 to 15.0.0: 7 breaking changes in 2 versions.
- From 1.0.0 to 15.0.0: 155 breaking changes in 25 versions.
Moya 15.0.0 breaking changes
- Behavior changed
Moya now depends on the latest versions of RxSwift, ReactiveSwift and Alamofire, which may pull in their breaking changes. github.com - Behavior changed
Moya's Swift minimum version is now Swift 5.2, so older Swift toolchains are no longer supported. github.com - Behavior changed
AccessTokenPlugin
The closure that determines the token now takes a TargetType instead of an AuthorizationType, so existing closures must be updated. github.com - Behavior changed
Endpoint
Endpoint equality and hashing were reimplemented, so code relying on the old comparison results may behave differently. github.com - Behavior changed
MultiPartFormData
MultiPartFormData gained Hashable conformance, which can affect code that relies on its prior conformances. github.com - Default changed
Target.sampleData
sampleData is automatically implemented as Data() by a default protocol extension, so custom implementations are no longer required. github.com
Moya 15.0.0-alpha.1 breaking changes
- Behavior changed
Moya's minimum Swift version is now Swift 5.1, so older Swift toolchains are no longer supported. github.com
Moya 14.0.0 breaking changes
- Removed
AuthorizationType.none
AuthorizationType.none is gone; return nil instead to skip the access token plugin for an endpoint. github.com - Removed
NetworkLoggerPlugin.Configuration.LogOptions
The verbose and cURL flags are replaced by the LogOptions option set; use .verbose and formatRequestAscURL. github.com - Signature changed
AccessTokenAuthorizable.authorizationType
AccessTokenAuthorizable.authorizationType is now AuthorizationType?; implementers must update the type. github.com - Signature changed
NetworkLoggerPlugin.Configuration.Formatter
The data formatters moved into Configuration.Formatter as requestData and responseData and now return String instead of Data. github.com - Signature changed
NetworkLoggerPlugin.output
The output closure no longer receives separator and terminator, and items are String instead of Any. github.com
Moya 14.0.0-beta.1 breaking changes
- Removed
NetworkLoggerPlugin
NetworkLoggerPlugin is rewritten and must be created with a Configuration instance; the verbose and cURL flags are replaced by LogOptions. github.com - Behavior changed
Alamofire
Moya now requires Alamofire 5.0.0-rc.1 or later. github.com - Behavior changed
NetworkLoggerPlugin
NetworkLoggerPlugin now logs error responses when verbose or errorResponseBody is set, changing log output. github.com - Behavior changed
ReactiveSwift
Carthage users are affected by the ReactiveSwift bump to 6.1.0. github.com
Moya 14.0.0-alpha.2 breaking changes
- Removed
Result
Moya no longer depends on the Result library; use Swift 5's built-in Result type instead. github.com - Behavior changed
Minimum targets are now iOS 10.0, tvOS 10.0, macOS 10.12 and watchOS 3.0; apps targeting older OS versions must raise their targets. github.com - Behavior changed
Alamofire
Moya now requires Alamofire 5.0.0-beta.7 or later. github.com - Signature changed
NetworkLoggerPlugin
The NetworkLoggerPlugin output gains a TargetType parameter; custom output closures must accept it. github.com
Moya 14.0.0-alpha.1 breaking changes
- Behavior changed
ReactiveSwift
The minimum supported ReactiveSwift version is now 6.0; projects on older versions must upgrade. github.com - Behavior changed
RxSwift
The minimum supported RxSwift version is now 5.0; projects on older RxSwift must upgrade. github.com
Older versions
20 older versions, each with its first changes. Sign up to see every change
Show 20 older versions
Moya 13.0.0 breaking changes
- Removed
TargetType.validate
The validate property was removed from TargetType; use validationType instead. github.com - Behavior changed
Progress stays at 0.0 until completion when the Content-Length header is missing or invalid, and completed is true only after the response is serialized. github.com
And 4 more in this version.
Moya 12.0.0 breaking changes
- Behavior changed
AuthorizationType
AuthorizationType gains a .custom(String) case, so code that switches over it exhaustively must handle the new case. github.com - Configuration changed
Projects must use ReactiveSwift 4.0 or later. github.com
And 4 more in this version.
Moya 11.0.0 breaking changes
- Removed
Endpoint
Endpoint is no longer generic, so code that specializes Endpoint with a type parameter must be updated. github.com - Behavior changed
TargetType.validate
The validate property of TargetType now uses the new ValidationType enum to represent valid status codes. Update existing validate implementations to return ValidationType. github.com
And 1 more in this version.
Moya 11.0.0-beta.2 breaking changes
- Removed
Endpoint
Endpoint is no longer generic, so code that specializes Endpoint with a type parameter must be updated. github.com
Moya 11.0.0-beta.1 breaking changes
- Behavior changed
TargetType.validate
The validate property of TargetType now uses the new ValidationType enum to represent valid status codes. Update existing validate implementations to return ValidationType. github.com - Signature changed
Task
Adding a case to Task breaks exhaustive switches over Task that do not handle the new case. github.com
Moya 10.0.0 breaking changes
- Removed
ReactiveSwiftMoyaProvider
ReactiveSwiftMoyaProvider is gone and code using it must move to other provider APIs. github.com - Removed
RxMoyaProvider
RxMoyaProvider is gone and code using it must move to other provider APIs. github.com
And 5 more in this version.
Moya 9.0.0 breaking changes
- Removed
AccessTokenAuthorizable.shouldAuthorize
Use authorizationType of type AuthorizationType instead of the Bool shouldAuthorize. github.com - Removed
AccessTokenPlugin.token
Use tokenClosure instead of token. github.com
And 27 more in this version.
Moya 8.0.0 breaking changes
- Removed
Moya.Error.data
The unused data property of Moya.Error is removed. github.com - Renamed
Moya.Error
Moya.Error is renamed to MoyaError. github.com
And 2 more in this version.
Moya 8.0.0-beta.6 breaking changes
- Renamed
filterStatusCode
filterStatusCode is renamed to filter(statusCode:). github.com - Renamed
filterStatusCodes
filterStatusCodes is renamed to filter(statusCodes:). github.com
And 6 more in this version.
Moya 8.0.0-beta.5 breaking changes
- Renamed
Cancellable.cancelled
The cancelled property of the Cancellable protocol is renamed to isCancelled. github.com - Renamed
Endpoint.URL
The URL property of Endpoint is renamed to url. github.com
And 1 more in this version.
Moya 8.0.0-beta.4 breaking changes
- Renamed
Some class functions that mimic enum cases are renamed to lowercase names, so callers must update them. github.com
Moya 8.0.0-beta.3 breaking changes
- Renamed
endpointByAdding
Calls must switch to adding(parameters:httpHeaderFields:parameterEncoding). github.com - Renamed
endpointByAddingHTTPHeaders
Calls to endpointByAddingHTTPHeaders must switch to adding(newHttpHeaderFields:). github.com
And 3 more in this version.
Moya 8.0.0-beta.2 breaking changes
- Configuration changed
Moya moves its reactive integration from ReactiveCocoa to ReactiveSwift, so projects must switch their dependency. github.com
Moya 8.0.0-beta.1 breaking changes
- Removed
The release drops Swift 2.x support in favor of Swift 3. Projects still on Swift 2.x must upgrade their toolchain. github.com - Removed
TargetType.multipartBody
multipartBody is removed from the TargetType protocol; use the new task property instead. github.com
And 3 more in this version.
Moya 7.0.0 breaking changes
- Removed
RACSignal
RACSignal support is removed in 7.0.0; code relying on it must move to another reactive approach. github.com - Behavior changed
The completion closure now fires even when the cancellable token is cancelled, so code assuming no callback on cancel must change. github.com
And 3 more in this version.
Moya 6.0.0 breaking changes
- Default changed
provider
The default manager parameter for provider initialization is now a built-in DefaultAlamofireManager instead of the shared Alamofire singleton. Code that relied on the old shared manager should pass it explicitly. github.com
Moya 5.0.0 breaking changes
- Removed
Moya.Method
The conversion from Moya.Method to Alamofire.Method is removed because it was unused. github.com - Renamed
MoyaRequest
The MoyaRequest protocol is renamed to RequestType; update references to use the new name. github.com
And 10 more in this version.
Moya 3.0.0 breaking changes
- Removed
Inflight request tracking is removed for the ReactiveCocoa and RxSwift providers. github.com - Removed
EndpointSampleResponse.Closure
The Closure case is removed from EndpointSampleResponse. github.com
And 25 more in this version.
Moya 2.0.0 breaking changes
- Removed
MoyaPath
The MoyaPath and MoyaTarget protocols are combined into one. Code that refers to MoyaPath must switch to MoyaTarget. github.com - Removed
stubResponses
The stubResponses initializer parameter is removed and replaced by stubbing behavior such as .NoStubbing, set through class methods on MoyaProvider. github.com
And 5 more in this version.
Moya 1.0.0 breaking changes
- Removed
request
The method argument was removed from request() functions. Set the HTTP method on the target instead. github.com - Signature changed
EndpointSampleResponse
Sample response closures must now return NSData rather than NSData instances. Update callers to pass closures. github.com
And 1 more in this version.
Related packages
- github.com/moya/moya on Swift Package Index
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.