---
title: "mastermemory.annotations 4.0.0 Breaking Changes on NuGet"
description: "What each mastermemory.annotations release removed, renamed or changed: 26 breaking changes in 1 version on NuGet, each with its source."
canonical_url: https://since.dev/packages/nuget/mastermemory.annotations
last_updated: 2026-12-04
---

# mastermemory.annotations breaking changes

mastermemory.annotations 4.0.0 (December 4, 2026) is its newest release with breaking changes, 26 of them. The first: MasterMemory.Annotations package no longer needed. Every breaking API change we have recorded in mastermemory.annotations on NuGet: 26 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 `4.0.0`, released December 4, 2026. [Source repository](https://github.com/Cysharp/MasterMemory)

Packages on NuGet run on .NET. [.NET end of life dates](https://since.dev/calendar/dotnet.md).

## mastermemory.annotations 4.0.0 breaking changes

mastermemory.annotations 4.0.0, released December 4, 2026: 26 breaking changes.

- **Removed**  

The attributes now live in MasterMemory; remove the MasterMemory.Annotations reference. [github.com](https://github.com/Cysharp/MasterMemory)
- **Removed** `DISABLE_MASTERMEMORY_METADATABASE`  

Set GenerateMetaDatabase = false in MasterMemoryGeneratorOptions instead. [github.com](https://github.com/Cysharp/MasterMemory)
- **Removed** `DISABLE_MASTERMEMORY_VALIDATOR`  

Set GenerateValidator = false in MasterMemoryGeneratorOptions instead. [github.com](https://github.com/Cysharp/MasterMemory)
- **Removed** `FindByGenderAndAge`  

Pass composite key members one by one instead of as a tuple. This also applies to TryFindBy and FindClosestBy. [github.com](https://github.com/Cysharp/MasterMemory/commit/987de699139fe2fa84b079818c1a700d753384ca)
- **Removed** `ImmutableBuilder`  

Use DatabaseBuilder, which provides ReplaceAll, AddOrReplace and Remove by primary key. [github.com](https://github.com/Cysharp/MasterMemory/commit/57242188aba4bb591e0d07c4f8211f7985623886)
- **Removed** `IsReturnNullIfKeyNotFound`  

FindBy of a unique key always throws KeyNotFoundException for a missing key. Use TryFindBy to check for a key that may be missing. [github.com](https://github.com/Cysharp/MasterMemory/commit/be1f431713a6c0b1309345f8829a83c815b0d20e)
- **Removed** `MasterMemoryFormatterFactory`  

Formatters are now registered with MessagePack by the generated code, so code that referenced the factory must be changed. [github.com](https://github.com/Cysharp/MasterMemory/commit/96e9cc0736af2e5e7da3db772d6e75e7dd71568d)
- **Removed** `MasterMemoryResolver`  

Remove its registration from StaticCompositeResolver and MessagePackSerializer.DefaultOptions; nothing replaces it. [github.com](https://github.com/Cysharp/MasterMemory)
- **Removed** `MemoryDatabase`  

Build the database with DatabaseBuilder.ToMemoryDatabase() instead. [github.com](https://github.com/Cysharp/MasterMemory)
- **Removed** `MemoryDatabaseOptions.Default`  

A database or builder given no options now gets options made for it. Create and pass your own MemoryDatabaseOptions where you need shared settings. [github.com](https://github.com/Cysharp/MasterMemory/commit/bffc30fa1204cbd9c1e853e029dfacfbb686a03b)
- **Removed** `RangeView`  

LINQ and other IEnumerable uses must call AsReadOnlyList() first. [github.com](https://github.com/Cysharp/MasterMemory)
- **Removed** `ShareInternedStrings`  

Databases read with the same MemoryDatabaseOptions now share interned strings, so this option is no longer needed. [github.com](https://github.com/Cysharp/MasterMemory/commit/bffc30fa1204cbd9c1e853e029dfacfbb686a03b)
- **Renamed** `Build`  

Use ToMemoryDatabase() where Build() was called on the old immutable builder. [github.com](https://github.com/Cysharp/MasterMemory)
- **Renamed** `Diff`  

Call AddOrReplace where Diff was used. [github.com](https://github.com/Cysharp/MasterMemory/commit/57242188aba4bb591e0d07c4f8211f7985623886)
- **Renamed** `DISABLE_MASTERMEMORY_*`  

Use GenerateMetaDatabase and GenerateValidator in MasterMemoryGeneratorOptions instead of the DISABLE_MASTERMEMORY\_\* symbols. [github.com](https://github.com/Cysharp/MasterMemory/commit/96e9cc0736af2e5e7da3db772d6e75e7dd71568d)
- **Renamed** `ToImmutableBuilder`  

Call db.ToDatabaseBuilder() where db.ToImmutableBuilder() was used. [github.com](https://github.com/Cysharp/MasterMemory)
- **Behavior changed** `StringComparisonOption`  

String keys were compared by culture in v3; v4 compares them by Ordinal or by their StringComparisonOption, so rebuild databases with v4. [github.com](https://github.com/Cysharp/MasterMemory)
- **Default changed**  

v3 compressed tables with LZ4 by default, while v4 does not compress them; to read a v3 database, install MessagePack.LZ4 and pass the Lz4BlockProcessor explicitly. [github.com](https://github.com/Cysharp/MasterMemory)
- **Default changed**  

Tables are no longer compressed by default. Install MessagePack.LZ4 and opt in to LZ4 if you need compression. [github.com](https://github.com/Cysharp/MasterMemory/releases/tag/4.0.0)
- **Signature changed** `FindByGenderAndAge`  

Calls that pass a composite key as a tuple must pass each member as its own argument; the same applies to TryFindBy, FindClosestBy and FindRangeBy. [github.com](https://github.com/Cysharp/MasterMemory)
- **Signature changed** `FindRangeBy***`  

The ascendant argument is gone; reverse the returned view with .Reverse instead. [github.com](https://github.com/Cysharp/MasterMemory)
- **Signature changed** `FindRangeByAge`  

Call FindRangeBy without ascendant, and use .Reverse on the returned view for descending order. [github.com](https://github.com/Cysharp/MasterMemory/commit/249bfb77e34ddfa2d4f5b414e8fb9200f70898af)
- **Signature changed** `FindRangeByGenderAndAge`  

Range lookups take the members of min and then of max as separate arguments instead of tuples. [github.com](https://github.com/Cysharp/MasterMemory/commit/987de699139fe2fa84b079818c1a700d753384ca)
- **Signature changed** `MemoryDatabase`  

Pass string interning and formatters through MemoryDatabaseOptions instead of the constructor parameters. [github.com](https://github.com/Cysharp/MasterMemory/commit/96e9cc0736af2e5e7da3db772d6e75e7dd71568d)
- **Signature changed** `RangeView`  

The constructor is now (array) or (array, offset, count). Update calls that passed the old four arguments. [github.com](https://github.com/Cysharp/MasterMemory/commit/249bfb77e34ddfa2d4f5b414e8fb9200f70898af)
- **Signature changed** `TableInfo.DumpAsJson`  

Pass MemoryDatabaseOptions instead of MessagePackSerializerOptions to DumpAsJson. [github.com](https://github.com/Cysharp/MasterMemory)

## Related packages

- [mastermemory](https://since.dev/packages/nuget/mastermemory.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.
