Skip to content

Commit 10480b5

Browse files
committed
Update changelog for 0.16.0
1 parent be34add commit 10480b5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/source/changelog.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@ Changelog
33

44
.. currentmodule:: msgspec
55

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+
631
Version 0.15.1 (2023-05-19)
732
---------------------------
833

0 commit comments

Comments
 (0)