Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: x448/cbor

Tags

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README to begin workaround for go.dev bugs

Replaced a handful of markdown tables with SVG: "cbor speed/memory comparison", "cbor security comparison", "cbor features" and one more.

There's a lot of markdown tables remaining (encoding/decoding option tables, etc.) that are being rendered incorrectly on go.dev.

Mentioned the bug fix for v2.2, and CBOR  decoder settings: `MaxNestedLevels`, `MaxArrayElements`, `MaxMapPairs`, and `IndefLength`.

go.dev bugs filed about this are:
golang/go#37284
golang/go#37394

Closes fxamacker#175

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md for v2.1 (fxamacker#158)

* Add CBOR tags example, "Encoding and Decoding CWT (CBOR Web Token) with CBOR Tags".
* v2.1 passed 361+ million execs in coverage-guided fuzzing on Feb 17, 2020.
* Package cbor is a fast & safe CBOR encoder & decoder (RFC 7049) with a 
standard API + toarray & keyasint struct tags, CBOR tags, float64->32->16, 
CTAP2 & Canonical CBOR, duplicate map key options, and is customizable via 
simple API.

v1.5.1

Toggle v1.5.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Backport fix v2.0 -> v1.5 sanitize NaN/Infinity time

Decode CBOR NaN and Infinity time values to Go zero time.

Also show reminder in doc.go that v2 is available and provide link.

Closed: fxamacker#141

v2.0.1

Toggle v2.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix API bug introduced in v2.0.0 (fxamacker#138)

Instead of adding (Un)MarshalerWithMode interfaces, the
existing interfaces (Un)Marshaler was replaced by
adding an extra parameter.

Fix this by restoring (Un)Marshaler to the original API.

See issue fxamacker#137 for details.

v2.0.0

Toggle v2.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add v2.0 API, faster CBOR, fewer allocs

Implement v2.0 API for easier CBOR encoding/decoding.  See issue fxamacker#117 for summary.

Replaced EncOptions.TimeRFC3339 bool with TimeMode values:
* TimeUnix                   // secs, converted to smallest CBOR integer that fits
* TimeUnixMicro           // μs, CBOR float with subsecs in fractional part
* TimeUnixDynamic      // secs or μs, either int or float depending on empty subsecs
* TimeRFC3339            // secs, string
* TimeRFC3339Nano    // ns, string with trailing zeros removed

Decode CBOR time NaN and Infinity values to Go's "zero time" value.  
This is how CBOR Null values are decoded to time.Time.

Removed deprecated options (Canonical & CTAP2Canoical) in EncOptions.

Removed Valid() function.

Improved performance and memory alloc by 
* using pointer receivers for types implementing sort.Interface and others.
* storing pointer in sync.Pool.
* storing pointer as map value in sync.Map.

Used roughly 20 linters and resolved many reported issues.

Switched to GitHub Actions for CI to lint, test, and check code coverage.

Extensive improvements to README.md.  

Thanks @x448 for API design ideas, travis & github ci configs, filing issues, 
and improving README.md.

Closes: fxamacker#107
Closes: fxamacker#119
Closes: fxamacker#120
Closes: fxamacker#123 
Closes: fxamacker#124 
Closes: fxamacker#127

v1.5.0

Toggle v1.5.0's commit message
Update BENCHMARKS.md and README.md

v1.4.0

Toggle v1.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md

Update for v1.4 release, including new CBOR comparison charts.

v1.3.4

Toggle v1.3.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update CBOR_GOLANG.md

Replaced Table of Contents.

v1.3.3

Toggle v1.3.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md

v1.3.2

Toggle v1.3.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md