Skip to content

Releases: RakuyoKit/RaAPIWrapper

1.2.4

25 Apr 03:55
Compare
Choose a tag to compare

Added

  • Add toolchains.
    • Add RakuyoKit/swfit dependency.
    • Add Rakefile
    • Add pre-commit with mise
    • Add Github Action

Changed

  • Remove swiftLanguageVersions config in Package.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

23 Jan 08:14
Compare
Choose a tag to compare

Added

  • Add PrivacyInfo.xcprivacy.

Changed

  • [Break] Minimum version supported by the promotion project: iOS 12macOS 10.14watchOS 5.0tvOS 12 or later.
  • Support visionOS.

Fixed

  • Fix SPM dependency error.
  • Package.swift supports wider Swift versions.

1.1.1 - Repository Migration

13 Mar 05:04
Compare
Choose a tag to compare

Break Change

  • The git repository was migrated. Resulting in a url change.

1.1.0 - Simpler Parameters

14 Jan 07:35
Compare
Choose a tag to compare

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 renamed APIParameter.
  • 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 a block to a struct 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 and UInt objects that were converted to AnyObject can now be correctly converted to AnyAPIParameter types.
  • Container types (Array and Dictionary) will be checked for the number of elements when converting internal elements to AnyAPIParameter types. See: check for more details

1.0.2 - Minor changes

14 Jan 07:16
Compare
Choose a tag to compare

This update mainly focuses on improving some code details and does not bring any features or any need for adaptations

1.0.1 - Official Release

21 Dec 02:32
Compare
Choose a tag to compare