changelog, bump version

This commit is contained in:
sneakers-the-rat 2024-09-24 00:23:15 -07:00
parent dfcd8479f0
commit 2e7031c58d
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
2 changed files with 28 additions and 1 deletions

View file

@ -4,6 +4,33 @@
### 1.6.*
#### 1.6.1 - 24-09-23 - Support Union Dtypes
It's now possible to do this, like it always should have been
```python
class MyModel(BaseModel):
array: NDArray[Any, int | float]
```
**Features**
- Support for Union Dtypes
**Structure**
- New `validation` module containing `shape` and `dtype` convenience methods
to declutter main namespace and make a grouping for related code
- Rename all serialized arrays within a container dict to `value` to be able
to identify them by convention and avoid long iteration - see perf below.
**Perf**
- Avoid iterating over every item in an array trying to convert it to a path for
a several order of magnitude perf improvement over `1.6.0` (oops)
**Docs**
- Page for `dtypes`, mostly stubs at the moment, but more explicit documentation
about what kind of dtypes we support.
#### 1.6.0 - 24-09-23 - Roundtrip JSON Serialization
Roundtrip JSON serialization is here - with serialization to list of lists,

View file

@ -1,6 +1,6 @@
[project]
name = "numpydantic"
version = "1.6.0"
version = "1.6.1"
description = "Type and shape validation and serialization for arbitrary array types in pydantic models"
authors = [
{name = "sneakers-the-rat", email = "sneakers-the-rat@protonmail.com"},