build(deps): bump github.com/fxamacker/cbor/v2 from 2.7.0 to 2.8.0
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
omitzerostruct tag option, fixes and deprecates 3 functions, and bumps requirements to go 1.20+.Many thanks to
@liggittfor contributing theomitzerosupport!The "omitzero" option omits zero values from encoding, matching stdlib encoding/json behavior. When specified in the
cbortag, the option is always honored. When specified in thejsontag, 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-fossatifor 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
- go: update go.mod and ci.yml to require go1.20 or newer (was go1.17) by
@fxamackerin fxamacker/cbor#626- Replace
interface{}withanyby@fxamackerin fxamacker/cbor#627- Replace
reflect.Ptrwithreflect.Pointerby@fxamackerin fxamacker/cbor#628- Replace
reflect.PtrTowithreflect.PointerToby@fxamackerin fxamacker/cbor#629- Add omitzero support by
@liggittin fxamacker/cbor#644- Update error handling in
RawTag.UnmarshalCBOR(), etc. to matchcbor.Unmarshal()by@fxamackerin fxamacker/cbor#645- Optimize internal calls to
UnmarshalCBOR()forByteString,RawTag,SimpleValueby@fxamackerin fxamacker/cbor#647Other Changes
- Bump github/codeql-action from 3.25.10 to 3.25.11 by
@dependabotin fxamacker/cbor#562- Bump actions/setup-go from 5.0.1 to 5.0.2 by
@dependabotin fxamacker/cbor#564- Bump github/codeql-action from 3.25.11 to 3.25.12 by
@dependabotin fxamacker/cbor#565- Bump github/codeql-action from 3.25.12 to 3.25.14 by
@dependabotin fxamacker/cbor#567- Bump github/codeql-action from 3.25.14 to 3.25.15 by
@dependabotin fxamacker/cbor#569- Bump github/codeql-action from 3.25.15 to 3.26.0 by
@dependabotin fxamacker/cbor#571- Bump govulncheck from 1.0.4 to 1.1.3 by
@fxamackerin fxamacker/cbor#572- Bump github/codeql-action from 3.26.0 to 3.26.2 by
@dependabotin fxamacker/cbor#575- Add go1.23 to ci.yml by
@fxamackerin fxamacker/cbor#573- Bump github/codeql-action from 3.26.2 to 3.26.6 by
@dependabotin fxamacker/cbor#580- Mention new TinyGo feature branch in README by
@fxamackerin fxamacker/cbor#582- Bump github/codeql-action from 3.26.6 to 3.26.8 by
@dependabotin fxamacker/cbor#585- Bump github/codeql-action from 3.26.8 to 3.26.9 by
@dependabotin fxamacker/cbor#586- Bump actions/checkout from 4.1.7 to 4.2.0 by
@dependabotin fxamacker/cbor#587- README: update benchmark comparisons, etc. by
@fxamackerin fxamacker/cbor#588- Bump github/codeql-action from 3.26.9 to 3.26.11 by
@dependabotin fxamacker/cbor#590- README: update to clarify CBOR benchmark comparison and resolve nits by
@fxamackerin fxamacker/cbor#591- README: fix broken link to svg file by
@fxamackerin fxamacker/cbor#592- Bump github/codeql-action from 3.26.11 to 3.26.12 by
@dependabotin fxamacker/cbor#594- Bump actions/checkout from 4.2.0 to 4.2.1 by
@dependabotin fxamacker/cbor#593
... (truncated)
Commits
cbe7442Update docs for cbor v2.8.0 (#649)c9f772dMerge pull request #647 from fxamacker/fxamacker/optimize-unmarshalcbor-for-c...64fbdbcOptimize calls to UnmarshalCBOR() for RawTag, etc.fe81c11Merge pull request #645 from fxamacker/fxamacker/port-pr-636-to-master-branchd81ecddCheck CBOR well-formedness in ByteString.UnmarshalCBOR4f3c6a5Check CBOR well-formedness in SimpleValue.UnmarshalCBOR621c666Check CBOR well-formedness in RawTag.UnmarshalCBORd34c8ecMerge pull request #644 from liggitt/omitzero69da12bAdjust OmitZero tests to zero behavior101dea7Copy OmitEmpty tests to OmitZero tests- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)