Skip to content

MicroClient 0.0.27

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 12:05
· 8 commits to main since this release
794c206

📦 MicroClient 0.0.27

MicroClient is a lightweight, zero-dependency Swift networking library designed for type-safe HTTP requests using modern Swift concurrency.

📋 Requirements

  • macOS: 12.0+
  • iOS: 15.0+
  • Swift: 6.0+

📚 Installation

Swift Package Manager

Add MicroClient to your Package.swift:

dependencies: [
    .package(url: "https://github.com/otaviocc/MicroClient.git", from: "0.0.27")
]

Or add it via Xcode:

  1. File → Add Package Dependencies
  2. Enter: https://github.com/otaviocc/MicroClient.git
  3. Select version: 0.0.27

🚀 Quick Start

import MicroClient

// Configure client
let config = NetworkConfiguration(baseURL: URL(string: "https://api.example.com")!)
let client = NetworkClient(configuration: config)

// Define request/response types
struct User: Codable {
    let id: Int
    let name: String
}

// Make type-safe requests
let request = NetworkRequest<VoidRequest, User>(
    path: "/users/1",
    method: .get
)

let response = try await client.run(request)
print(response.data.name)

📊 Build Information

  • Build Date: $BUILD_DATE
  • Commit: 794c206
  • Swift Tools Version: 6.0

🔍 Features

  • Type-safe: Generic request/response models with compile-time safety
  • Modern Swift: Built with async/await and Swift concurrency
  • Zero dependencies: Pure Swift implementation
  • Flexible: Configurable encoders, decoders, and interceptors
  • Combine support: Publisher for client status monitoring
  • Comprehensive testing: Extensive test coverage with Swift Testing

What's Changed

Full Changelog: 0.0.26...0.0.27