@@ -3,6 +3,39 @@ Changelog
3
3
4
4
.. currentmodule :: msgspec
5
5
6
+ Version 0.17.0 (2023-07-11)
7
+ ---------------------------
8
+
9
+ - Ensure ``None `` may be explicitly passed to `defstruct ` for
10
+ ``module ``/``namespace ``/``bases `` (:pr: `445 `).
11
+ - Support decoding `datetime.datetime ` values from ``int ``/``float `` values
12
+ (interpreted as seconds since the Unix epoch) when ``strict=False ``
13
+ (:pr: `452 `).
14
+ - Support subclasses of collection types (``list ``, ``dict ``, ...) as inputs to
15
+ `convert ` (:pr: `453 `).
16
+ - Support ``str `` subclasses as keys in `to_builtins ` and all protocol
17
+ ``encode `` methods (:pr: `454 `).
18
+ - Improved performance when JSON encoding `decimal.Decimal ` values (:pr: `455 `).
19
+ - Improved performance when JSON encoding ``int ``/``float `` values (:pr: `458 `).
20
+ - Improved performance when JSON encoding ``str `` values (:pr: `459 `).
21
+ - Wrap errors in ``dec_hook `` with a `ValidationError ` (:pr: `460 `).
22
+ - Support decoding `decimal.Decimal ` values from numeric values (:pr: `463 `)
23
+ - Support encoding `decimal.Decimal ` values as numeric values (:pr: `465 `).
24
+ - Support converting `decimal.Decimal ` values to ``float `` in `convert `
25
+ (:pr: `466 `).
26
+ - Preliminary support for CPython 3.12 beta releases (:pr: `467 `).
27
+ - Support decoding integers that don't fit into an ``int64 ``/``uint64 ``
28
+ (:pr: `469 `).
29
+ - Add a new optional ``__post_init__ `` method for `Struct ` types (:pr: `470 `).
30
+ - Support decoding ``0 ``/``1 `` into ``bool `` types when ``strict=False ``
31
+ (:pr: `471 `).
32
+ - Wrap errors raised in ``__post_init__ ``/``__attrs_post_init__ `` in a
33
+ `ValidationError ` when decoding (:pr: `472 `).
34
+ - Add native support for encoding/decoding `datetime.timedelta ` types
35
+ (:pr: `475 `).
36
+ - Add a new `msgspec.json.Encoder.encode_lines ` method for encoding an iterable
37
+ of values as newline-delimited JSON (:pr: `479 `).
38
+
6
39
Version 0.16.0 (2023-06-12)
7
40
---------------------------
8
41
0 commit comments