@@ -3,6 +3,31 @@ Changelog
3
3
4
4
.. currentmodule :: msgspec
5
5
6
+ Version 0.16.0 (2023-06-12)
7
+ ---------------------------
8
+
9
+ - Deprecate ``msgspec.from_builtins `` in favor of `msgspec.convert `. The new
10
+ ``convert `` function provides a superset of the functionality available in
11
+ the old ``from_builtins `` function (:pr: `431 `).
12
+ - Add a ``from_attributes `` argument to `msgspec.convert ` for allowing
13
+ conversion between object types with matching attribute names. One use case
14
+ for this is converting ORM objects to `Struct ` or `dataclasses ` types
15
+ (:pr: `419 `).
16
+ - Support passing generic ``Mapping `` objects as inputs to `msgspec.convert `.
17
+ These may be coerced to `dict `/`Struct `/`dataclasses `/`attrs ` types
18
+ (:pr: `427 `).
19
+ - Add a new ``strict `` keyword argument to all ``decode `` functions,
20
+ ``Decoder `` classes, as well as `msgspec.convert `. This defaults to ``True ``,
21
+ setting it to false enables a wider set of coercion rules (e.g. coercing a
22
+ `str ` input to an `int `). See :ref: `strict-vs-lax ` for more information
23
+ (:pr: `434 `).
24
+ - Support all :doc: `supported-types ` as inputs to `msgspec.convert ` (:pr: `431 `,
25
+ :pr: `418 `).
26
+ - Passthrough input unchanged when coercing to `typing.Any ` type in
27
+ `msgspec.convert ` (:pr: `435 `).
28
+ - Support parametrizing ``Decoder `` types at runtime (:pr: `415 `).
29
+ - Support encoding subclasses of ``UUID `` (:pr: `429 `).
30
+
6
31
Version 0.15.1 (2023-05-19)
7
32
---------------------------
8
33
0 commit comments