Osiris/CHANGELOG.md

1.7 KiB

Changelog

2.1.0 - Unreleased

Added

  • Codable support for JSON - First-class support for encoding and decoding Codable types
  • New convenience methods HTTPRequest.postJSON(_:body:) and HTTPRequest.putJSON(_:body:) for Codable requests
  • Response decoding methods HTTPResponse.decode(_:using:) and HTTPResponse.tryDecode(_:using:) with JSONDecoder support
  • Codable body property on HTTPRequest that takes precedence over parameters dictionary

Enhanced

  • RequestBuilder now supports JSONEncoder for Codable bodies alongside existing JSONSerialization
  • Comprehensive test coverage for all Codable functionality with 14 new tests

2.0.0 - 2025-06-15

Added

  • GET/DELETE query parameter support - Parameters are now automatically encoded as query strings for GET and DELETE requests
  • Enhanced error types with localized descriptions and failure reasons
  • Header convenience method addHeader(name:value:) on HTTPRequest
  • Comprehensive test coverage

Enhanced

  • Public API - All types and methods now have proper public access modifiers
  • Error handling - More specific error cases with LocalizedError conformance
  • Debugging support - All types now conform to CustomStringConvertible with idiomatic descriptions for better OSLog output

1.0.0 - 2017-07-28

Added

  • Initial release with multipart form encoding
  • HTTPRequest and HTTPResponse abstractions
  • RequestBuilder for URLRequest conversion
  • FormEncoder for URL-encoded forms