mirror of
https://github.com/samsonjs/Osiris.git
synced 2026-03-29 09:35:46 +00:00
1.7 KiB
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:)andHTTPRequest.putJSON(_:body:)for Codable requests - Response decoding methods
HTTPResponse.decode(_:using:)andHTTPResponse.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:)onHTTPRequest - Comprehensive test coverage
Enhanced
- Public API - All types and methods now have proper public access modifiers
- Error handling - More specific error cases with
LocalizedErrorconformance - Debugging support - All types now conform to
CustomStringConvertiblewith 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