Skip to content

Update dependency cbor2 to v6 - #111

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cbor2-6.x-lockfile
Open

Update dependency cbor2 to v6#111
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cbor2-6.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cbor2 (changelog) 5.9.06.1.4 age confidence

Release Notes

agronholm/cbor2 (cbor2)

v6.1.4

Compare Source

  • Fixed frozendict deriving its hash from its keys and its values as two independent sets, so that frozendicts holding the same keys and the same values all collided regardless of how the two were paired; since the decoder builds a frozendict for every map in an immutable position, a payload keyed by such maps decoded in quadratic time (#​333; PR by @​sahvx655-wq)
  • Fixed the encoder not registering bytearray values in the string reference namespace, unlike bytes and str; since the decoder registers every byte string it reads, a single bytearray desynchronised the namespace and made subsequent string references resolve to the wrong value (#​332; PR by @​sahvx655-wq)
  • Fixed the decoder silently accepting an indefinite-length map whose break marker arrives after a key with no value, dropping that trailing key and returning a truncated map instead of rejecting the ill-formed input (#​331; PR by @​sahvx655-wq)
  • Fixed the decoder accepting a non-byte-string payload for a positive or negative bignum (tags 2 and 3). int.from_bytes() also accepts an array (or a map, whose keys it iterates), so a tag wrapping one of those was coerced into an integer instead of being rejected as malformed (#​326; PR by @​sahvx655-wq)

v6.1.3

Compare Source

  • Fixed the decoder registering 6-byte strings in the string reference namespace at indices 65536–4294967295 where the encoder does not, desynchronising the namespace and resolving later string references to the wrong value (#​313; PR by @​sahvx655-wq)
  • Fixed the IPv4/IPv6 network decoders (tags 52 and 54) silently truncating an address byte string that is longer than the address size instead of rejecting it as malformed (#​309; PR by @​sahvx655-wq)
  • Fixed quadratic decoding time for indefinite-length and large definite-length byte and text strings, caused by concatenating each chunk onto the accumulated result with + instead of building the result once (#​316; PR by @​sahvx655-wq)
  • Fixed datetime_as_timestamp encoding whole-second datetimes before 1970 or after 2106 as floats instead of integers, because the timestamp was narrowed through an unsigned 32-bit integer (#​317; PR by @​sahvx655-wq)
  • Fixed the encoder measuring text strings by code point count instead of UTF-8 byte length when deciding whether to add them to the string reference namespace, desynchronising it from the decoder (which counts bytes) and corrupting later string references for non-ASCII strings (#​314; PR by @​sahvx655-wq)
  • Fixed the decoder rejecting scoped IPv6 addresses (tag 54) with a CBORDecodeError reading invalid types in input array; the encoder emits them as [address, null, zone id] but the decoder only handled the network and interface array forms, so a scoped ~ipaddress.IPv6Address could not be decoded back (#​324; PR by @​sahvx655-wq)

v6.1.2

Compare Source

  • Fixed incorrect tracking of string references for definite-length text strings of length greater than 65536 (#​308; PR by @​sahvx655-wq)
  • Fixed cbor2.load() crash caused by incorrect handling of internal read buffer extension during stream deserialization. (#​307; PR by @​noderyos)

v6.1.1

Compare Source

  • Fixed cbor2.load() returning corrupted data for payloads exceeding 4096 bytes (#​304)

v6.1.0

Compare Source

  • Added the allow_duplicate_keys parameter to CBORDecoder, load and loads (default: True). When set to False, a CBORDecodeError is raised upon encountering a duplicate key within the same map. (#​283)
  • Added support for decoding from any object supporting the buffer API (e.g. memoryview or bytearray) in addition to bytes (#​297)
  • Fixed compatibility issues with 32-bit systems (#​300)

v6.0.1

Compare Source

  • Fixed an error in the mutability logic during decoding, leading to values being decoded as immutable in unexpected places (#​295)

v6.0.0

Compare Source

  • No changes since v6.0.0rc1

Configuration

📅 Schedule: (UTC)

  • 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 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 was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/cbor2-6.x-lockfile branch from b296a42 to 5319229 Compare April 29, 2026 00:33
@renovate
renovate Bot force-pushed the renovate/cbor2-6.x-lockfile branch 2 times, most recently from 2a3bc01 to a19b521 Compare May 14, 2026 14:13
@renovate
renovate Bot force-pushed the renovate/cbor2-6.x-lockfile branch from a19b521 to 47a8870 Compare June 2, 2026 19:13
@renovate
renovate Bot force-pushed the renovate/cbor2-6.x-lockfile branch from 47a8870 to f656c9e Compare June 19, 2026 08:13
@renovate
renovate Bot force-pushed the renovate/cbor2-6.x-lockfile branch from f656c9e to f56b51d Compare July 4, 2026 14:29
@renovate
renovate Bot force-pushed the renovate/cbor2-6.x-lockfile branch from f56b51d to 17212e8 Compare August 1, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants