NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #609 most downloaded on NuGet
Analyzers and source generator for MessagePack for C#. Verify rules for [MessagePackObject] and code fix for [Key]. A roslyn source generator for AOT or faster startup of applications that use the MessagePack nuget package.
Latest stable
3.1.12
Last release 1 months ago
12 Oct 2026
Ships unpredictably
gaps range from 8 days to 11 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
4 versions withdrawn
withdrawn after publishing
127 years old
91 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
This list of changes was auto generated.
#854: Port fix to Sequence<T> from Nerdbank.Streams
#852: Link For Unity is broken.
#853: Remove sandbox\XamarinAndroid
#849: Remove unused ENABLE_UNSAFE_MSGPACK
#848: Replaced Span<T>.Fill(0) with Span<T>.Clear() <details><summary><b>See More</b></summary>
#830: Generics in mpc 2 simpler faster
#843: mpc fix, generate collect class name in nested enum.
#825: Rename writer -> reader in BuildDeserialize
This list of changes was auto generated.</details>
## Changes: ### Fixes: * #795: avoid ReadUnaligned on long, ulong, double in Android device * #811: Fix MessagePackSecurity.GetEqualityComparer to not
Your coding agent can read these notes before it upgrades. Set up the MCP server →
MessagePackSecurity.GetEqualityComparer<object> to not return null🔒 Security fixes are included in this release. Read more in our security advisory.
🔒 Security fixes are included in this release. Read more in our security advisory.
ConvertToJson#790: Add the leaveOpen flag to MessagePackStreamReader
#788: Respect EnumMemberAttribute when serializing enum values as strings
#253: Default resolver deserializes ICollection<T> as T[]
#771: Add WriteBinHeader and WriteStringHeader methods to MessagePackWriter <details><summary><b>See More</b></summary>
#767: Add MessagePackReader.TryRead*Header methods
#726: Add MessagePackStreamReader.ReadArrayAsync
#757: Wrap all exceptions thrown from ConvertToJson in MessagePackSerializationException
#735: Make MessagePackReader.ReadDateTime(ExtensionHeader) public
TypelessFormatter.BindToType changeThis list of changes was auto generated.</details>
This list of changes was auto generated.
ConvertToJson in ext formatReadOnlySequence<byte> that it deserializedThis list of changes was auto generated.
Upgrading from 1.x? See our migration doc.
Upgrading from 1.x? See our migration doc.
IBufferWriter<byte> overload to NonGeneric API<details><summary><b>See More</b></summary>
This list of changes was auto generated.</details>
This list of changes was auto generated.
#695: Avoid double-enumeration when serializing unknown collection types
#693: Bring back -rc suffix
#691: Replace all creation of Sequence<byte> except in SequencePool <details><summary><b>See More</b></summary>
#688: new Sequence should not use because that allocate many small buffers.
#687: Remove formatter instance cache from TypelessFormatter
#689: Avoid the large object heap (LOH) for LZ4 buffers
#686: Remove private resolver list from DynamicObjectTypeFallbackFormatter
#685: Use recycled Sequence<T> for LZ4 compression
#679: Why does DynamicObjectTypeFallbackFormatter have a private collection of resolvers?
#682: Update documentation for removal of LZ4Standard
#676: Documentation errors
#673: Remove explicit MessagePack.Annotations dependency from extension packages
#674: Document location of our CI feed
This list of changes was auto generated.</details>
diff --git a/src/MessagePack/PublicAPI.Unshipped.txt b/src/MessagePack/PublicAPI.Unshipped.txt
index 275f4c3..69cbbaf 100644
-MessagePack.Formatters.DynamicObjectTypeFallbackFormatter.DynamicObjectTypeFallbackFormatter(params MessagePack.IFormatterResolver[] innerResolvers) -> void
-MessagePack.Formatters.TypelessFormatter.TypelessFormatter() -> void
+MessagePack.MessagePackCompression
+MessagePack.MessagePackCompression.Lz4Block = 1 -> MessagePack.MessagePackCompression
+MessagePack.MessagePackCompression.Lz4BlockArray = 2 -> MessagePack.MessagePackCompression
+MessagePack.MessagePackCompression.None = 0 -> MessagePack.MessagePackCompression
-MessagePack.MessagePackSerializerOptions.MessagePackSerializerOptions(MessagePack.IFormatterResolver resolver, bool useLZ4Compression = false) -> void
+MessagePack.MessagePackSerializerOptions.Compression.get -> MessagePack.MessagePackCompression
+MessagePack.MessagePackSerializerOptions.MessagePackSerializerOptions(MessagePack.IFormatterResolver resolver) -> void
-MessagePack.MessagePackSerializerOptions.UseLZ4Compression.get -> bool
-MessagePack.MessagePackSerializerOptions.WithLZ4Compression(bool useLZ4Compression = true) -> MessagePack.MessagePackSerializerOptions
+MessagePack.MessagePackSerializerOptions.WithCompression(MessagePack.MessagePackCompression compression) -> MessagePack.MessagePackSerializerOptions
-MessagePack.Resolvers.TypelessObjectResolver.Formatter.get -> MessagePack.Formatters.TypelessFormatter
-MessagePack.Resolvers.TypelessObjectResolver.Formatter.set -> void
-MessagePack.Resolvers.TypelessObjectResolver.TypelessObjectResolver() -> void
-static MessagePack.MessagePackSerializerOptions.LZ4Standard.get -> MessagePack.MessagePackSerializerOptions
+static readonly MessagePack.Formatters.DynamicObjectTypeFallbackFormatter.Instance -> MessagePack.Formatters.IMessagePackFormatter<object>
+static readonly MessagePack.Formatters.TypelessFormatter.Instance -> MessagePack.Formatters.IMessagePackFormatter<object>
-static readonly MessagePack.Resolvers.ContractlessStandardResolver.ObjectFallbackFormatter -> MessagePack.Formatters.IMessagePackFormatter<object>
-static readonly MessagePack.Resolvers.ContractlessStandardResolverAllowPrivate.ObjectFallbackFormatter -> MessagePack.Formatters.IMessagePackFormatter<object>
-static readonly MessagePack.Resolvers.StandardResolver.ObjectFallbackFormatter -> MessagePack.Formatters.IMessagePackFormatter<object>
-static readonly MessagePack.Resolvers.StandardResolverAllowPrivate.ObjectFallbackFormatter -> MessagePack.Formatters.IMessagePackFormatter<object>
+static readonly MessagePack.Resolvers.TypelessObjectResolver.Instance -> MessagePack.IFormatterResolver
This list of changes was auto generated.
#648: Move extension type codes
#649: Add v1->v2 migration doc
#632: Add MessagePackReader.ReadRaw()
#608: Offer MessagePackSerializerOptions to collection deserializers <details><summary><b>See More</b></summary>
#609: Add fast path for reading consecutive strings/byte arrays
#513: v2 StringKey(Contractless) deserialization is slow
#603: Add CancellationToken to reader/writer structs
#598: Take CancellationToken parameter in serialize/deserialize methods
#582: Improve compatibility with existing types
#594: Add CancellationToken parameters to synchronous Stream (de)serialize methods
#595: Apply vs-threading analyzers and fix issues they found
#444: TypelessFormatter blacklist handling is insufficient
#576: [Request] NonGeneric Serialize method with the MessagePackWriter
#574: Don't convert Span to array before pinning
MessagePack.GeneratorThis list of changes was auto generated.</details>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This list of changes was auto generated.
#810: MessagePackSecurity.GetEqualityComparer<object> returns null on copied instances
#813: Add secure hashing for enums with backing integers of 32-bit or less
This list of changes was auto generated.
🔒 Security fixes are included in this release. Read more in our security advisory.
🔒 Security fixes are included in this release. Read more in our security advisory.
No other changes are included in this release relative to v1.8
Nothing published for this version
Adjust assembly version from 1.8.74.32478 to simply 1.8.0.0
Very few changes since 1.7, but now building from a more serviceable branch.
Very few changes since 1.7, but now building from a more serviceable branch.
Nothing published for this version
This release inproved string key object deserialization performance, x2.5 faster than previous version by automata based name lookup. Details, please
This release inproved string key object deserialization performance, x2.5 faster than previous version by automata based name lookup. Details, please see Deserialize Perfomrance per options section.
v1.6.0 has bug of string key code generation, please use v1.6.0.1
From this version, when serializing the object type, concrete type is acquired from GetType. This is because some frameworks require such behaviors(su
From this version, when serializing the object type, concrete type is acquired from GetType.
This is because some frameworks require such behaviors(such as SignalR).
StandardResolver and ContractlessStandardResolver 's serialize allows object typeStandardResolver supports anonymous type serializeFromJson performanceLZ4MessagePackSerializer.FromJsonLZ4MessagePackSerializer.ToLZ4BinaryMessagePackBinary.GetExtensionFormatHeaderLengthMessagePackBinary.ReadExtensionFormatHeader(Stream) read header onlyMessagePackBinary.ReadMessageBlockFromStream, MessagePackSerializer.Deserialize(bool readStrict:true) read full message block from streamv1.5.0 has bug of object type serialization of StandardResolver and ContractlessStandardResolver, please use v1.5.0.1
v1.5.0.2 is added improve
StandardResolversupports anonymous type serialize
new typeless APIs, thanks @avtc
new typeless APIs, thanks @avtc
Add (LZ4)MessagePackSerializer.Typeless API
Add TypelessObjectFormatter
Add TyplessObjectResolver
Add TypelessContractlessStandardResolver
Add MessagePackFormatterAttribute Fix UrlFormatter #55, thanks @lostmsu Fix mpc.exe, support generates two/three/four dimentional array
Add MessagePackFormatterAttribute
Fix UrlFormatter #55, thanks @lostmsu
Fix mpc.exe, support generates two/three/four dimentional array
Add PrimitiveObjectResolver, StandardResolver uses it to finaly resolve Add Write*Force*Block to all interger types Fix DynamicContractlessObjectResol
Add PrimitiveObjectResolver, StandardResolver uses it to finaly resolve Add WriteForceBlock to all interger types Fix DynamicContractlessObjectResolver can not serialize nested type
Fix decimal deserialization when culture is estonian #22, thanks @egertaia Unity version supports LZ4MessagePackSerializer on default(safe mode) Unity
Fix decimal deserialization when culture is estonian #22, thanks @egertaia Unity version supports LZ4MessagePackSerializer on default(safe mode) Unity LZ4MessagePackSerializer is changed to use safe LZ4Codec Fix Typo in error message and analyzer code #26, thanks @hafuu Add OldSpecResolver #20 Fix Global class code generation result was shown "error CS1001" #19, thanks @kou-yeung
Nothing published for this version
This servicing release fixes a security issue with the deserializer to prevent unbounded memory allocations from relatively small MessagePack payloads
This servicing release fixes a security issue with the deserializer to prevent unbounded memory allocations from relatively small MessagePack payloads.
One column per quarter.