Skip to content

Update module github.com/fxamacker/cbor/v2 to v2.8.0#65

Merged
descope[bot] merged 1 commit intomainfrom
renovate/github.com-fxamacker-cbor-v2-2.x
Apr 20, 2025
Merged

Update module github.com/fxamacker/cbor/v2 to v2.8.0#65
descope[bot] merged 1 commit intomainfrom
renovate/github.com-fxamacker-cbor-v2-2.x

Conversation

@descope
Copy link
Contributor

@descope descope bot commented Apr 20, 2025

This PR contains the following updates:

Package Type Update Change OpenSSF
github.com/fxamacker/cbor/v2 require minor v2.7.1 -> v2.8.0 OpenSSF Scorecard

Release Notes

fxamacker/cbor (github.com/fxamacker/cbor/v2)

v2.8.0

Compare Source

v2.8.0 adds 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!

The "omitzero" option omits zero values from encoding, matching stdlib encoding/json behavior.
When specified in the cbor tag, the option is always honored.
When specified in the json tag, the option is honored when building with Go 1.24+.

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() or UnmarshalFirst() instead.

To preserve backward compatibility, the deprecated functions were added to fuzz tests and will not be removed in v2.x.

What's Changed

Other Changes
🔍 Details

New Contributors

Full Changelog: fxamacker/cbor@v2.7.0...v2.8.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@descope descope bot added the renovate label Apr 20, 2025
@descope descope bot enabled auto-merge (squash) April 20, 2025 20:44
@descope descope bot merged commit 5620ad1 into main Apr 20, 2025
2 checks passed
@descope descope bot deleted the renovate/github.com-fxamacker-cbor-v2-2.x branch April 20, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants