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

# messagepack.annotations breaking changes

messagepack.annotations 4.0.0 (December 4, 2026) is its newest release with breaking changes, 38 of them. The first: Removed CompositeResolver.Create. Every breaking API change we have recorded in messagepack.annotations on NuGet: 43 breaking changes in 2 versions. Below, its 2 versions 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/MessagePack-CSharp)

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

- From [4.0.0-rc.1](#v-4-0-0-rc-1) to [4.0.0](#v-4-0-0): 38 breaking changes in 1 version.

## messagepack.annotations 4.0.0 breaking changes

messagepack.annotations 4.0.0, released December 4, 2026: 38 breaking changes.

- **Removed** `CompositeResolver.Create`  

Combine factories with MessagePackFormatterFactory.Combine. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePack.IgnoreMemberAttribute`  

MessagePack.IgnoreMemberAttribute was removed in MessagePack.Annotations 4.0.0 [nuget.org](https://www.nuget.org/packages/MessagePack.Annotations/4.0.0)
- **Removed** `MessagePack.IMessagePackSerializationCallbackReceiver`  

MessagePack.IMessagePackSerializationCallbackReceiver was removed in MessagePack.Annotations 4.0.0 [nuget.org](https://www.nuget.org/packages/MessagePack.Annotations/4.0.0)
- **Removed** `MessagePack.KeyAttribute`  

MessagePack.KeyAttribute was removed in MessagePack.Annotations 4.0.0 [nuget.org](https://www.nuget.org/packages/MessagePack.Annotations/4.0.0)
- **Removed** `MessagePack.MessagePackFormatterAttribute`  

MessagePack.MessagePackFormatterAttribute was removed in MessagePack.Annotations 4.0.0 [nuget.org](https://www.nuget.org/packages/MessagePack.Annotations/4.0.0)
- **Removed** `MessagePack.MessagePackObjectAttribute`  

MessagePack.MessagePackObjectAttribute was removed in MessagePack.Annotations 4.0.0 [nuget.org](https://www.nuget.org/packages/MessagePack.Annotations/4.0.0)
- **Removed** `MessagePack.SerializationConstructorAttribute`  

MessagePack.SerializationConstructorAttribute was removed in MessagePack.Annotations 4.0.0 [nuget.org](https://www.nuget.org/packages/MessagePack.Annotations/4.0.0)
- **Removed** `MessagePackAnalyzer`  

The separate analyzer package is removed; analyzers ship inside the MessagePack package. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePackAssumedFormattable`  

Declare the type with the assembly-level MessagePackKnownType attribute instead. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePackKnownFormatter`  

Generated formatters register themselves, so these attributes must be removed. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePackReader.NextCode`  

Use TryPeek with an out byte to read the next code. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePackSerializer.DefaultOptions`  

Pass the options to each call instead of setting a global default. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePackSerializer.Deserialize`  

The overload with an out bytesRead parameter is gone; use DeserializeMessagesAsync for streams. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `MessagePackStreamReader`  

Use DeserializeMessagesAsync or DeserializeElementsAsync instead. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `NativeGuidResolver`  

Use MessagePackFormatterFactory.DotNetOptimized, which also changes DateTime, DateTimeOffset and BitArray. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `options.WithResolver`  

Use a with-expression to set the Resolver property instead. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `options.WithSecurity`  

Untrusted-data security is on by default, so the call is removed. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `StandardResolver.Instance`  

Use MessagePackFormatterFactory.Default instead. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `Union`  

Union tags that take an assembly-qualified name string are removed; use typeof. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `UnityBlitResolver`  

UnityBlitResolver and UnityBlitWithPrimitiveArrayResolver are gone with no replacement. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Removed** `UnityResolver`  

Use MessagePackFormatterFactory.Default.WithUnity() instead. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Renamed** `IFormatterResolver`  

Use MessagePackFormatterResolver where IFormatterResolver was used. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Renamed** `MessagePackReader.Consumed`  

Read BytesConsumed in place of Consumed. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Renamed** `MessagePackReader.ReadNil`  

Use TryReadNil in place of ReadNil and IsNil. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Renamed** `MessagePackSerializerOptions.Standard`  

Use MessagePackSerializerOptions.Default in place of Standard. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Renamed** `Union`  

Apply UnionTag to each subtype; the root type also needs MessagePackObject. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Behavior changed**  

Review NoWarn and editorconfig entries for MsgPack001 to MsgPack018. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Behavior changed**  

System.Type and ExpandoObject are no longer served by the default formatter chain. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Behavior changed** `Key`  

Renumber keys above 65,535, which now fail with MsgPack008. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Behavior changed** `MessagePackObjectAttribute`  

Subclasses of the attribute no longer compile; apply MessagePackObject directly. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Behavior changed** `MessagePackSerializer`  

Passing null options throws ArgumentNullException; pass options or use the overload without them. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Behavior changed** `MessagePackWriter.WriteInt32`  

The v3 names write the smallest encoding; use WriteForcedInt32 etc. for fixed width. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Default changed** `HashFloodingResistant`  

Collections are created with a hash-flooding-resistant comparer that persists after deserialization. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Default changed** `MaxDepth`  

Deeply nested payloads beyond 500 levels are rejected unless MaxDepth is raised. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Default changed** `options.WithLz4Block`  

Messages decompressing past 64 MB fail unless a larger maxDecompressedSize is passed. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Signature changed** `IMessagePackFormatter`  

Formatters are generic over buffers and no longer take options; rebuild every library that ships formatters. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Signature changed** `MessagePackFormatter`  

The attribute names a factory or open generic formatter, and its property is FactoryType. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)
- **Signature changed** `MessagePackSerializer.Deserialize`  

Pass memory.Span to Deserialize\<T> in place of the ReadOnlyMemory overload. [github.com](https://github.com/Cysharp/MessagePack-CSharp/blob/master/doc/migrating%5Fv3-v4.md)

## messagepack.annotations 4.0.0-rc.1 breaking changes

messagepack.annotations 4.0.0-rc.1, released December 4, 2026: 5 breaking changes.

- **Behavior changed**  

Non-generic collection subclasses under Typeless are written with each element's type name again. [github.com](https://github.com/Cysharp/MessagePack-CSharp/releases/tag/v4.0.0-rc.1)
- **Behavior changed**  

A constructor parameter missing from the payload now takes its declared default value. [github.com](https://github.com/Cysharp/MessagePack-CSharp/releases/tag/v4.0.0-rc.1)
- **Behavior changed** `MaxBufferedMessageSize`  

Non-positive values are now rejected for this setting. [github.com](https://github.com/Cysharp/MessagePack-CSharp/releases/tag/v4.0.0-rc.1)
- **Default changed** `ValidateNullableAnnotations`  

Nil for non-nullable members now throws on read and null throws on write unless the check is turned off. [github.com](https://github.com/Cysharp/MessagePack-CSharp/releases/tag/v4.0.0-rc.1)
- **Configuration changed**  

Netstandard assets now require System.IO.Pipelines and Microsoft.Bcl.AsyncInterfaces 8.0.0 instead of 10.0.0. [github.com](https://github.com/Cysharp/MessagePack-CSharp/releases/tag/v4.0.0-rc.1)

## Related packages

- [messagepack.aspnetcoremvcformatter](https://since.dev/packages/nuget/messagepack.aspnetcoremvcformatter.md)
- [messagepack](https://since.dev/packages/nuget/messagepack.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.
