Releases: RakuyoKit/RaAPIWrapper
Releases · RakuyoKit/RaAPIWrapper
1.2.4
Added
- Add toolchains.
- Add
RakuyoKit/swfit
dependency. - Add
Rakefile
- Add
pre-commit
with mise - Add Github Action
- Add
Changed
- Remove
swiftLanguageVersions
config inPackage.swift
- Format code and update copyright
Fixed
- Fix the problem of podspec search failure
- fix iOS v11 deprecation for SPM with tools version >=5.9. Update Alamofire to 5.9.0: Alamofire/Alamofire@7b38612
Full Changelog: 1.2.2...1.2.4
1.2.2 - PrivacyInfo
Added
- Add PrivacyInfo.xcprivacy.
Changed
- [Break] Minimum version supported by the promotion project: iOS 12、macOS 10.14、watchOS 5.0、tvOS 12 or later.
- Support visionOS.
Fixed
- Fix SPM dependency error.
Package.swift
supports wider Swift versions.
1.1.1 - Repository Migration
Break Change
- The git repository was migrated. Resulting in a url change.
1.1.0 - Simpler Parameters
We've made significant changes in this update, and there are some breaking changes that you'll need to adapt, but it's worth it!
Break Change
APIParametrizable
now renamedAPIParameter
.APIParameterConvertible
is no longer available to users, it is now an internal protocol of the module.APIRequestInfo
now needs to be initialized using APIParameterBuilder and specific parameters. See the init method for details.APIParameterBuilder
has changed from ablock
to astruct
and now you need to define your api using the following code:
@POST("/api/path")
static var someAPI: APIParameterBuilder<Arg>? = .init { $0 } // Use `.init { $0 }` instead of `{ $0 }`
The benefit of this change is that if you choose to use a Model directly as an api parameter instead of a dictionary or array, then Xcode can now check that the Model follows the Hashable & Encodable
protocols, which it could not do before.
Add
Date
,Float
,Character
andUInt
objects that were converted toAnyObject
can now be correctly converted toAnyAPIParameter
types.- Container types (
Array
andDictionary
) will be checked for the number of elements when converting internal elements toAnyAPIParameter
types. See: check for more details
1.0.2 - Minor changes
This update mainly focuses on improving some code details and does not bring any features or any need for adaptations