msgspec v0.21.1 Release Notes
Release Date: 2026-04-12 // about 2 months ago-
- 🛠 Fix
ValidationErrorandDecodeErrorraised indec_hookbeing incorrectly wrapped in anotherValidationError(#1013). - Fix a potential
NULLdereference instructmeta_get_module_ns(#1016). - Fix a reference leak in
ms_passes_big_int_constraints(#1017). - 🛠 Fix missing
ref_templateparameter inmsgspec.json.schematype stub (#1002). - 📄 Clarify
order='deterministic'encoder docstrings (#1011). - ➕ Add a porting guide for users migrating from orjson (#1007).
- 🛠 Fix
Previous changes from v0.21.0
-
- Fix a segfault on Python 3.13+ that could occur when creating structs that contained a
__dict__, instead of only using__slots__(#960). - 👌 Improve type annotations for
msgspec.UNSET(#975). - 🛠 Fix hashing of decoded tuples on Python 3.14 (#980).
- ➕ Add
ref_templatearg tomsgspec.json.schema(#983). - ➕ Add missing
libmlinkage to some architectures (#993). - 🛠 Fix memory leak when decoding sets (#991).
- ➕ Add
uniqueItemsannotation toset/frozensetJSON schemas (#984). - 💥 BREAKING : Call
__post_init__frommsgspec.structs.replace/copy.replace(#1000).
- Fix a segfault on Python 3.13+ that could occur when creating structs that contained a