Releases: leoho0722/SwiftHelpers
Releases · leoho0722/SwiftHelpers
SwiftHelpers v0.1.1
SwiftHelpers v0.1.0
New Features
HTTP
Add HTTP.ContentType.formData
to support file upload.
Add HTTP.ContentType.octetStream
to support file download.
Rename
HTTP
HTTP.HTTPContentType
rename to HTTP.ContentType
HTTP.HTTPHeaderFields
rename to HTTP.HeaderFields
HTTP.HTTPMethod
rename to HTTP.Method
HTTP.HTTPStatus
rename to HTTP.StatusCode
JSON
JSONEncodeError.dictToDataFailed
rename to JSONEncodeError.encodingToJSONFailed
Remove
Remove all deprecated initializer、methods
SwiftHelpers v0.0.18
Update Package.swift, add resources PrivacyInfo.xcprivacy
SwiftHelpers v0.0.17
Rewrite Base64 with protocols, and update coding style
This major update
- Rewrite Base64 with protocols and deprecated some functions
Base64Encodable
public protocol Base64Encodable {
static func base64EncodedString(from original: String) -> String
static func base64URLEncodedString(from original: String) -> String
static func base64RawEncodedString(from original: String) -> String
static func base64URLRawEncodedString(from original: String) -> String
}
Base64Decodable
public protocol Base64Decodable {
static func base64DecodedString(from encodedString: String) throws -> String
static func base64URLDecodedString(from encodedString: String) throws -> String
static func base64RawDecodedString(from encodedString: String) throws -> String
static func base64URLRawDecodedString(from encodedString: String) throws -> String
}
Base64Convertable
public protocol Base64Convertable {
static func convert(with str: String, from old: Base64.Encoding, to new: Base64.Encoding) -> String
}
This major deprecated
Base64
static func base64EncodedString(from str: String, operation: Base64.Encoding) -> String
static func base64DecodedString(from str: String, operation: Base64.Encoding) throws -> String
This major unavailable
```swift
static func base64DecodedData(from str: String, operation: Base64.Encoding) throws -> Data