Releases: RakuyoKit/RaAPIWrapper
Releases · RakuyoKit/RaAPIWrapper
1.2.4
Added
- Add toolchains.
- Add
RakuyoKit/swfitdependency. - Add
Rakefile - Add
pre-commitwith mise - Add Github Action
- Add
Changed
- Remove
swiftLanguageVersionsconfig 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.swiftsupports 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
APIParametrizablenow renamedAPIParameter.APIParameterConvertibleis no longer available to users, it is now an internal protocol of the module.APIRequestInfonow needs to be initialized using APIParameterBuilder and specific parameters. See the init method for details.APIParameterBuilderhas changed from ablockto astructand 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,CharacterandUIntobjects that were converted toAnyObjectcan now be correctly converted toAnyAPIParametertypes.- Container types (
ArrayandDictionary) will be checked for the number of elements when converting internal elements toAnyAPIParametertypes. 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