---
title: "libbson 2.2.0 Breaking Changes on vcpkg | Since.dev"
description: "What each libbson release removed, renamed or changed: 18 breaking changes in 4 versions on vcpkg, each with its source."
canonical_url: https://since.dev/packages/vcpkg/libbson
last_updated: 2026-12-04
---

# libbson breaking changes

libbson 2.2.0 is its newest release with breaking changes. The first: Drops Visual Studio 2015 support in libbson 2.2.0. Every breaking API change we have recorded in libbson on vcpkg: 18 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.6.0`, released December 3, 2026. [Source repository](https://github.com/mongodb/mongo-c-driver)

- From [2.0.0](#v-2-0-0) to [2.2.0](#v-2-2-0): 4 breaking changes in 3 versions.

## libbson 2.2.0 breaking changes

libbson 2.2.0: 1 breaking change.

- **Removed**  

Use Visual Studio 2017 or newer. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.2.0)

## libbson 2.1.0 breaking changes

libbson 2.1.0: 2 breaking changes.

- **Removed**  

Builds on Debian 9 and Debian 10 are no longer supported. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.1.0)
- **Configuration changed**  

The CMake project now sets a policy max version of 4.0, which can change how builds configure. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.1.0)

## libbson 2.0.2 breaking changes

libbson 2.0.2: 1 breaking change.

- **Behavior changed** `bson_validate`  

Invalid UTF-8 is now rejected with BSON_VALIDATE_UTF8, and nesting depth is limited during validation. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.2)

## libbson 2.0.0 breaking changes

libbson 2.0.0: 14 breaking changes.

- **Removed**  

Use find_package(bson with a version range) instead. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_array_as_json`  

Use bson_array_as_legacy_extended_json for legacy output, or Canonical or Relaxed Extended JSON for portable output. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_as_json`  

Use bson_as_legacy_extended_json for legacy output, or Canonical or Relaxed Extended JSON for portable output. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_atomic_*`  

The deprecated atomic and threading functions are gone. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_cmp_*`  

The deprecated integral comparison functions are gone. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_copy_to_excluding`  

Use bson_copy_to_excluding_noinit instead. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_in_range_*`  

The deprecated integral range comparison functions are gone. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `bson_thrd_yield`  

The deprecated threading function is gone. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Removed** `ENABLE_EXTRA_ALIGNMENT`  

Builds that set this deprecated CMake option will no longer have it. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)
- **Renamed**  

The libbson-1.0 pkg-config files are now bson2 and bson2-static, so build scripts must change. [github.com](https://github.com/mongodb/mongo-c-driver/releases/tag/2.0.0)

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

## Related packages

- [mongo-c-driver](https://since.dev/packages/vcpkg/mongo-c-driver.md)

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