---
title: "libcbor 0.15.0 Breaking Changes on Homebrew | Since.dev"
description: "What each libcbor release removed, renamed or changed: 16 breaking changes in 1 version on Homebrew, each with its source."
canonical_url: https://since.dev/packages/homebrew/libcbor
last_updated: 2026-12-04
---

# libcbor breaking changes

libcbor 0.15.0 is its newest release with breaking changes, 16 of them. The first: Removed \_cbor_map_add_key. Every breaking API change we have recorded in libcbor on Homebrew: 16 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.15.1`, released December 2, 2026. MIT license. [Source repository](https://github.com/PJK/libcbor)

## libcbor 0.15.0 breaking changes

libcbor 0.15.0: 16 breaking changes.

- **Removed** `_cbor_map_add_key`  

The internal \_cbor_map_add_key is no longer exported. Use cbor_map_add instead. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Removed** `_cbor_map_add_value`  

The internal \_cbor_map_add_value is no longer exported. Use cbor_map_add instead. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Removed** `cbor_decref`  

cbor_decref is now static inline in the headers, so binaries relying on its exported symbol or dlsym must be rebuilt against the new headers. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Removed** `cbor_incref`  

cbor_incref is now static inline in the headers, so binaries relying on its exported symbol must be rebuilt against the new headers. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Removed** `SANE_MALLOC`  

The SANE_MALLOC CMake option was removed. It only affected the test suite. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed**  

The build no longer links libm. Code that relied on libcbor to pull in libm must link it itself. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_array_handle`  

Empty definite arrays return NULL from cbor_array_handle on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy must be adjusted. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_bytestring_handle`  

Empty definite bytestrings return NULL from cbor_bytestring_handle on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy must be adjusted. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_encode_double`  

NaN values are now encoded with their original bit pattern instead of the canonical quiet NaN. Code that expects normalized NaN output will see different bytes. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_encode_single`  

NaN values are now encoded with their original bit pattern instead of the canonical quiet NaN. Code that expects normalized NaN output will see different bytes. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_load`  

Definite arrays and maps that declare more items than the input can hold are no longer preallocated up front. Clients that keep reading on CBOR_ERR_NOTENOUGHDATA need their own input size limit. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_map_handle`  

Empty definite maps return NULL from cbor_map_handle on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy must be adjusted. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_set_allocs`  

Custom free functions installed via cbor_set_allocs are now called with NULL for empty items and must accept it. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_stream_decode`  

Simple values 0 to 19 and 32 to 255 are now decoded as ctrl items instead of being rejected as malformed. Code that relied on rejecting them will behave differently. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Behavior changed** `cbor_string_handle`  

Empty definite strings return NULL from cbor_string_handle on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy must be adjusted. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Signature changed** `cbor_callbacks`  

struct cbor_callbacks has a new simple_value member that must be set. Use cbor_null_simple_value_callback or start from cbor_empty_callbacks. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)

## Related packages

- [libcbor](https://since.dev/packages/vcpkg/libcbor.md):  on vcpkg

## 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.
