diff --git a/HISTORY.md b/HISTORY.md index 63ba284c00..b5ba45b80e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,32 @@ +## v1.9.1 (2022-05-19) + +Thank you to pydantic's sponsors: +@tiangolo, @stellargraph, @JonasKs, @grillazz, @Mazyod, @kevinalh, @chdsbd, @povilasb, @povilasb, @jina-ai, +@mainframeindustries, @robusta-dev, @SendCloud, @rszamszur, @jodal, @hardbyte, @corleyma, @daddycocoaman, +@Rehket, @jokull, @reillysiemens, @westonsteimel, @primer-io, @koxudaxi, @browniebroke, @stradivari96, +@adriangb, @kamalgill, @jqueguiner, @dev-zero, @datarootsio, @RedCarpetUp +for their kind support. + +* Limit the size of `generics._generic_types_cache` and `generics._assigned_parameters` + to avoid unlimited increase in memory usage, #4083 by @samuelcolvin +* Add Jupyverse and FPS as Jupyter projects using pydantic, #4082 by @davidbrochart +* Speedup `__isinstancecheck__` on pydantic models when the type is not a model, may also avoid memory "leaks", #4081 by @samuelcolvin +* Fix in-place modification of `FieldInfo` that caused problems with PEP 593 type aliases, #4067 by @adriangb +* Add support for autocomplete in VS Code via `__dataclass_transform__` when using `pydantic.dataclasses.dataclass`, #4006 by @giuliano-oliveira +* Remove benchmarks from codebase and docs, #3973 by @samuelcolvin +* Typing checking with pyright in CI, improve docs on vscode/pylance/pyright, #3972 by @samuelcolvin +* Fix nested Python dataclass schema regression, #3819 by @himbeles +* Update documentation about lazy evaluation of sources for Settings, #3806 by @garyd203 +* Prevent subclasses of bytes being converted to bytes, #3706 by @samuelcolvin +* Fixed "error checking inheritance of" when using PEP585 and PEP604 type hints, #3681 by @aleksul +* Allow self referencing `ClassVar`s in models, #3679 by @samuelcolvin +* Fix issue with self-referencing dataclass, #3675 by @uriyyo +* Include non-standard port numbers in rendered URLs, #3652 by @dolfinus +* `Config.copy_on_model_validation` does a deep copy and not a shallow one, #3641 by @PrettyWood +* fix: clarify that discriminated unions do not support singletons, #3636 by @tommilligan +* Add `read_text(encoding='utf-8')` for `setup.py`, #3625 by @hswong3i +* Fix JSON Schema generation for Discriminated Unions within lists, #3608 by @samuelcolvin + ## v1.9.0 (2021-12-31) Thank you to pydantic's sponsors: diff --git a/changes/3608-samuelcolvin.md b/changes/3608-samuelcolvin.md deleted file mode 100644 index ec3c0bafca..0000000000 --- a/changes/3608-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Fix JSON Schema generation for Discriminated Unions within lists. diff --git a/changes/3625-hswong3i.md b/changes/3625-hswong3i.md deleted file mode 100644 index a9365e5206..0000000000 --- a/changes/3625-hswong3i.md +++ /dev/null @@ -1 +0,0 @@ -Add `read_text(encoding='utf-8')` for `setup.py` diff --git a/changes/3636-tommilligan.md b/changes/3636-tommilligan.md deleted file mode 100644 index ec10fce7ea..0000000000 --- a/changes/3636-tommilligan.md +++ /dev/null @@ -1 +0,0 @@ -fix: clarify that discriminated unions do not support singletons diff --git a/changes/3641-PrettyWood.md b/changes/3641-PrettyWood.md deleted file mode 100644 index d0338c6636..0000000000 --- a/changes/3641-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -`Config.copy_on_model_validation` does a deep copy and not a shallow one \ No newline at end of file diff --git a/changes/3652-dolfinus.md b/changes/3652-dolfinus.md deleted file mode 100644 index 907a440c69..0000000000 --- a/changes/3652-dolfinus.md +++ /dev/null @@ -1 +0,0 @@ -Include non-standard port numbers in rendered URLs diff --git a/changes/3675-uriyyo.md b/changes/3675-uriyyo.md deleted file mode 100644 index 7a34d4d206..0000000000 --- a/changes/3675-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Fix issue with self-referencing dataclass diff --git a/changes/3679-samuelcolvin.md b/changes/3679-samuelcolvin.md deleted file mode 100644 index e02ebc7feb..0000000000 --- a/changes/3679-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Allow self referencing `ClassVar`s in models. diff --git a/changes/3681-aleksul.md b/changes/3681-aleksul.md deleted file mode 100644 index 13f745ac7d..0000000000 --- a/changes/3681-aleksul.md +++ /dev/null @@ -1 +0,0 @@ -Fixed "error checking inheritance of" when using PEP585 and PEP604 type hints diff --git a/changes/3706-samuelcolvin.md b/changes/3706-samuelcolvin.md deleted file mode 100644 index 3a22afee67..0000000000 --- a/changes/3706-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Prevent subclasses of bytes being converted to bytes diff --git a/changes/3806-garyd203.md b/changes/3806-garyd203.md deleted file mode 100644 index 25b2217bb4..0000000000 --- a/changes/3806-garyd203.md +++ /dev/null @@ -1 +0,0 @@ -Update documentation about lazy evaluation of sources for Settings (it's not actually done). diff --git a/changes/3819-himbeles.md b/changes/3819-himbeles.md deleted file mode 100644 index 7845d7b0f9..0000000000 --- a/changes/3819-himbeles.md +++ /dev/null @@ -1 +0,0 @@ -Fix nested Python dataclass schema regression in version 1.9 diff --git a/changes/3972-samuelcolvin.md b/changes/3972-samuelcolvin.md deleted file mode 100644 index 42f2498277..0000000000 --- a/changes/3972-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Typing checking with pyright in CI, improve docs on vscode/pylance/pyright. diff --git a/changes/3973-samuelcolvin.md b/changes/3973-samuelcolvin.md deleted file mode 100644 index a6838a23e1..0000000000 --- a/changes/3973-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Remove benchmarks from codebase and docs. diff --git a/changes/4006-giuliano-oliveira.md b/changes/4006-giuliano-oliveira.md deleted file mode 100644 index 97a7eeccfc..0000000000 --- a/changes/4006-giuliano-oliveira.md +++ /dev/null @@ -1 +0,0 @@ -Add support for autocomplete in VS Code via `__dataclass_transform__` when using `pydantic.dataclasses.dataclass` diff --git a/changes/4067-adriangb.md b/changes/4067-adriangb.md deleted file mode 100644 index 4c6689ebe5..0000000000 --- a/changes/4067-adriangb.md +++ /dev/null @@ -1 +0,0 @@ -Fix in-place modification of `FieldInfo` that caused problems with PEP 593 type aliases diff --git a/changes/4081-samuelcolvin.md b/changes/4081-samuelcolvin.md deleted file mode 100644 index 53fd4f52a8..0000000000 --- a/changes/4081-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Speedup `__isinstancecheck__` on pydantic models when the type is not a model, may also avoid memory "leaks". diff --git a/changes/4082-davidbrochart.md b/changes/4082-davidbrochart.md deleted file mode 100644 index cad2efbb82..0000000000 --- a/changes/4082-davidbrochart.md +++ /dev/null @@ -1 +0,0 @@ -Add Jupyverse and FPS as Jupyter projects using pydantic diff --git a/changes/4083-samuelcolvin.md b/changes/4083-samuelcolvin.md deleted file mode 100644 index ed252f16b5..0000000000 --- a/changes/4083-samuelcolvin.md +++ /dev/null @@ -1,2 +0,0 @@ -Limit the size of `generics._generic_types_cache` and `generics._assigned_parameters` -to avoid unlimited increase in memory usage. diff --git a/pydantic/version.py b/pydantic/version.py index 5b1ebc33e9..3c885370c2 100644 --- a/pydantic/version.py +++ b/pydantic/version.py @@ -1,6 +1,6 @@ __all__ = 'VERSION', 'version_info' -VERSION = '1.9.0' +VERSION = '1.9.1' def version_info() -> str: