Skip to content

build(deps): bump github.com/fxamacker/cbor/v2 from 2.7.0 to 2.8.0#265

Merged
dependabot[bot] merged 1 commit intomainfrom
dependabot/go_modules/github.com/fxamacker/cbor/v2-2.8.0
Apr 15, 2025
Merged

build(deps): bump github.com/fxamacker/cbor/v2 from 2.7.0 to 2.8.0#265
dependabot[bot] merged 1 commit intomainfrom
dependabot/go_modules/github.com/fxamacker/cbor/v2-2.8.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 31, 2025

Bumps github.com/fxamacker/cbor/v2 from 2.7.0 to 2.8.0.

Release notes

Sourced from github.com/fxamacker/cbor/v2's releases.

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

... (truncated)

Commits
  • cbe7442 Update docs for cbor v2.8.0 (#649)
  • c9f772d Merge pull request #647 from fxamacker/fxamacker/optimize-unmarshalcbor-for-c...
  • 64fbdbc Optimize calls to UnmarshalCBOR() for RawTag, etc.
  • fe81c11 Merge pull request #645 from fxamacker/fxamacker/port-pr-636-to-master-branch
  • d81ecdd Check CBOR well-formedness in ByteString.UnmarshalCBOR
  • 4f3c6a5 Check CBOR well-formedness in SimpleValue.UnmarshalCBOR
  • 621c666 Check CBOR well-formedness in RawTag.UnmarshalCBOR
  • d34c8ec Merge pull request #644 from liggitt/omitzero
  • 69da12b Adjust OmitZero tests to zero behavior
  • 101dea7 Copy OmitEmpty tests to OmitZero tests
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 31, 2025
@dependabot dependabot bot requested a review from a user March 31, 2025 16:51
@dependabot dependabot bot requested review from vaninrao10 and yizha1 as code owners March 31, 2025 16:51
@codecov
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.26%. Comparing base (4d73532) to head (83dd7a9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #265   +/-   ##
=======================================
  Coverage   92.26%   92.26%           
=======================================
  Files          32       32           
  Lines        2806     2806           
=======================================
  Hits         2589     2589           
  Misses        165      165           
  Partials       52       52           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JeyJeyGao
Copy link
Contributor

@dependabot recreate

Bumps [github.com/fxamacker/cbor/v2](https://github.com/fxamacker/cbor) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/fxamacker/cbor/releases)
- [Commits](fxamacker/cbor@v2.7.0...v2.8.0)

---
updated-dependencies:
- dependency-name: github.com/fxamacker/cbor/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/fxamacker/cbor/v2-2.8.0 branch from 22aecf6 to 83dd7a9 Compare April 9, 2025 02:15
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shizhMSFT
Copy link
Contributor

@dependabot merge

@dependabot dependabot bot merged commit b85e8f7 into main Apr 15, 2025
9 checks passed
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/fxamacker/cbor/v2-2.8.0 branch April 15, 2025 03:05
@ghost ghost mentioned this pull request Apr 16, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants