Chaos.Mongo.EventStore 1.0.0-rc.1

This is a prerelease version of Chaos.Mongo.EventStore.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Chaos.Mongo.EventStore --version 1.0.0-rc.1
                    
NuGet\Install-Package Chaos.Mongo.EventStore -Version 1.0.0-rc.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Chaos.Mongo.EventStore" Version="1.0.0-rc.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Chaos.Mongo.EventStore" Version="1.0.0-rc.1" />
                    
Directory.Packages.props
<PackageReference Include="Chaos.Mongo.EventStore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Chaos.Mongo.EventStore --version 1.0.0-rc.1
                    
#r "nuget: Chaos.Mongo.EventStore, 1.0.0-rc.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Chaos.Mongo.EventStore@1.0.0-rc.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Chaos.Mongo.EventStore&version=1.0.0-rc.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Chaos.Mongo.EventStore&version=1.0.0-rc.1&prerelease
                    
Install as a Cake Tool

Chaos.Mongo.EventStore

GitHub License NuGet Version NuGet Downloads GitHub last commit GitHub Actions Workflow Status

Event sourcing for MongoDB with aggregate reconstruction, append-only event streams, optimistic concurrency, idempotency, checkpoints, and transactional callbacks.

Opt-in tamper evidence seals event streams into hash chains and anchors them with RFC 3161 timestamps, so modification, deletion and backdating can be proven to third parties, while personal data stays erasable. The evidence follows an open specification and can be verified without .NET.

Installation

dotnet add package Chaos.Mongo.EventStore

Quick start

Define an aggregate and event:

using Chaos.Mongo;
using Chaos.Mongo.EventStore;

public sealed class OrderAggregate : Aggregate
{
    public string CustomerName { get; set; } = string.Empty;
}

public sealed class OrderCreated : Event<OrderAggregate>
{
    public string CustomerName { get; set; } = string.Empty;

    public override void Execute(OrderAggregate aggregate)
        => aggregate.CustomerName = CustomerName;
}

Register the core MongoDB services and the event store:

services.AddMongo("mongodb://localhost:27017", "myDatabase")
    .WithEventStore<OrderAggregate>(eventStore => eventStore
        .WithEvent<OrderCreated>("OrderCreated")
        .WithCollectionPrefix("Orders"));

Append an event through IEventStore<TAggregate>:

var orderId = Guid.NewGuid();

var order = await eventStore.AppendEventsAsync(
[
    new OrderCreated
    {
        AggregateId = orderId,
        CustomerName = "Ada"
    }
]);

Package relationships

This package references Chaos.Mongo, which supplies the connection, dependency-injection, transaction, and configuration infrastructure. Chaos.Mongo.Outbox is optional and can be combined with event-store transactional callbacks when event changes must publish external messages reliably.

Documentation

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-rc.2 63 11/22/2026
1.0.0-rc.1 75 10/31/2026
0.9.0 173 9/6/2026
0.8.0 128 9/5/2026
0.7.1 158 8/25/2026
0.7.0 146 8/5/2026
0.6.0 143 7/22/2026
0.5.0 170 6/2/2026
0.4.0 149 4/11/2026
0.3.0 143 4/8/2026
0.2.0 140 3/30/2026
0.2.0-preview.2 107 2/22/2026

# v1.0.0-rc.1 (2026-10-31)

### 💥 Breaking Changes

- Configure the integrity collection names with a prefix (#228) by @chA0s-Chris
- Align outbox and queue option names (#227) by @chA0s-Chris
- Trim the EventStore public API and reshape the integrity types (#226) by @chA0s-Chris
- Trim the public API of Chaos.Mongo (#225) by @chA0s-Chris
- Trim the Outbox public API (#224) by @chA0s-Chris
- Target net10.0 only and lower dependency minimums (#222) by @chA0s-Chris
- Add IServiceProvider-aware AddMongo overloads and MongoBuilder.ConfigureOptions (#195) by @chA0s-Chris
- Fix event store dropping members inherited from intermediate base classes (#187) by @chA0s-Chris
- Separate stream position from aggregate revision with store-assigned versions, revision-based concurrency, GetAtRevisionAsync and observational events (#166) by @chA0s-Chris

### ✨ Features

- Resolve queue payload handlers in a per-item DI scope (#229) by @chA0s-Chris
- Add tamper-evidence verification to the event store with a stable, independently verifiable format (#200) by @chA0s-Chris
- Add IServiceProvider-based publisher factory to the transactional outbox (#197) by @chA0s-Chris
- Confirm TSA revocation status with CRLs issued after the token time (#190) by @chA0s-Chris
- Store timestamp evidence of tamper-evidence anchors once, so large CRLs no longer stall anchoring (#191) by @chA0s-Chris
- Fix corrected event store registrations failing until restart after a rejected configuration (#189) by @chA0s-Chris
- Add transactional erasure of personal data from sealed events to the event store (#184) by @chA0s-Chris
- Add integrity anchoring with RFC 3161 timestamp authorities to the event store (#172) by @chA0s-Chris
- Track changed event streams for tamper-evidence anchoring (#170) by @chA0s-Chris
- Add tamper-evident per-stream hash chains to the event store (#161) by @chA0s-Chris

### 🐛 Bug Fixes

- Fix published outbox messages staying pending when the processor stops (#178) by @chA0s-Chris

### 📚 Documentation

- Complete the 1.0 reference documentation and add a testing guide (#233) by @chA0s-Chris
- Add 1.0 upgrade guide, compatibility policy and requirements (#232) by @chA0s-Chris