---
title: "cbor2 6.2.0 Breaking Changes on PyPI | Since.dev"
description: "What each cbor2 release removed, renamed or changed: 22 breaking changes in 5 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/cbor2
last_updated: 2026-12-04
---

# cbor2 breaking changes

cbor2 6.2.0 (November 1, 2026) is its newest release with breaking changes, 4 of them. The first: Decoder now rejects non-integer decimal fraction and bigfloat parts in cbor2 6.2.0. Every breaking API change we have recorded in cbor2 on PyPI: 22 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.3.0`, released November 13, 2026. [Source repository](https://github.com/agronholm/cbor2)

Its 6.0.0rc1 release drops [Python 3.9](https://since.dev/calendar/python/3.9.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [6.1.3](#v-6-1-3) to [6.2.0](#v-6-2-0): 8 breaking changes in 3 versions.

## cbor2 6.2.0 breaking changes

cbor2 6.2.0, released November 1, 2026: 4 breaking changes.

- **Behavior changed**  

Decimal fractions (tag 4) and bigfloats (tag 5) with a non-integer exponent or mantissa are now rejected instead of accepted. Data relying on them will raise errors. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.2.0)
- **Behavior changed**  

Bytes regular expression patterns are encoded as the pattern rather than its repr(), so previously encoded tag 35 data decodes differently. Code depending on the old output must be updated. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.2.0)
- **Behavior changed**  

Shared references (tag 29) can no longer build object graphs nested deeper than max_depth. Inputs that previously decoded at excessive depth may now be rejected. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.2.0)
- **Behavior changed**  

Set tag 258 whose payload is a text string, byte string or map is now rejected instead of being folded into a set. Code relying on the old lenient decoding must send proper arrays. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.2.0)

## cbor2 6.1.5 breaking changes

cbor2 6.1.5, released October 1, 2026: 1 breaking change.

- **Behavior changed**  

Datetimes in string form without a UTC offset are no longer decoded into naive datetime objects and now raise an error instead. Code relying on the old naive result must supply an offset or handle the error. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.1.5)

## cbor2 6.1.4 breaking changes

cbor2 6.1.4, released August 1, 2026: 3 breaking changes.

- **Behavior changed**  

bytearray values now take part in string references as bytes and str do, so encoded output for payloads mixing bytearray with string references changes. Re-encode stored data if it relies on the old output. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.1.4)
- **Behavior changed**  

Bignum tags (2 and 3) whose payload is not a byte string, such as an array or map, now raise an error instead of being coerced into an integer. Code relying on the coercion must send byte strings. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.1.4)
- **Behavior changed**  

Malformed indefinite-length maps whose break marker follows a key with no value now raise an error instead of silently returning a truncated map. Handle the error if your input may contain such data. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.1.4)

## cbor2 6.1.3 breaking changes

cbor2 6.1.3, released July 4, 2026: 1 breaking change.

- **Behavior changed**  

Tags 52 and 54 used to silently truncate address byte strings longer than the address size; they now raise a malformed-input error. Code relying on the truncated result must handle the error. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.1.3)

## cbor2 6.0.0rc1 breaking changes

cbor2 6.0.0rc1, released April 28, 2026: 13 breaking changes.

- **Removed**  

The individual decoding functions are no longer part of the public API. Open an issue if you need them back. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Removed**  

Python 3.9 is no longer supported. Use Python 3.10 or later. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Removed** `break_marker`  

The break_marker singleton is no longer available. Remove any code that imports or uses it. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Removed** `cbor2.decoder`  

The deprecated cbor2.decoder module is gone. Import everything directly from cbor2. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Removed** `cbor2.encoder`  

The deprecated cbor2.encoder module is gone. Import everything directly from cbor2. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Removed** `CBORDecodeValueError`  

Decoding errors now chain ValueError or TypeError to CBORDecodeError. Catch CBORDecodeError instead of CBORDecodeValueError. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Renamed** `cbor2.FrozenDict`  

The FrozenDict class is now called frozendict. On Python 3.15 use the built-in frozendict instead. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Behavior changed**  

Non-base exceptions raised during decoding are now wrapped in CBORDecodeError. Code catching other exception types may need updating. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Behavior changed**  

The decoder now rejects invalid two-byte simple value sequences that it previously accepted. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)
- **Behavior changed**  

Tag 261 with host bits set now yields an IPv4Interface or IPv6Interface. Code expecting a network address object must handle this. [github.com](https://github.com/agronholm/cbor2/releases/tag/6.0.0rc1)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
