Releases: outfoxx/PotentCodables
BugFix - Update to Swift 5.5
- Adds missing subscript conformance for AnyString
BugFix - JSON Decoding
Fixes an issue decoding JSON fragment values (e.g. string, number, etc.) as the root value.
Raw Value Access & Combine Support
Raw Value Access
Access to the underlying tree values, and the unwrapped Swift counterpart, is now available when decoding from a decoder.singleValueContainer()
. See the README section "Raw Value Container".
Combine
Support for Combine's TopLevelEncoder
and TopLevelDecoder
has been added to each encoder and decoder
Registered Types for Polymorphic Decoding
Ref
& EmbeddedRef
now require using registered types for decoding to alleviate any security vulnerabilities created by instantiating any available types. Alternatively, custom type lookup can be implemented for app/framework specific needs. See code documentation for Ref
or EmbeddedRef
for details.
Remove Float80
Float80
is not available on all platforms and causes errors on device builds for iOS/tvOS/watchOS; so it has been replaced with Double
.
Revert 11.2 workarounds
Reverts workarounds for Xcode 11.2 now that 11.3 is available and is confirmed to fix the previous linking issues. Also, updates dependencies for Swift 5.
Xcode 11.2 workarounds
Works around mystery failures when using Xcode 11.2. The errors are related to using fileprivate
in specific classes so the workaround (using internal
or public
) is not detrimental to general library usage.