Update module github.com/fxamacker/cbor/v2 to v2.10.0 #6

Merged
renovate_bot merged 1 commit from renovate/github.com-fxamacker-cbor-v2-2.x into master 2026-11-07 21:06:49 +00:00
renovate_bot commented 2026-11-07 15:03:16 +00:00 (Migrated from jonasled.dev)

This MR contains the following updates:

Package Change Age Confidence
github.com/fxamacker/cbor/v2 v2.9.4 → v2.10.0 age confidence

Release Notes

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

v2.10.0

Compare Source

v2.10 speeds up encoding by up to 2.88× and decoding by up to 1.87× with zero memory regressions (B/op, allocs/op), reduces memory use, adds the toindefarray struct tag option, and fixes bugs. The Contributing Guidelines, Security Policy, and templates were extensively updated.

Encoding sorted nested maps of dynamic JSON-like data to CBOR drops from 70 allocs/op to 1 and from 7.2 KiB/op to 4.0 KiB/op in the benchmarks below. Encoding time.Time, big.Int, Tag and Marshaler values, and decoding into time.Time, big.Int and Tag, use 1 to 2 fewer allocs/op (20% to 50% fewer).

This release does not use Go's unsafe package. Performance in user apps depends on configuration and data.

Tests were refactored and coverage increased to 97.7%. Fuzz tests (not yet public) were also extended. Internal checklists and procedures were updated to reduce potential mistakes.

Performance and Benchmarks

Across all 215 benchmarks, there are zero memory regressions (B/op, allocs/op). Just one benchmark showed a speed dip: Marshal/struct_many_flds_all_omitempty_all_empty/map is ~4-5% slower, but only when a struct has 32 fields that are both omitzero and empty (same scenario with an 8-field struct is now faster).

Benchmarks ran with Go 1.26.10 on linux/amd64 (benchstat n=10, p=0.000):

  • CBOR Speedup by Data Type: groups of different benchmarks summarized per row
  • CBOR Encoding Reflection-Free Speedup: dynamic JSON-like data types and common types
CBOR Speedup by Data Type
Unmarshal Speedup ΔSec/op
Single values (bool, int, float, byte string, text string) 1.10× to 1.51×¹ -8.87% to -33.92%¹
Epoch time, bignum, other tags 1.18× to 1.64× -15.33% to -38.91%
Arrays and maps to non-struct 1.33× to 1.87× -24.63% to -46.49%
Arrays and maps to structs 1.06× to 1.52× -5.46% to -34.40%
Real-world (COSE, CWT, SenML, WebAuthn) 1.35× to 1.64× -26.06% to -39.19%

¹ 2.54× speedup (-60.64%) when decoding into a named []byte type that has methods.

Marshal Speedup ΔSec/op
Single values (bool, int, float, byte slice, string) 1.32× to 1.55× -24.49% to -35.41%
time.Time, big.Int, Tag, Marshaler² 1.15× to 1.63× -12.94% to -38.84%
Slices and maps 1.35× to 2.88× -25.97% to -65.26%
Structs 1.57× to 2.17× -36.37% to -53.96%
Structs with omitempty fields 0.95׳ to 1.35× +5.01%³ to -25.96%
Real-world (COSE, CWT, SenML, WebAuthn) 1.12× to 1.33× -10.66% to -24.77%

² For addressable values (reached through a pointer, struct field, slice element or map value).

³ Only when every field is omitempty and empty: 7.6 ns slower for a 32-field struct, 2.37 ns faster for an 8-field struct. This is the only performance regression in all 215 benchmarks.

CBOR Encoding Reflection-Free Speedup

MR #​870 optimized common types: int, int64, uint, uint64, float64, bool, string, nil, []byte, []any, map[any]any, map[string]any, and map[string]string.

Marshal Benchmark
v2.9.6 → v2.10
Speedup Time
ΔSec/op
Memory
ΔB/op
Memory
ΔAllocs/op
[]any 2.50× -607.5 ns (-60.03%) - -
map[string]any 2.60× -821.9 ns (-61.47%) - -
map[string]string 2.59× -335.9 ns (-61.34%) - -
nested_map[any]any 2.88× -16.542 µs (-65.26%) - -
nested_map[string]any 2.78× -14.201 µs (-64.01%) - -
nested_map[any]any, bw_lex 2.53× -22.36 µs (-60.54%) -3314 (-44.72%) -69 (-98.57%)
nested_map[string]any, bw_lex 2.41× -19.52 µs (-58.54%) -3323 (-44.79%) -69 (-98.57%)
  • bw_lex = SortBytewiseLexical. Memory improvements are from #​774 and #​860.

Upgrade Notes

  • Go 1.24 or newer is required (#​773). All tests (97.7% coverage) pass on Go 1.24-1.27.
  • Pointer-receiver marshal methods (user-implemented methods) are called on the original value instead of a copy when the value is addressable (#​866).
  • Marshal configured to use TagsForbidden returns an error for a big.Int outside [-2^64, 2^64-1], and EncMode creation returns an error for settings that would emit tags if TagsForbidden is also set (#​868).
  • Decoder advances past well-formed data items rejected by DecOptions value or serialization restrictions (e.g. NaN, IndefLength), and Skip skips them without an error (#​872).
  • Marshal configured to emit text-based time returns an error for time.Time outside RFC 3339 limits (#​873).

TinyGo (experimental)

TinyGo support for v2.10.0 is available in tag tinygo-beta/v2.10.0-tinygo0.42 (branch feature/cbor-tinygo-beta). It requires TinyGo 0.42.0 or newer. It is experimental and not fuzz tested. For details, see TinyGo (https://github.com/fxamacker/cbor#tinygo) in the README.

What's Changed

⭐ Features
  • feat: add toindefarray struct tag option for CBOR indefinite-length arrays by @​tdnguyenND in #​770
🚀 Optimizations
🛠 Improvements
🐞 Bug Fixes
🧪 Testing
📖 Documentation
📖 Contributing Guidelines, Security Policy, and Templates
CI / GitHub Actions
🔎 Details
Other Changes
Ported from release-2.9

Already released in v2.9.3 through v2.9.6.

🔎 Details
Dependabot Updates
🔎 Details

New Contributors

Full Changelog: https://github.com/fxamacker/cbor/compare/v2.9.6...v2.10.0

v2.9.6

Compare Source

v2.9.6 fixes 12 bugs, including an important fix for apps that decode CBOR maps into Go maps, and has one behavior change. API is unchanged but more errors are detected.

Most of these bugs were identified while improving tests and reviewing code for an upcoming release.

Tests and fuzz tests were extended.

Upgrading to v2.9.6 from all prior versions is recommended.

🐞 Important Fix

For use cases outside the "not affected by this bug" list below, decoding a CBOR null or undefined map key or value (including 55799(null)) into a Go map whose key or value type is of bool, integer, float, or string kind kept the previous map entry's key or value (instead of the zero value). See MR #​855 for details.

Not affected by this bug:

  • Decoding data this codec encoded from the same Go map type, because this codec does not encode to CBOR null from Go values of bool, integer, float, or string kind.
  • Apps that don't decode a CBOR null or undefined map key or value into a Go map whose key or value type is of bool, integer, float, or string kind.
  • Decoding CBOR maps into structs (struct fields of map type follow the bullet above).
  • Decoding CBOR maps into map[any]any, and into any (with unchanged DefaultMapType).
⚠️ Behavior change

Decoding CBOR null or undefined into an interface that holds a value now sets it to nil, matching encoding/json (v1 and v2). Previously, the interface kept its value (MR #​827), which was not the intended behavior.

🛠 Bug fixes

Some of these bugs could only be triggered by incorrect usage in user apps, such as invalid struct tags or an unsupported DefaultByteStringType setting, etc. None of these bugs were reported by a project affected by them.

Decoding
Encoding
  • Fix encoding self-referencing types by @​fxamacker in #​833
  • Fix panic encoding marshaler of unsupported underlying types by @​fxamacker in #​834
  • Fix omitzero panic encoding struct field of unsupported underlying types implementing marshaler by @​fxamacker in #​835
  • Fix encoding TimeUnixMicro outside 1677 to 2262 by @​fxamacker in #​837
    • Encoded output also changes for some times within one second of either end of that range.
  • Reject encoding time.Time when Go formats wrong year by @​fxamacker in #​838
📖 Documentation

Full Changelog: https://github.com/fxamacker/cbor/compare/v2.9.4...v2.9.6

v2.9.5

Compare Source

This version was tagged from the default branch by mistake and is retracted.

Use v2.9.6 (https://github.com/fxamacker/cbor/releases/tag/v2.9.6) instead.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

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

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


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

This MR has been generated by Mend Renovate CLI.

This MR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/fxamacker/cbor/v2](https://github.com/fxamacker/cbor) | `v2.9.4` → `v2.10.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2ffxamacker%2fcbor%2fv2/v2.10.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2ffxamacker%2fcbor%2fv2/v2.9.4/v2.10.0?slim=true) | --- ### Release Notes <details> <summary>fxamacker/cbor (github.com/fxamacker/cbor/v2)</summary> ### [`v2.10.0`](https://github.com/fxamacker/cbor/releases/tag/v2.10.0) [Compare Source](https://github.com/fxamacker/cbor/compare/v2.9.6...v2.10.0) v2.10 speeds up encoding by **up to 2.88×** and decoding by **up to 1.87×** with **zero memory regressions** (B/op, allocs/op), reduces memory use, adds the `toindefarray` struct tag option, and fixes bugs. The [Contributing Guidelines](https://github.com/fxamacker/cbor/blob/master/CONTRIBUTING.md), [Security Policy](https://github.com/fxamacker/cbor/blob/master/SECURITY.md), and templates were [extensively updated](https://github.com/fxamacker/cbor/pull/862). Encoding sorted nested maps of dynamic JSON-like data to CBOR drops from 70 allocs/op to 1 and from 7.2 KiB/op to 4.0 KiB/op in the benchmarks below. Encoding `time.Time`, `big.Int`, `Tag` and `Marshaler` values, and decoding into `time.Time`, `big.Int` and `Tag`, use 1 to 2 fewer allocs/op (20% to 50% fewer). This release does not use Go's `unsafe` package. Performance in user apps depends on configuration and data. Tests were refactored and coverage increased to 97.7%. Fuzz tests (not yet public) were also extended. Internal checklists and procedures were updated to reduce potential mistakes. #### Performance and Benchmarks Across all 215 benchmarks, there are zero memory regressions (B/op, allocs/op). Just one benchmark showed a speed dip: `Marshal/struct_many_flds_all_omitempty_all_empty/map` is \~4-5% slower, but only when a struct has 32 fields that are both `omitzero` and empty (same scenario with an 8-field struct is now faster). Benchmarks ran with Go 1.26.10 on linux/amd64 (benchstat n=10, p=0.000): - **CBOR Speedup by Data Type**: groups of different benchmarks summarized per row - **CBOR Encoding Reflection-Free Speedup**: dynamic JSON-like data types and common types ##### CBOR Speedup by Data Type | Unmarshal | Speedup | ΔSec/op | | ---------------------------------------------------------- | --------------: | -----------------: | | Single values (bool, int, float, byte string, text string) | 1.10× to 1.51×¹ | -8.87% to -33.92%¹ | | Epoch time, bignum, other tags | 1.18× to 1.64× | -15.33% to -38.91% | | Arrays and maps to non-struct | 1.33× to 1.87× | -24.63% to -46.49% | | Arrays and maps to structs | 1.06× to 1.52× | -5.46% to -34.40% | | Real-world (COSE, CWT, SenML, WebAuthn) | 1.35× to 1.64× | -26.06% to -39.19% | ¹ 2.54× speedup (-60.64%) when decoding into a named `[]byte` type that has methods. | Marshal | Speedup | ΔSec/op | | ---------------------------------------------------- | --------------: | -----------------: | | Single values (bool, int, float, byte slice, string) | 1.32× to 1.55× | -24.49% to -35.41% | | time.Time, big.Int, Tag, Marshaler² | 1.15× to 1.63× | -12.94% to -38.84% | | Slices and maps | 1.35× to 2.88× | -25.97% to -65.26% | | Structs | 1.57× to 2.17× | -36.37% to -53.96% | | Structs with omitempty fields | 0.95׳ to 1.35× | +5.01%³ to -25.96% | | Real-world (COSE, CWT, SenML, WebAuthn) | 1.12× to 1.33× | -10.66% to -24.77% | ² For addressable values (reached through a pointer, struct field, slice element or map value). ³ Only when every field is omitempty and empty: 7.6 ns slower for a 32-field struct, 2.37 ns faster for an 8-field struct. This is the only performance regression in all 215 benchmarks. ##### CBOR Encoding Reflection-Free Speedup MR [#&#8203;870](https://github.com/fxamacker/cbor/issues/870) optimized common types: `int`, `int64`, `uint`, `uint64`, `float64`, `bool`, `string`, `nil`, `[]byte`, `[]any`, `map[any]any`, `map[string]any`, and `map[string]string`. | Marshal Benchmark<br>v2.9.6 → v2.10 | Speedup | Time<br>ΔSec/op | Memory<br>ΔB/op | Memory<br>ΔAllocs/op | | :---------------------------------- | ------: | -------------------: | --------------: | -------------------: | | \[]any | 2.50× | -607.5 ns (-60.03%) | - | - | | map\[string]any | 2.60× | -821.9 ns (-61.47%) | - | - | | map\[string]string | 2.59× | -335.9 ns (-61.34%) | - | - | | nested_map\[any]any | 2.88× | -16.542 µs (-65.26%) | - | - | | nested_map\[string]any | 2.78× | -14.201 µs (-64.01%) | - | - | | nested_map\[any]any, bw_lex | 2.53× | -22.36 µs (-60.54%) | -3314 (-44.72%) | -69 (-98.57%) | | nested_map\[string]any, bw_lex | 2.41× | -19.52 µs (-58.54%) | -3323 (-44.79%) | -69 (-98.57%) | - bw_lex = `SortBytewiseLexical`. Memory improvements are from [#&#8203;774](https://github.com/fxamacker/cbor/issues/774) and [#&#8203;860](https://github.com/fxamacker/cbor/issues/860). #### Upgrade Notes - Go 1.24 or newer is required ([#&#8203;773](https://github.com/fxamacker/cbor/issues/773)). All tests (97.7% coverage) pass on Go 1.24-1.27. - Pointer-receiver marshal methods (user-implemented methods) are called on the original value instead of a copy when the value is addressable ([#&#8203;866](https://github.com/fxamacker/cbor/issues/866)). - `Marshal` configured to use `TagsForbidden` returns an error for a `big.Int` outside \[-2^64, 2^64-1], and `EncMode` creation returns an error for settings that would emit tags if `TagsForbidden` is also set ([#&#8203;868](https://github.com/fxamacker/cbor/issues/868)). - `Decoder` advances past well-formed data items rejected by `DecOptions` value or serialization restrictions (e.g. `NaN`, `IndefLength`), and `Skip` skips them without an error ([#&#8203;872](https://github.com/fxamacker/cbor/issues/872)). - `Marshal` configured to emit text-based time returns an error for `time.Time` outside RFC 3339 limits ([#&#8203;873](https://github.com/fxamacker/cbor/issues/873)). #### TinyGo (experimental) TinyGo support for v2.10.0 is available in tag `tinygo-beta/v2.10.0-tinygo0.42` (branch `feature/cbor-tinygo-beta`). It requires TinyGo 0.42.0 or newer. It is experimental and not fuzz tested. For details, see TinyGo (<https://github.com/fxamacker/cbor#tinygo>) in the README. #### What's Changed ##### ⭐ Features - feat: add toindefarray struct tag option for CBOR indefinite-length arrays by [@&#8203;tdnguyenND](https://github.com/tdnguyenND) in [#&#8203;770](https://github.com/fxamacker/cbor/pull/770) ##### 🚀 Optimizations - Optimize encoding speed primarily for slices, maps, and structs by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;806](https://github.com/fxamacker/cbor/pull/806) - Reduce decoding time up to 17% for all CBOR data types by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;807](https://github.com/fxamacker/cbor/pull/807) - Reduce decoding time by inlining well-formedness checks by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;810](https://github.com/fxamacker/cbor/pull/810) - Optimize decoding CBOR byte string by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;811](https://github.com/fxamacker/cbor/pull/811) - Optimize decoding CBOR text string by up to 16% by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;812](https://github.com/fxamacker/cbor/pull/812) - Reduce allocs and bound memory of keyValue pool by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;860](https://github.com/fxamacker/cbor/pull/860) - Reduce allocations when encoding addressable values by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;866](https://github.com/fxamacker/cbor/pull/866) - Add reflection-free encoding for common types (up to 2.8x faster) by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;870](https://github.com/fxamacker/cbor/pull/870) - Reduce allocs to speed up time.Time, Tag, and big.Int by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;886](https://github.com/fxamacker/cbor/pull/886) ##### 🛠 Improvements - Update to require go 1.24 and modernize code by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;773](https://github.com/fxamacker/cbor/pull/773) - Refactor to use slices.SortFunc (Go 1.21+) by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;774](https://github.com/fxamacker/cbor/pull/774) - Small refactor and cleanups by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;815](https://github.com/fxamacker/cbor/pull/815) - Refactor encoding functions to prepare for reflection-free path by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;861](https://github.com/fxamacker/cbor/pull/861) - Refactor struct field sorter to use slices.SortFunc by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;877](https://github.com/fxamacker/cbor/pull/877) ##### 🐞 Bug Fixes - Enforce TagsForbidden for bignums and ByteSliceLaterFormat by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;868](https://github.com/fxamacker/cbor/pull/868) - Advance Decoder past restricted CBOR data items by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;872](https://github.com/fxamacker/cbor/pull/872) - Reject marshaling out-of-range time.Time to RFC 3339 by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;873](https://github.com/fxamacker/cbor/pull/873) - Fix some error messages returned by EncMode() and DecMode() by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;883](https://github.com/fxamacker/cbor/pull/883) - Fix float range check when decoding Unix time by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;889](https://github.com/fxamacker/cbor/pull/889) ##### 🧪 Testing - Shorten benchmark names by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;816](https://github.com/fxamacker/cbor/pull/816) - Move tests and helpers to new files by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;878](https://github.com/fxamacker/cbor/pull/878) - Add checkMarshal test helpers by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;879](https://github.com/fxamacker/cbor/pull/879) - Add checkUnmarshal test helpers by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;881](https://github.com/fxamacker/cbor/pull/881) - Add test helpers for modes, tags, and round trips by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;884](https://github.com/fxamacker/cbor/pull/884) - Refactor invalid option tests to table-driven tests by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;885](https://github.com/fxamacker/cbor/pull/885) - Add checkNoError and checkErrorCase test helpers by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;887](https://github.com/fxamacker/cbor/pull/887) - Standardize test failure messages and fix several test bugs by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;888](https://github.com/fxamacker/cbor/pull/888) - Add more benchmarks by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;891](https://github.com/fxamacker/cbor/pull/891) ##### 📖 Documentation - Update comments to use newer terminology by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;779](https://github.com/fxamacker/cbor/pull/779) - Update TinyGo section in README.md by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;793](https://github.com/fxamacker/cbor/pull/793) - Update doc.go and README.md for v2.10.0 by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;890](https://github.com/fxamacker/cbor/pull/890) ##### 📖 Contributing Guidelines, Security Policy, and Templates - Update MR template to clarify approval requirement by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;849](https://github.com/fxamacker/cbor/pull/849) - Rewrite security policy and reporting guidelines by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;864](https://github.com/fxamacker/cbor/pull/864) - Rewrite MR template to reduce risks from AI and uncoordinated MRs by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;865](https://github.com/fxamacker/cbor/pull/865) - Rewrite bug report form to reduce security risks by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;867](https://github.com/fxamacker/cbor/pull/867) - Rewrite feature request form to help triage and reduce risks by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;869](https://github.com/fxamacker/cbor/pull/869) - Replace docs issue template with an issue form by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;874](https://github.com/fxamacker/cbor/pull/874) - Update security policy, MR template, and issue forms by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;875](https://github.com/fxamacker/cbor/pull/875) - Update CONTRIBUTING.md to reduce risks by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;862](https://github.com/fxamacker/cbor/pull/862) - Improve issue forms for triage and previews by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;880](https://github.com/fxamacker/cbor/pull/880) ##### CI / GitHub Actions <details><summary> 🔎 Details </summary> - Bump govulncheck from v1.1.4 to v1.3.0 by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;772](https://github.com/fxamacker/cbor/pull/772) - Add more linters to .golangci.yml and lint by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;775](https://github.com/fxamacker/cbor/pull/775) - Update CodeQL actions to v4.36.3 and add CodeQL group to dependabot.yml by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;790](https://github.com/fxamacker/cbor/pull/790) - Bump golangci-lint to v2.13.2 and lint by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;814](https://github.com/fxamacker/cbor/pull/814) - Update CI to add Go 1.27 and bump govulncheck by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;852](https://github.com/fxamacker/cbor/pull/852) - Change Go version for golangci-lint 2.13.2 by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;863](https://github.com/fxamacker/cbor/pull/863) </details> ##### Other Changes - Use a security-hardened .gitignore by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;826](https://github.com/fxamacker/cbor/pull/826) ##### Ported from release-2.9 Already released in v2.9.3 through v2.9.6. <details><summary> 🔎 Details </summary> - Port MR 803 to master branch by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;804](https://github.com/fxamacker/cbor/pull/804) - Port [#&#8203;817](https://github.com/fxamacker/cbor/issues/817) from v2.9.4 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;818](https://github.com/fxamacker/cbor/pull/818) - Port [#&#8203;821](https://github.com/fxamacker/cbor/issues/821) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;822](https://github.com/fxamacker/cbor/pull/822) - Port [#&#8203;827](https://github.com/fxamacker/cbor/issues/827) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;839](https://github.com/fxamacker/cbor/pull/839) - Port [#&#8203;828](https://github.com/fxamacker/cbor/issues/828) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;840](https://github.com/fxamacker/cbor/pull/840) - Port [#&#8203;829](https://github.com/fxamacker/cbor/issues/829) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;841](https://github.com/fxamacker/cbor/pull/841) - Port [#&#8203;831](https://github.com/fxamacker/cbor/issues/831) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;842](https://github.com/fxamacker/cbor/pull/842) - Port [#&#8203;834](https://github.com/fxamacker/cbor/issues/834) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;843](https://github.com/fxamacker/cbor/pull/843) - Port [#&#8203;835](https://github.com/fxamacker/cbor/issues/835) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;844](https://github.com/fxamacker/cbor/pull/844) - Port [#&#8203;833](https://github.com/fxamacker/cbor/issues/833) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;845](https://github.com/fxamacker/cbor/pull/845) - Port [#&#8203;837](https://github.com/fxamacker/cbor/issues/837) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;846](https://github.com/fxamacker/cbor/pull/846) - Port [#&#8203;838](https://github.com/fxamacker/cbor/issues/838) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;850](https://github.com/fxamacker/cbor/pull/850) - Port [#&#8203;851](https://github.com/fxamacker/cbor/issues/851) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;853](https://github.com/fxamacker/cbor/pull/853) - Port [#&#8203;854](https://github.com/fxamacker/cbor/issues/854) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;856](https://github.com/fxamacker/cbor/pull/856) - Port [#&#8203;857](https://github.com/fxamacker/cbor/issues/857) from release-2.9 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;858](https://github.com/fxamacker/cbor/pull/858) - Port [#&#8203;855](https://github.com/fxamacker/cbor/issues/855) from v2.9.6 to master by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;859](https://github.com/fxamacker/cbor/pull/859) </details> ##### Dependabot Updates <details><summary> 🔎 Details </summary> - Bump github/codeql-action from 4.35.2 to 4.35.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;771](https://github.com/fxamacker/cbor/pull/771) - Bump github/codeql-action from 4.35.4 to 4.35.5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;776](https://github.com/fxamacker/cbor/pull/776) - Bump github/codeql-action from 4.35.5 to 4.36.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;778](https://github.com/fxamacker/cbor/pull/778) - Bump github/codeql-action from 4.36.0 to 4.36.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;781](https://github.com/fxamacker/cbor/pull/781) - Bump actions/checkout from 6.0.2 to 7.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;783](https://github.com/fxamacker/cbor/pull/783) - Bump actions/setup-go from 6.4.0 to 6.5.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;785](https://github.com/fxamacker/cbor/pull/785) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;791](https://github.com/fxamacker/cbor/pull/791) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;794](https://github.com/fxamacker/cbor/pull/794) - Bump actions/setup-go from 6.5.0 to 7.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;795](https://github.com/fxamacker/cbor/pull/795) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;799](https://github.com/fxamacker/cbor/pull/799) - Bump actions/checkout from 7.0.0 to 7.0.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;800](https://github.com/fxamacker/cbor/pull/800) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;801](https://github.com/fxamacker/cbor/pull/801) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;808](https://github.com/fxamacker/cbor/pull/808) - Bump the codeql group across 1 directory with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;813](https://github.com/fxamacker/cbor/pull/813) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;823](https://github.com/fxamacker/cbor/pull/823) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;836](https://github.com/fxamacker/cbor/pull/836) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;847](https://github.com/fxamacker/cbor/pull/847) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;871](https://github.com/fxamacker/cbor/pull/871) - Bump the codeql group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;882](https://github.com/fxamacker/cbor/pull/882) </details> #### New Contributors * @&#8203;tdnguyenND made their first contribution in https://github.com/fxamacker/cbor/pull/770 **Full Changelog**: <https://github.com/fxamacker/cbor/compare/v2.9.6...v2.10.0> ### [`v2.9.6`](https://github.com/fxamacker/cbor/releases/tag/v2.9.6) [Compare Source](https://github.com/fxamacker/cbor/compare/v2.9.5...v2.9.6) v2.9.6 fixes 12 bugs, including an important fix for apps that decode CBOR maps into Go maps, and has one behavior change. API is unchanged but more errors are detected. Most of these bugs were identified while improving tests and reviewing code for an upcoming release. Tests and fuzz tests were extended. Upgrading to v2.9.6 from all prior versions is recommended. ##### :lady_beetle: Important Fix For use cases outside the "not affected by this bug" list below, decoding a CBOR null or undefined map key or value (including `55799(null)`) into a Go map whose key or value type is of bool, integer, float, or string kind kept the previous map entry's key or value (instead of the zero value). See MR [#&#8203;855](https://github.com/fxamacker/cbor/issues/855) for details. Not affected by this bug: - Decoding data this codec encoded from the same Go map type, because this codec does not encode to CBOR null from Go values of bool, integer, float, or string kind. - Apps that don't decode a CBOR null or undefined map key or value into a Go map whose key or value type is of bool, integer, float, or string kind. - Decoding CBOR maps into structs (struct fields of map type follow the bullet above). - Decoding CBOR maps into `map[any]any`, and into `any` (with unchanged `DefaultMapType`). ##### :warning: Behavior change Decoding CBOR null or undefined into an interface that holds a value now sets it to nil, matching encoding/json (v1 and v2). Previously, the interface kept its value (MR [#&#8203;827](https://github.com/fxamacker/cbor/issues/827)), which was not the intended behavior. ##### 🛠 Bug fixes Some of these bugs could only be triggered by incorrect usage in user apps, such as invalid struct tags or an unsupported DefaultByteStringType setting, etc. None of these bugs were reported by a project affected by them. ##### Decoding - Skip CBOR data item when destination struct has incorrect tags by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;821](https://github.com/fxamacker/cbor/pull/821) - Fix decoding CBOR null/undefined to interface value by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;827](https://github.com/fxamacker/cbor/pull/827) - Fix decoding to unaddressable value in interface by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;828](https://github.com/fxamacker/cbor/pull/828) - Improve the DefaultByteStringType check by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;829](https://github.com/fxamacker/cbor/pull/829) - Fix decoding to self-referencing types by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;831](https://github.com/fxamacker/cbor/pull/831) - Fix decoding 55799(null) to pointer or interface by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;851](https://github.com/fxamacker/cbor/pull/851) - Fix stale Go map entry from CBOR null key/value by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;855](https://github.com/fxamacker/cbor/pull/855) ##### Encoding - Fix encoding self-referencing types by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;833](https://github.com/fxamacker/cbor/pull/833) - Fix panic encoding marshaler of unsupported underlying types by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;834](https://github.com/fxamacker/cbor/pull/834) - Fix omitzero panic encoding struct field of unsupported underlying types implementing marshaler by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;835](https://github.com/fxamacker/cbor/pull/835) - Fix encoding TimeUnixMicro outside 1677 to 2262 by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;837](https://github.com/fxamacker/cbor/pull/837) - Encoded output also changes for some times within one second of either end of that range. - Reject encoding time.Time when Go formats wrong year by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;838](https://github.com/fxamacker/cbor/pull/838) ##### 📖 Documentation - Improve docs related to encoding time.Time by [@&#8203;fxamacker](https://github.com/fxamacker) in [#&#8203;854](https://github.com/fxamacker/cbor/pull/854) **Full Changelog**: <https://github.com/fxamacker/cbor/compare/v2.9.4...v2.9.6> ### [`v2.9.5`](https://github.com/fxamacker/cbor/releases/tag/v2.9.5) [Compare Source](https://github.com/fxamacker/cbor/compare/v2.9.4...v2.9.5) This version was tagged from the default branch by mistake and is retracted. Use v2.9.6 (<https://github.com/fxamacker/cbor/releases/tag/v2.9.6>) instead. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
renovate_bot (Migrated from jonasled.dev) scheduled this pull request to auto merge when all checks succeed 2026-11-07 15:03:34 +00:00
renovate_bot commented 2026-11-07 15:03:37 +00:00 (Migrated from jonasled.dev)

mentioned in issue #1

mentioned in issue #1
renovate_bot commented 2026-11-07 15:14:03 +00:00 (Migrated from jonasled.dev)

aborted the automatic merge because the source branch was updated. Learn more.

aborted the automatic merge because the source branch was updated. [Learn more](https://jonasled.dev/help/ci/pipelines/merge_trains.md#merge-request-dropped-from-the-merge-train).
renovate_bot commented 2026-11-07 15:14:05 +00:00 (Migrated from jonasled.dev)

added 2 commits

  • e9adc791 - 1 commit from branch master
  • 1590a82e - Update module github.com/fxamacker/cbor/v2 to v2.10.0

Compare with previous version

added 2 commits <ul><li>e9adc791 - 1 commit from branch <code>master</code></li><li>1590a82e - Update module github.com/fxamacker/cbor/v2 to v2.10.0</li></ul> [Compare with previous version](/jonasled/auth-server/-/merge_requests/5/diffs?diff_id=82955&start_sha=bdc5242f3648c513f18e61b3391390561e67c5fd)
renovate_bot commented 2026-11-07 19:51:11 +00:00 (Migrated from jonasled.dev)

added 8 commits

  • 1590a82e...52f7d5eb - 7 commits from branch master
  • e35ca3f6 - Update module github.com/fxamacker/cbor/v2 to v2.10.0

Compare with previous version

added 8 commits <ul><li>1590a82e...52f7d5eb - 7 commits from branch <code>master</code></li><li>e35ca3f6 - Update module github.com/fxamacker/cbor/v2 to v2.10.0</li></ul> [Compare with previous version](/jonasled/auth-server/-/merge_requests/5/diffs?diff_id=82989&start_sha=1590a82eae642df571e34bc4ce00a597be2c55ca)
renovate_bot (Migrated from jonasled.dev) scheduled this pull request to auto merge when all checks succeed 2026-11-07 19:51:14 +00:00
renovate_bot commented 2026-11-07 19:51:16 +00:00 (Migrated from jonasled.dev)

changed the description

changed the description
renovate_bot commented 2026-11-07 20:03:25 +00:00 (Migrated from jonasled.dev)

aborted the automatic merge because the source branch was updated. Learn more.

aborted the automatic merge because the source branch was updated. [Learn more](https://jonasled.dev/help/ci/pipelines/merge_trains.md#merge-request-dropped-from-the-merge-train).
renovate_bot commented 2026-11-07 20:03:26 +00:00 (Migrated from jonasled.dev)

added 2 commits

  • 40150556 - 1 commit from branch master
  • a357c1dd - Update module github.com/fxamacker/cbor/v2 to v2.10.0

Compare with previous version

added 2 commits <ul><li>40150556 - 1 commit from branch <code>master</code></li><li>a357c1dd - Update module github.com/fxamacker/cbor/v2 to v2.10.0</li></ul> [Compare with previous version](/jonasled/auth-server/-/merge_requests/5/diffs?diff_id=83006&start_sha=e35ca3f61aac30d17145a856453de18670345548)
renovate_bot commented 2026-11-07 20:25:47 +00:00 (Migrated from jonasled.dev)

added 5 commits

  • a357c1dd...275eb5af - 4 commits from branch master
  • da5230fa - Update module github.com/fxamacker/cbor/v2 to v2.10.0

Compare with previous version

added 5 commits <ul><li>a357c1dd...275eb5af - 4 commits from branch <code>master</code></li><li>da5230fa - Update module github.com/fxamacker/cbor/v2 to v2.10.0</li></ul> [Compare with previous version](/jonasled/auth-server/-/merge_requests/5/diffs?diff_id=83029&start_sha=a357c1dd4e28f4412489a6d7188250d625125039)
renovate_bot (Migrated from jonasled.dev) scheduled this pull request to auto merge when all checks succeed 2026-11-07 20:25:51 +00:00
renovate_bot commented 2026-11-07 20:25:53 +00:00 (Migrated from jonasled.dev)

changed the description

changed the description
renovate_bot commented 2026-11-07 20:27:49 +00:00 (Migrated from jonasled.dev)

aborted the automatic merge because the source branch was updated. Learn more.

aborted the automatic merge because the source branch was updated. [Learn more](https://jonasled.dev/help/ci/pipelines/merge_trains.md#merge-request-dropped-from-the-merge-train).
renovate_bot commented 2026-11-07 20:27:50 +00:00 (Migrated from jonasled.dev)

added 5 commits

  • da5230fa...d9bf9bc3 - 4 commits from branch master
  • b0f4cad8 - Update module github.com/fxamacker/cbor/v2 to v2.10.0

Compare with previous version

added 5 commits <ul><li>da5230fa...d9bf9bc3 - 4 commits from branch <code>master</code></li><li>b0f4cad8 - Update module github.com/fxamacker/cbor/v2 to v2.10.0</li></ul> [Compare with previous version](/jonasled/auth-server/-/merge_requests/5/diffs?diff_id=83041&start_sha=da5230faeea673e3a5639e9e55a97ad431bd0f4b)
renovate_bot commented 2026-11-07 20:54:38 +00:00 (Migrated from jonasled.dev)

added 5 commits

  • b0f4cad8...72505ff6 - 4 commits from branch master
  • 754b002f - Update module github.com/fxamacker/cbor/v2 to v2.10.0

Compare with previous version

added 5 commits <ul><li>b0f4cad8...72505ff6 - 4 commits from branch <code>master</code></li><li>754b002f - Update module github.com/fxamacker/cbor/v2 to v2.10.0</li></ul> [Compare with previous version](/jonasled/auth-server/-/merge_requests/5/diffs?diff_id=83055&start_sha=b0f4cad86dc48adf14ec62ab096a48105dd8dfe2)
renovate_bot (Migrated from jonasled.dev) scheduled this pull request to auto merge when all checks succeed 2026-11-07 20:54:43 +00:00
renovate_bot (Migrated from jonasled.dev) merged commit 6a31633109 into master 2026-11-07 21:06:49 +00:00
renovate_bot commented 2026-11-07 21:06:50 +00:00 (Migrated from jonasled.dev)

mentioned in commit 6a31633109

mentioned in commit 6a31633109f80ad40d87f2c137a62577bab598c9
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jonasled/auth-server!6
No description provided.