unstale

pypi / msgpack

msgpack

What changed in msgpack 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

10 breaking6 security2 new APIs and options1 performance3 behavior and defaults1 tooling13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

msgpack 136 changes

Breaking changes 10

  • Negative array and map header sizes are now rejected.

    1.2.3release notes

  • Raises OverflowError when use_single_float cannot represent a value.

    1.2.2release notes

  • Python 3.9 support was dropped, affecting which Python versions developers can use.

    1.2.0release notes

  • The setuptools version requirement was updated to >=78.1.1.

    1.2.0release notes

  • strict_map_key is now enforced when object_pairs_hook is used.

    1.2.0release notes

  • Support for the old buffer protocol is dropped.

    1.0.0release notes

  • The encoding option is removed from Packer and Unpacker.

    1.0.0release notes

  • Unpacker’s default max_buffer_size changes to 100MiB.

    1.0.0release notes

  • Python 2 support is removed from the C extension; the fallback implementation still supports Python 2.

    1.0.0release notes

  • Unpacker now defaults strict_map_key to True.

    1.0.0release notes

Security 6

  • Fixes memory leaks when map key validation or container hooks fail.

    1.2.3release notessecurity advisory

  • The C extension validates the nanoseconds range when unpacking timestamps.

    1.2.2release notes

  • Fixes a use-after-free in the ExtraData path when input is non-contiguous.

    1.2.2release notes

  • Adds a reentrant guard to feed(), preventing unsafe reentrant calls.

    1.2.2release notes

  • MessagePack for Python: Out-of-bounds read / crash on Unpacker reuse after a caught error

    1.2.1security advisory

  • A use-after-free in get_data_from_buffer was fixed.

    1.2.0release notes

New APIs and options 2

  • Serialization and deserialization support is added for datetime objects with tzinfo.

    1.0.0release notes

  • Timestamp type support is added.

    1.0.0release notes

Performance 1

Behavior and default changes 3

  • Packing now supports Python 3.15 frozentdict.

    1.2.3release notes

  • The default recursion limit increased from 511 to 1024.

    1.2.0release notes

  • Support was added for no-GIL interpreters.

    1.2.0release notes

Tooling 1

  • Wheels are now also built for Pyodide using Emscripten.

    1.2.3release notes

Fixes and other changes 13

  • In the fallback, the object remains unread when a header type does not match.

    1.2.4release notes

  • The fallback passes object_pairs_hook a list of pairs.

    1.2.4release notes

  • Fixes timestamp precision for far-future datetimes.

    1.2.2release notes

  • The fallback Unpacker.skip() translates RecursionError to StackError.

    1.2.2release notes

  • Improves error handling and reporting when unpacking.

    1.2.2release notes

  • An existing exception is re-raised when available.

    1.2.0release notes

  • Decoding invalid nested arrays no longer leaks memory.

    1.2.0release notes

  • Return codes in pack_timestamp are now handled properly.

    1.2.0release notes

  • Packer.pack_ext_type now performs the missing autoreset.

    1.2.0release notes

  • Timestamp.from_datetime now returns the correct value for pre-epoch datetimes.

    1.2.0release notes

  • The return code of unpack_callback_int64 is now checked.

    1.2.0release notes

  • The result of unpack_callback_uint32 is now checked.

    1.2.0release notes

  • The fallback's Unpacker.read_bytes returns bytes.

    1.0.0release notesrelease notes