Skip to content

Releases: ipregistry/ipregistry-swift

Release list

1.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 19:17

Added

  • Initial release of the official Ipregistry Swift client library.
  • Single IP lookup (lookup), origin lookup (lookupOrigin), and batch lookup (lookupBatch) with transparent
    chunking of arrays larger than the API limit, dispatched with bounded concurrency.
  • User-Agent parsing (parseUserAgents) and the UserAgent.isBot helper.
  • Typed Network.IPAddress lookup overloads on Apple platforms.
  • Automatic retries with exponential backoff on transient network errors and 5xx responses, with opt-in retry on 429
    honoring Retry-After.
  • Opt-in caching through the IpregistryCache protocol and the built-in InMemoryCache actor (LRU with TTL).
  • Pluggable HTTPTransport protocol with a URLSession-backed default, enabling offline testing and custom HTTP
    stacks.
  • Typed errors: APIError (with typed, forward-compatible ErrorCode) and ClientError.
  • Swift 6 language mode, Sendable throughout, zero external dependencies. Supports macOS 12+, iOS 15+, tvOS 15+,
    watchOS 8+, visionOS 1+, and Linux.