PotentCodables

3.2.0

🧪 PotentCodables - A potent set of implementations and extensions to the Swift Codable system
outfoxx/PotentCodables

What's New

🚀 v3.2.0

2023-09-27T22:43:14Z

What's Changed

  • Add TopLevelEncoder & TopLevelDecoder reusing Combine’s if available by @kdubb in #56
  • Require transformer Source types to be Encodable or Decodable by @kdubb in #58
  • Support transformers in TopLevelEncoder & TopLevelDecoder by @kdubb in #57
  • Add decodeContents(using:) and use generic sequence in encode(:,using:) for UnkeyedDecodingContainer by @kdubb in #59
  • Add ValueCodingTransformerProviding that allows encoding/decoding without implmenting Codable by @kdubb in #60
  • Remove mutating from extenions on SingleValueDecodingContainer by @kdubb in #61

Full Changelog: 3.1.1...3.2.0

🧪 PotentCodables

GitHub Workflow Status Coverage

A potent set of implementations and extension to the Swift Codable system

Why?

The framework aims to solve three major pain points experienced with Swift's Codable system:

  • Allow decoding and/or encoding values of unknown structure (e.g. any encoded value)
  • Support polymorphic type encoding/decoding while still allowing Swift to implement Codable
  • Reduce the complexity and amount of code required to implement and test new serialization formats
  • Provide a library of fully featured implementations of popular serialization formats

Integration

Swift Package Manager

PotentCodables currently supports Swift Package Manager for project integration. Add a package dependency similar to the following:

  .package(url: "https://github.com/outfoxx/PotentCodables.git", from: "1.0.0")

Documentation

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

Last updated: Tue Mar 19 2024 21:54:13 GMT-0900 (Hawaii-Aleutian Daylight Time)