6.1.5
- Fixed :class:`CBORSimpleValue` hashing inconsistently with the integer it compares equal to
- Fixed canonical encoding with value sharing enabled emitting shared references to container
keys that were never written to the stream, because the throwaway encoding used to sort the keys
registered them as shared values; the output then failed to decode, or decoded with the wrong
keys substituted in
- Fixed shared references (tag 29) to a map or an unhandled tag resolving to the raw
:class:`dict` or :class:`CBORTag` instead of the value returned by ``object_hook`` or
``tag_hook``, a regression from 5.x
- Fixed the encoder not giving a nested stringref namespace (tag 256) its own index space
…
40bc3d5df1
adam
py-cbor2: updated to 6.1.4
6.1.4 (2026-08-01)
- Fixed :class:`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
- Fixed the encoder not registering :class:`bytearray` values in the string reference namespace,
unlike :class:`bytes` and :class:`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
- Fixed the decoder silently accepting an indefinite-length map whose break marker arrives after a
…
b650a403fc
adam
Remove scm info from PLIST - fixed in latest setuptools_scm
0354e794b0
adam
py-cbor2: updated to 6.1.3
6.1.3 (2026-07-04)
- 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
- 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
- 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
- Fixed ``datetime_as_timestamp`` encoding whole-second datetimes before 1970 or after 2106 as
…
This site uses Google Analytics cookies to count visits and see which pages are read.
No cookie is set until you accept. What is collected