Skip to content

Upgrading MessagePack 0.8 to 1

Breaking0.8.5 โ†’ 1.9.11Breaking4Security2New43Changed31Fixed41Other6

BreakingUpgrade verdict

4 breaking changes and 2 security fixes.

  • The code generator tool is no longer bundled inside the NuGet package. You now get it as a separate download from the release page.
  • The mpc.exe code generator is no longer shipped inside the NuGet package.
  • TypelessFormatter now deserializes primitive arrays as primitive arrays instead of object arrays, which changes behavior for existing callers.
  • ContractlessStandardResolver now uses DynamicObjectTypeFallbackResolver instead of PrimitiveObjectResolver.
Top 5 of 6 that need code or config changes

Target frameworks requirement changed in 1.7.3: .NETFramework4.5, .NETStandard1.4 โ†’ .NETFramework4.5, .NETFramework4.7, .NETStandard1.6, .NETStandard2.0.

Breaking4
Removes mpc.exe from the MessagePack NuGet package; download mpc.zip from the release page instead.
mpc.exe
Removes mpc.exe from the MessagePack NuGet package.
mpc.exe
Fixes TypelessFormatter converting primitive arrays to object arrays, a breaking change.
TypelessFormatter
ContractlessStandardResolver now uses DynamicObjectTypeFallbackResolver instead of PrimitiveObjectResolver.
ContractlessStandardResolverDynamicObjectTypeFallbackResolverPrimitiveObjectResolver
Security2
Security fixes are included in this release, detailed in the project's security advisory.
Fixes a deserializer security issue that allowed unbounded memory allocations from relatively small MessagePack payloads.