NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #173 most downloaded on NuGet
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
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 55 of the last 60 stable releases
9 versions withdrawn
withdrawn after publishing
127 years old
148 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
Fix TypelessFormatter convert primitive array to object array. #187, #189 Note: this is breaking changes
AnimationCurve, Keyframe, Matrix4x4, Gradient, Color32, RectOffset, LayerMask, Vector2Int, Vector3Int, RangeInt, RectInt, BoundsInt #178Only for NuGet version.
Only for NuGet version.
Fix AllowPrivateResolver can not deserialize constructor less struct
Improve Make OldSpecFormatters' constructor public #144, thanks @shimat Improve Make NativeDateTimeFormatter constructor public
Improve Make OldSpecFormatters' constructor public #144, thanks @shimat Improve Make NativeDateTimeFormatter constructor public
From this release, new supports .NET Standard 2.0, but .NET Standard 1.4 support was dropped.
From this release, new supports .NET Standard 2.0, but .NET Standard 1.4 support was dropped.
StandardResolverAllowPrivate and ContractlessStandardResolverAllowPrivate there can be serialize private memberMessagePackFormatterAtribute supports property and field.From this release, mpc.exe does not include in nuget package. Please download from this page, mpc.zip.
From this release, mpc.exe does not include in nuget package.
Please download from this page, mpc.zip.
UNITY_WSA symbol instead of legacy UNITY_METRO symbol #139, thanks @foobracompc.exe in MessagePack nuget packageThis release improved string key object serialization performance, x1.5~2.0 faster than previous version.
This release improved string key object serialization performance, x1.5~2.0 faster than previous version.
IDictionaryFormatter, IListFormatter and for there inherited collection(like ArrayList, Hashtable)IgnoreFormatter, usage see IgnoreFormatter sectionIMessagePackFormatter[]) overload0x7FFFFFC7, #118This 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
Improve TypelessSerializer performance, 8 times faster than previous version
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
Add MessagePackBinary.ReadStringSegment Add MessagePackSerializer.Deserialize(ArraySegment ) overload Fix PrimitiveObjectResolver's array/map does not
Add MessagePackBinary.ReadStringSegment
Add MessagePackSerializer.Deserialize(ArraySegment<byte>) overload
Fix PrimitiveObjectResolver's array/map does not use passed resolver #92
Improve string key object deserialization performance, x2 faster and x10 reduce memory allocation #95
Improve Performance for NonGeneric Method
Add LZ4MessagePackSerializer.Deserialize (ArraySegment) #85, thanks @LeeCampbell
LZ4MessagePackSerializer.Deserialize<T>(ArraySegment) #85, thanks @LeeCampbellSupport Unity 2017 .NET Framework 4.6 #75 Support Union attribute for abstract class #44
Support Unity 2017 .NET Framework 4.6 #75 Support Union attribute for abstract class #44
Improve: MessagePackFormatterAttribute supports object[] arguments Improve: supports [DataContract] and [DataMember] instead of [MessagePackObject] an
Improve: MessagePackFormatterAttribute supports object[] arguments
Improve: supports [DataContract] and [DataMember] instead of [MessagePackObject] and [Key]
new typeless APIs, thanks @avtc
new typeless APIs, thanks @avtc
Add (LZ4)MessagePackSerializer.Typeless API
Add TypelessObjectFormatter
Add TyplessObjectResolver
Add TypelessContractlessStandardResolver
Add Stream overload for Primitive API and High-level API.
Add Stream overload for Primitive API and High-level API.
Add MessagePackBinary.ReadMessageBlockFromStramUnsafe
Add MessagePackBinary.Read/Write***(Stream stream)
Add (LZ4)MessagePackSerializer(.NonGeneric).Deserialize(Stream stream, bool readStrict)
Add (LZ4)MessagePackSerializer(.NonGeneric).Deserialize(Stream stream, IFormatterResolver resolver, bool readStrict)
Improve: float/double can decode integer msgpack binary
Improve: float/double can decode integer msgpack binary
…Add DynamicObjectTypeFallbackResolver Breaking Changes, ContractlessStandardResolver uses DynamicObjectTypeFallbackResolverinstead of PrimitiveObjectR…
Add MessagePackSerializer.FromJson Add MessagePackBinary.WriteMapHeaderForceMap32Block, WriteArrayHeaderForceArray32Block Add DynamicObjectTypeFallbackResolver Breaking Changes, ContractlessStandardResolver uses DynamicObjectTypeFallbackResolverinstead of PrimitiveObjectResolver #61 Improve StringKey serialization performance #62
Ver 1.3.1.1(on NuGet) assembly was signed.
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
fix mpc.exe, generate invalid code when type is in global namespace fix mpc.exe, union key is not sequential from zero
fix mpc.exe, generate invalid code when type is in global namespace
fix mpc.exe, union key is not sequential from zero
Nothing published for this version
add .NET Framework4.7 depenendencies on NuGet. add .NET Framework4.6.1 depenendencies on NuGet.
add .NET Framework4.7 depenendencies on NuGet.
add .NET Framework4.6.1 depenendencies on NuGet.
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 mpc.exe generates incorrect serializer when MaxKeySize is 15 Fix OldSpecResolver hooks string[] Fix failed dynamic code generate when class name i
Fix mpc.exe generates incorrect serializer when MaxKeySize is 15 Fix OldSpecResolver hooks string[] Fix failed dynamic code generate when class name is too long Fix do not include mpc.exe in nuget packages Add Support IgnoreDataMemberAttribute
Unity 1.1.2.2 - fix incorrect generate of map seriaization
Fix NativeDateTimeResolver(add supports array)
Fix NativeDateTimeResolver(add supports array)
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
Fix Protect static instance fields by making them immutable #13, thanks @AronParker Fix Unity formatter does not serialize correctly on Vector2, 3, 4,
Fix Protect static instance fields by making them immutable #13, thanks @AronParker Fix Unity formatter does not serialize correctly on Vector2, 3, 4, Color, Quaternion, Color, Bounds, Rect. Sorry, this is critical issue of Unity package.
Fix invalid argument validation in LZ4Codec #5, thanks @AronParker Fix does not serialize correctly when object has no member #6, thanks @shiwano Add
Fix invalid argument validation in LZ4Codec #5, thanks @AronParker Fix does not serialize correctly when object has no member #6, thanks @shiwano Add mpc.exe '-m' option to force output map mode
Documentation and API is completed.
Documentation and API is completed.
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
One column per quarter.