- Ensure
None
may be explicitly passed todefstruct
formodule
/namespace
/bases
(#445). - Support decoding
datetime.datetime
values fromint
/float
values (interpreted as seconds since the Unix epoch) whenstrict=False
(#452). - Support subclasses of collection types (
list
,dict
, ...) as inputs toconvert
(#453). - Support
str
subclasses as keys into_builtins
and all protocolencode
methods (#454). - Improved performance when JSON encoding
decimal.Decimal
values (#455). - Improved performance when JSON encoding
int
/float
values (#458). - Improved performance when JSON encoding
str
values (#459). - Wrap errors in
dec_hook
with aValidationError
(#460). - Support decoding
decimal.Decimal
values from numeric values (#463) - Support encoding
decimal.Decimal
values as numeric values (#465). - Support converting
decimal.Decimal
values tofloat
inconvert
(#466). - Preliminary support for CPython 3.12 beta releases (#467).
- Support decoding integers that don't fit into an
int64
/uint64
(#469). - Add a new optional
__post_init__
method forStruct
types (#470). - Support decoding
0
/1
intobool
types whenstrict=False
(#471). - Wrap errors raised in
__post_init__
/__attrs_post_init__
in aValidationError
when decoding (#472). - Add native support for encoding/decoding
datetime.timedelta
types (#475). - Add a new
msgspec.json.Encoder.encode_lines
method for encoding an iterable of values as newline-delimited JSON (#479).