Skip to content

Commit b8bbfec

Browse files
authored
release notes for v1 (pydantic#918)
* release notes for v1 * uprev and tweaks * Apply suggestions from code review Co-Authored-By: dmontagu <[email protected]> * tweak notes, add back link to old docs * build changelog
1 parent dccc401 commit b8bbfec

27 files changed

+126
-50
lines changed

HISTORY.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## v1.0 (2019-10-23)
2+
3+
* **Breaking Change:** deprecate the `Model.fields` property, use `Model.__fields__` instead, #883 by @samuelcolvin
4+
* **Breaking Change:** Change the precedence of aliases so child model aliases override parent aliases,
5+
including using `alias_generator`, #904 by @samuelcolvin
6+
* **Breaking change:** Rename `skip_defaults` to `exclude_unset`, and add ability to exclude actual defaults, #915 by @dmontagu
7+
* Add `**kwargs` to `pydantic.main.ModelMetaclass.__new__` so `__init_subclass__` can take custom parameters on extended
8+
`BaseModel` classes, #867 by @retnikt
9+
* Fix field of a type that has a default value, #880 by @koxudaxi
10+
* Use `FutureWarning` instead of `DeprecationWarning` when `alias` instead of `env` is used for settings models, #881 by @samuelcolvin
11+
* Fix issue with `BaseSettings` inheritance and `alias` getting set to `None`, #882 by @samuelcolvin
12+
* Modify `__repr__` and `__str__` methods to be consistent across all public classes, add `__pretty__` to support
13+
python-devtools, #884 by @samuelcolvin
14+
* deprecation warning for `case_insensitive` on `BaseSettings` config, #885 by @samuelcolvin
15+
* For `BaseSettings` merge environment variables and in-code values recursively, as long as they create a valid object
16+
when merged together, to allow splitting init arguments, #888 by @idmitrievsky
17+
* change secret types example, #890 by @ashears
18+
* Change the signature of `Model.construct()` to be more user-friendly, document `construct()` usage, #898 by @samuelcolvin
19+
* Add example for the `construct()` method, #907 by @ashears
20+
* Improve use of `Field` constraints on complex types, raise an error if constraints are not enforceable,
21+
also support tuples with an ellipsis `Tuple[X, ...]`, `Sequence` and `FrozenSet` in schema, #909 by @samuelcolvin
22+
* update docs for bool missing valid value, #911 by @trim21
23+
* Better `str`/`repr` logic for `ModelField`, #912 by @samuelcolvin
24+
* Fix `ConstrainedList`, update schema generation to reflect `min_items` and `max_items` `Field()` arguments, #917 by @samuelcolvin
25+
* Allow abstracts sets (eg. dict keys) in the `include` and `exclude` arguments of `dict()`, #921 by @samuelcolvin
26+
* Fix JSON serialization errors on `ValidationError.json()` by using `pydantic_encoder`, #922 by @samuelcolvin
27+
* Clarify usage of `remove_untouched`, improve error message for types with no validators, #926 by @retnikt
28+
129
## v1.0b2 (2019-10-07)
230

331
* Mark `StrictBool` typecheck as `bool` to allow for default values without mypy errors, #690 by @dmontagu

changes/867-retnikt.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

changes/880-koxudaxi.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changes/881-samuelcolvin.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changes/882-samuelcolvin.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changes/883-samuelcolvin.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changes/884-samuelcolvin.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

changes/885-samuelcolvin.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changes/888-idmitrievsky.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

changes/890-ashears.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)