v2.9.0 adds new features, refactors tests, and improves docs. New features improve interoperability/transcoding between CBOR & JSON.
v2.9.0 passed fuzz tests and is production quality. However, the new TextUnmarshaler feature will continue being fuzz tested a bit longer due to recent changes. The recent changes are limited and don't affect other parts of the codec that passed ~2 billion execs fuzzing.
What's Changed
- Refactor to use Go standard library functions by @fxamacker in https://github.com/fxamacker/cbor/pull/663
- Improve DupMapKeyError message by @fxamacker in https://github.com/fxamacker/cbor/pull/670
- Add options to support TextMarshaler and TextUnmarshaler by @benluddy in https://github.com/fxamacker/cbor/pull/672
- Add optional support for json.Marshaler and json.Unmarshaler via transcoding by @benluddy in https://github.com/fxamacker/cbor/pull/673
- Refactor tests and update comments by @fxamacker in https://github.com/fxamacker/cbor/pull/678
- Use TextUnmarshaler on byte strings with ByteStringToStringAllowed. by @benluddy in https://github.com/fxamacker/cbor/pull/682
Docs
- README: Document struct field tag "-" by @fxamacker in https://github.com/fxamacker/cbor/pull/653
- Fix IntDecConvertSignedOrBigInt doc comment by @theory in https://github.com/fxamacker/cbor/pull/655
- Update docs for TimeMode, Tag, RawTag, and add example for Embedded JSON Tag for CBOR by @fxamacker in https://github.com/fxamacker/cbor/pull/659
- Update README for Embedded JSON Tag for CBOR (tag 262) by @fxamacker in https://github.com/fxamacker/cbor/pull/662
- Fix typos in some comments by @adeinega in https://github.com/fxamacker/cbor/pull/671
- Update README for v2.9.0 and add Red Hat as a user by @fxamacker in https://github.com/fxamacker/cbor/pull/684
CI
馃攷 Details
- Bump github/codeql-action from 3.28.13 to 3.28.15 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/651
- Bump github/codeql-action from 3.28.15 to 3.28.16 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/658
- Bump github/codeql-action from 3.28.16 to 3.28.17 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/660
- Bump actions/setup-go from 5.4.0 to 5.5.0 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/661
- Bump github/codeql-action from 3.28.17 to 3.28.18 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/664
- Bump github/codeql-action from 3.28.18 to 3.28.19 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/667
- Bump github/codeql-action from 3.28.19 to 3.29.0 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/674
- Bump github/codeql-action from 3.29.0 to 3.29.2 by @dependabot[bot] in https://github.com/fxamacker/cbor/pull/680
Special Thanks
Many thanks to @benluddy for adding these new features! :tada:
- Add opt-in support for encoding.TextMarshaler and encoding.TextUnmarshaler to encode and decode from CBOR text string.
- Add opt-in support for json.Marshaler and json.Unmarshaler via user-provided transcoding function.
New Contributors
- @theory made their first contribution in https://github.com/fxamacker/cbor/pull/655
- @adeinega made their first contribution in https://github.com/fxamacker/cbor/pull/671
Full Changelog: https://github.com/fxamacker/cbor/compare/v2.8.0...v2.9.0