---
title: "github.com/valpackett/swiftcbor 0.7.0 Breaking Changes"
description: "What each github.com/valpackett/swiftcbor release removed, renamed or changed: 6 breaking changes in 1 version on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/valpackett/swiftcbor
last_updated: 2026-12-04
---

# github.com/valpackett/swiftcbor breaking changes

github.com/valpackett/swiftcbor 0.7.0 (November 26, 2026) is its newest release with breaking changes, 6 of them. The first: Renamed CBOROptions.shouldShortMapKeys. Every breaking API change we have recorded in github.com/valpackett/swiftcbor on Swift Package Index: 6 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.7.1`, released December 4, 2026. [Source repository](https://github.com/valpackett/SwiftCBOR)

## github.com/valpackett/swiftcbor 0.7.0 breaking changes

github.com/valpackett/swiftcbor 0.7.0, released November 26, 2026: 6 breaking changes.

- **Renamed** `CBOROptions.shouldShortMapKeys`  

The CBOROptions initializer label shouldShortMapKeys was corrected to shouldSortMapKeys; code using the old label must be updated. [github.com](https://github.com/valpackett/SwiftCBOR/blob/v0.7.0/CHANGELOG.md)
- **Behavior changed** `CBOR.encodeUInt16`  

Malformed CBOR input now throws decoding errors in several cases where it previously trapped or was accepted, and maximumDepth is enforced in Codable decoding containers. [github.com](https://github.com/valpackett/SwiftCBOR/blob/v0.7.0/CHANGELOG.md)
- **Default changed** `CBOR.encodeUInt16`  

General-purpose integer and floating-point encoding now uses preferred shortest-width output by default, changing bytes for some UInt16, UInt32, UInt64, Float and Double values. Set useShortestIntegerEncoding or useShortestFloatEncoding to... [github.com](https://github.com/valpackett/SwiftCBOR/blob/v0.7.0/CHANGELOG.md)
- **Default changed** `CBOROptions.rejectDuplicateMapKeys`  

Duplicate map keys continue to keep the last value by default; enabling rejectDuplicateMapKeys is now needed to throw an error instead. [github.com](https://github.com/valpackett/SwiftCBOR/blob/v0.7.0/CHANGELOG.md)
- **Default changed** `CodableCBOREncoder.shouldSortMapKeys`  

CodableCBOREncoder now sorts map entries by encoded key bytes by default. Set shouldSortMapKeys to false to keep the previous order. [github.com](https://github.com/valpackett/SwiftCBOR/blob/v0.7.0/CHANGELOG.md)
- **Configuration changed**  

The minimum Apple platform versions are now macOS 12, iOS 15, tvOS 15, Mac Catalyst 15 and watchOS 9. Projects targeting older platforms must raise their deployment targets. [github.com](https://github.com/valpackett/SwiftCBOR/blob/v0.7.0/CHANGELOG.md)

## Related packages

- [SwiftCBOR](https://since.dev/packages/cocoapods/SwiftCBOR.md):  on CocoaPods

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