build(deps): update module github.com/fxamacker/cbor/v2 to v2.8.0 #400
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.7.0
->v2.8.0
Release Notes
fxamacker/cbor (github.com/fxamacker/cbor/v2)
v2.8.0
Compare Source
v2.8.0 adds support for
omitzero
struct tag option, fixes and deprecates 3 functions, and bumps requirements to go 1.20+.Many thanks to @liggitt for contributing the
omitzero
support!This release fixes 3 functions (when called directly by user apps) to use same error handling on bad input as
cbor.Unmarshal()
:RawTag.UnmarshalCBOR()
(thanks @thomas-fossati for reporting this!)ByteString.UnmarshalCBOR()
SimpleValue.UnmarshalCBOR()
This release also deprecates those 3 functions because they were initially created for internal use. Please use
Unmarshal()
orUnmarshalFirst()
instead.To preserve backward compatibility, the deprecated functions were added to fuzz tests and will not be removed in v2.x.
What's Changed
interface{}
withany
by @fxamacker in https://github.com/fxamacker/cbor/pull/627reflect.Ptr
withreflect.Pointer
by @fxamacker in https://github.com/fxamacker/cbor/pull/628reflect.PtrTo
withreflect.PointerTo
by @fxamacker in https://github.com/fxamacker/cbor/pull/629RawTag.UnmarshalCBOR()
, etc. to matchcbor.Unmarshal()
by @fxamacker in https://github.com/fxamacker/cbor/pull/645UnmarshalCBOR()
forByteString
,RawTag
,SimpleValue
by @fxamacker in https://github.com/fxamacker/cbor/pull/647Other Changes
🔍 Details
New Contributors
Full Changelog: fxamacker/cbor@v2.7.0...v2.8.0
v2.7.1
Compare Source
v2.7.1 fixes 3 functions (when called directly by user apps) to use same error handling on bad inputs as
cbor.Unmarshal()
:ByteString.UnmarshalCBOR()
RawTag.UnmarshalCBOR()
SimpleValue.UnmarshalCBOR()
The above 3 fixed functions are deprecated because they were initially created for internal use. Please use
Unmarshal()
orUnmarshalFirst()
instead.To preserve backward compatibility, the deprecated functions were added to fuzz tests and will not be removed in v2.x.
Before Upgrading to v2.7.1
v2.8.0 is being fuzz tested and will be released later today. It adds support for
omitzero
struct tag option.v2.7.1 is the last version to support go 1.17-1.19. v2.8.0 and newer releases will require go 1.20+.
What's Changed
Special Thanks
Thanks @thomas-fossati for reporting the bug in
RawTag.UnmarshalCBOR()
when it is called directly by user apps providing bad input data!Full Changelog: fxamacker/cbor@v2.7.0...v2.7.1
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.