Skip to content

Commit

Permalink
Version 3
Browse files Browse the repository at this point in the history
## General
* API normalization
* * JSON & YAML nearly identical
* * CBOR, ASN1 & AnyValue very similar
* Maintains ordering during encoding/decoding
* * When possible
* 95% Test Coverage
* Removal of fatalErrors
* * Except for obvious programming errors
* Universal BigInt & BigUInt Support
* Universal Float16 Support
* * Shimmed only on macOS x86_64
* Reduced leaky non-public API

## ASN.1
Mostly small public API changes but the allowed decoding source types and encoding destination types, as well as the Schema, are more restrictive
* Small fixes for schema processing
* `ASN1` accessors return `PotentASN1` types
* `unwrapped` return Swift values (when possible)
* Schmema descriptions better match ASN.1 notation

## CBOR
Most of the changes relate to having move Float16 to PotentCodables to be shared across targets.
* Uses shared PostentCodablesFloat16 when needed
* Encodes & decodes most known tags

## JSON
Small changes to make the API nearly identical to YAML

## YAML
Small changes to make the API nearly identical to JSON
  • Loading branch information
kdubb committed Feb 6, 2023
1 parent 9b01fda commit 0f69226
Show file tree
Hide file tree
Showing 91 changed files with 23,921 additions and 3,206 deletions.
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let package = Package(
targets: [
.target(
name: "PotentCodables",
dependencies: ["BigInt"]
dependencies: ["BigInt", "Float16"]
),
.target(
name: "PotentJSON",
Expand All @@ -46,7 +46,6 @@ let package = Package(
name: "PotentCBOR",
dependencies: [
"PotentCodables",
"Float16",
.product(name: "Collections", package: "swift-collections")
]
),
Expand Down
Loading

0 comments on commit 0f69226

Please sign in to comment.