---
title: "github.com/rgb/xitdb-swift 0.8.0 Breaking Changes"
description: "What each github.com/rgb/xitdb-swift release removed, renamed or changed: 36 breaking changes in 5 versions on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/rgb/xitdb-swift
last_updated: 2026-12-04
---

# github.com/rgb/xitdb-swift breaking changes

github.com/rgb/xitdb-swift 0.8.0 (December 2, 2026) is its newest release with breaking changes, 3 of them. The first: Renamed Durability.none. Every breaking API change we have recorded in github.com/rgb/xitdb-swift on Swift Package Index: 36 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 `0.8.3`, released December 3, 2026. [Source repository](https://github.com/rgb/xitdb-swift)

- From [0.4.0](#v-0-4-0) to [0.8.0](#v-0-8-0): 24 breaking changes in 4 versions.

## github.com/rgb/xitdb-swift 0.8.0 breaking changes

github.com/rgb/xitdb-swift 0.8.0, released December 2, 2026: 3 breaking changes.

- **Renamed** `Durability.none`  

Durability.none is now Durability.unsynced, and the word none in text is kept for both lock and durability. Code using Durability.none or durability: .none must change to Durability.unsynced. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.8.0)
- **Behavior changed** `XitDBError.storageFailure`  

A lock held by another opener is now XitDBError.lockHeld, of kind .storage, rather than storageFailure(errno:). Code that catches storageFailure for a held lock must catch lockHeld. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.8.0)
- **Signature changed** `FileLock`  

The lock: parameter of fifteen initialisers no longer accepts nil or an optional FileLock, and FileLock gains a three-case form. Pass a FileLock value, using .unlocked for no lock. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.8.0)

## github.com/rgb/xitdb-swift 0.7.0 breaking changes

github.com/rgb/xitdb-swift 0.7.0, released December 2, 2026: 9 breaking changes.

- **Behavior changed**  

Every tree descent reads at most 64 nodes, so a tree whose leaf is the sixty-fifth node now fails with invalidBTreeNode. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed**  

Lookups, writes, compactions, remove neighbours and join bottom nodes that reach a branch with no children now fail with invalidBTreeNode. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `applyReplicated`  

A range whose end passes 2^64 or a full copy shorter than the smallest database now fails with invalidRange before the source is read, instead of the earlier errors. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `Durability`  

A client's own Codable or RawRepresentable conformance to Durability gets a warning and is replaced by the library's word encoding; data coded in the client's old words must be read by hand. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `FileAccess`  

A client's own Codable or RawRepresentable conformance to FileAccess gets a warning and is replaced by the library's word encoding; data coded in the client's old words must be read by hand. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `FileLock`  

A client's own Codable or RawRepresentable conformance to FileLock gets a warning and is replaced by the library's word encoding; data coded in the client's old words must be read by hand. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `FileReading`  

A client's own Codable or RawRepresentable conformance to FileReading gets a warning and is replaced by the library's word encoding; data coded in the client's old words must be read by hand. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `XitDBError`  

A switch over XitDBError or XitDBError.Code without a default must handle the new overflow case. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)
- **Behavior changed** `XitDBError.Code.invalidBTreeNode`  

Appending, inserting or joining into a linked array list whose size would pass 2^64 − 1 now throws overflow instead of invalidBTreeNode. Code that matches the old error must match overflow. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.7.0)

## github.com/rgb/xitdb-swift 0.6.0 breaking changes

github.com/rgb/xitdb-swift 0.6.0, released November 20, 2026: 9 breaking changes.

- **Removed** `FileAccess.readOnly`  

FileStorage(path:access: .readOnly) and BufferedFileStorage(path:access: .readOnly) no longer compile. Open a ReadOnlyFileStorage and a ReadOnlyDatabase over it instead. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Removed** `FileStorage.access`  

Whether a file storage can write is now expressed by its type, so code reading FileStorage.access must change. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Behavior changed**  

A snapshot taken before a full copy onto a file now reads the old file whole instead of failing with snapshotOverwritten. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Behavior changed**  

A failed or interrupted full copy onto a file storage leaves the old database as it was. Programs that detected a failed copy by invalidDatabase no longer find it. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Behavior changed**  

The lock belongs to the storage alone and is released when the storage goes or is closed, not when the last snapshot is released. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Behavior changed** `callerError`  

Two callerError values are equal when they carry errors of one type that are equal by that type's own ==, not when their descriptions match. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Behavior changed** `Database.recover`  

Recovery cuts past a sound root header only, not to later trailers. Use recover(\_:ignoringRootHeader: true) to recover by trailers as before. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Behavior changed** `MemoryStorage`  

An in-memory storage is limited to the machine's memory by default, and writes past the limit fail with maxSizeExceeded. Use maxSize: nil for no limit. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)
- **Signature changed** `XitDBError`  

Two new cases, memoryMapNeedsLock and storageClosed, were added, so a switch over XitDBError without a default must handle them. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.6.0)

## github.com/rgb/xitdb-swift 0.5.0 breaking changes

github.com/rgb/xitdb-swift 0.5.0, released November 15, 2026: 3 breaking changes.

- **Behavior changed**  

xitdb-dump --path now reports a missing step as no such place with exit code 1, instead of printing the whole root with exit code 0. Scripts relying on the old output or exit code must be updated. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.5.0)
- **Signature changed** `put`  

The keyed put on HashMap now takes a storingKey argument, defaulting to false. Protocols requiring put(\_:forKey:) and function references to it must name put(\_:forKey:storingKey:) or wrap it in a closure. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.5.0)
- **Signature changed** `putCursor`  

The keyed put cursor on HashMap now takes a storingKey argument, defaulting to false. Protocols requiring putCursor(forKey:) and function references to it must name putCursor(forKey:storingKey:). [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.5.0)

## github.com/rgb/xitdb-swift 0.4.0 breaking changes

github.com/rgb/xitdb-swift 0.4.0, released November 14, 2026: 12 breaking changes.

- **Removed** `KeyHashing.Digest`  

Hashers no longer declare a Digest type; a hasher writes its hash with hash(\_:into:) instead. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Removed** `KeyHashing.hash`  

A custom hasher must rewrite its function to write the hash into the buffer it is given. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Removed** `SipHash128`  

The SipHash128 hasher is gone; use SHA256 or Insecure.SHA1 instead. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Removed** `SipHash128Digest`  

The SipHash128Digest type is gone along with SipHash128. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Removed** `xitdb-dump --hash siphash128`  

The --hash option takes only sha256 and sha1 now. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Removed** `XitDBError.hashSizeMismatch`  

Code matching hashSizeMismatch must match invalidHashSize instead. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Removed** `XitDBStore`  

The XitDBStore module is gone in 0.4.0; code that imports it must use v0.3.0 or move off it. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Renamed** `SHA256.hash`  

Use SHA256.keyHash(of:) to get a key's hash as an array; a digest of data for its own sake is CryptoKit's. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Behavior changed** `xitdb-dump`  

An unfinished file is now reported with exit code 1 instead of 2. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)
- **Behavior changed** `XitDBError`  

A switch over XitDBError without a default must now handle noKeyHashing and invalidUTF8. [github.com](https://github.com/rgb/xitdb-swift/releases/tag/v0.4.0)

And 2 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.
