Skip to content

Commit

Permalink
1.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Apr 10, 2024
1 parent c9614e5 commit 3afb298
Show file tree
Hide file tree
Showing 87 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion Example/Search/Search/Models/Forecast.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import SwiftAPIClient

struct Forecast: Decodable, Equatable, Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Example/Search/Search/Models/GeocodingSearch.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import SwiftAPIClient

struct GeocodingSearch: Decodable, Equatable, Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Example/Search/Search/WeatherClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import SwiftAPIClient

@API
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.6.7")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.6.8")
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/APIClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
@_exported import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/APIClientConfigs.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import Logging
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPDownloadClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPPublisher.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if canImport(Combine)
import Combine
@preconcurrency import Foundation
import Foundation

public extension APIClientCaller where Result == AnyPublisher<Value, Error>, Response == Data {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPUploadClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/NetworkClientCaller.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import Logging
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/URLSession+Client.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import Logging
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Extensions/Async++.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public struct AsyncSequenceOfElements<S: Sequence>: AsyncSequence {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Extensions/URLResponse++.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Macros.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if swift(>=5.9)
@preconcurrency import Foundation
import Foundation
import HTTPTypes

/// A macro that generates an HTTP call to the API client.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/AuthModifier.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/CodersModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension APIClient.Configs {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/FileIDLine.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension APIClient {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public protocol HTTPClientMiddleware {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/LoggingModifier.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import Logging

public extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/MockResponses.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RedirectModifier.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension APIClient.Configs {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RequestCompression.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if canImport(zlib)
@preconcurrency import Foundation
import Foundation
import zlib
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RequestModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RequestValidator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RetryModifier.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension APIClient {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

// MARK: - Timeout modifiers

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A service for caching and retrieving secure data.
public protocol SecureCacheService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension APIClient {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/URLSessionModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if canImport(SystemConfiguration)
@preconcurrency import Foundation
import Foundation

public extension APIClient {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/RequestBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import HTTPTypes

public protocol RequestBuilder<Request, Configs> {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/AsyncValue.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@preconcurrency import Foundation
import Foundation

public typealias AsyncThrowingValue<Res> = () async throws -> Res
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/ContentSerializer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A generic struct for serializing content into data and associated content type.
public struct ContentSerializer<T> {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/ContentType.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// Represents a MIME content type with support for type, subtype, and parameters.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/Errors.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

enum Errors: LocalizedError, CustomStringConvertible {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/HTTPFields.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/LoggingComponent.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/Mockable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public protocol Mockable {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/RedirectBehaviour.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/Serializer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A generic struct for serializing network responses into specified types.
@dynamicMemberLookup
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/TimeoutError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// Performs an operation with a timeout.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/AnyAsyncSequence.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A type-erasing wrapper for any `AsyncSequence`.
public struct AnyAsyncSequence<Element>: AsyncSequence {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/AnyEncodable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

struct AnyEncodable: Encodable {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Coders/ContentEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A protocol defining an encoder that serializes data into a specific content type.
public protocol ContentEncoder {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Coders/DataDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A protocol defining a decoder for deserializing `Data` into decodable types.
public protocol DataDecoder {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Coders/ErrorDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// A type that represents an error decoding from a response body.
public struct ErrorDecoder {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Coders/FormURLEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension ContentEncoder where Self == FormURLEncoder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension ContentEncoder where Self == JSONEncoder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// RFC 7528 multipart/form-data
/// 4. Definition of multipart/form-data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public extension ContentEncoder where Self == MultipartFormDataEncoder {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Coders/QueryEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

/// Protocol defining an encoder that serializes data into a query parameters array.
public protocol QueryEncoder {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

struct PlainCodingKey: CodingKey {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

enum QueryValue {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Coders/URLQuery/Ref.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

@propertyWrapper
struct Ref<Value> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

public struct URLQueryEncoder: QueryEncoder {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/ConsoleStyle.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import Logging

struct ConsoleStyle {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Error+String.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation

extension Error {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/NoneLogger.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@preconcurrency import Foundation
import Foundation
import Logging

public extension Logger {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Utils/Publisher+Create.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if canImport(Combine)
import Combine
@preconcurrency import Foundation
import Foundation

extension Publishers {

Expand Down
Loading

0 comments on commit 3afb298

Please sign in to comment.