Releases: team23/pydantic-changedetect
Releases Β· team23/pydantic-changedetect
Release 0.8.0
Officially support Python 3.13 + drop support for older versions.
What's Changed
- chore(deps-dev): Update ruff requirement from >=0.5.0,<0.7.0 to >=0.5.0,<0.8.0 by @dependabot in #38
- chore(deps-dev): Update pytest-cov requirement from >=3,<6 to >=3,<7 by @dependabot in #41
- chore(deps-dev): Update ruff requirement from >=0.5.0,<0.8.0 to >=0.5.0,<0.9.0 by @dependabot in #42
- Add official Python 3.13 support and remove support for older versions by @ddanier
- Update libraries and code to match current version requirements by @ddanier
Full Changelog: v0.7.3...v0.8.0
Release 0.7.3
- Fix issues with newer version of pydantic and pyright (typing failed) by @ddanier
- Add support for partially hydrated models, thanks to @mathieu-gillot (see #36)
Release 0.7.0
- More types are not checked for equality and will not trigger
model_has_changed
to be truedatetime
/date
/time
/timedelta
list
/set
/tuple
and alsodict
pydantic.BaseModel
instances, as pydantic supports comparing those
- You may not override checking for equality more easily using the two methods
_model_value_is_comparable_type
and_model_value_is_actually_unchanged
. If any type is missing for you, feel free to extend the class π
Release 0.6.7
- Fix issue with pylance, now "exporting" the library contents correctly
- Officially supporting Python 3.12 (
tox
tests on Python 3.12, too)
Release 0.6.6
- Add support for new pydantic 2.7 parameters (
context
andserialize_as_any
) tomodel_dump
andmodel_dump_json
Release 0.6.5
- Fix issue #27
Release 0.6.3
- Fix typing issue with
__deepcopy__
Release 0.6.2
- Fix #26: Default values did not initialise changedetection state
Release 0.6.0
With version 0.6.0 we added three new features:
- Changes to scalar values will now only be seen as a change if the new value is actually different. See #17 for details. Thanks for @dannosaur for the report the old behaviour does not match user expectation.
- There are now utility methods to restore original field values or a copy of the original model state. See #11 for details.
- You may now use change markers to mark objects as changed without a field actually being changes. This can be useful when for example propagating changes state from child objects to its parents. See #10 for details.
- The README was updated to reflect those new features. Also some example code was added to chow how
set_changed(...)
works.
Release 0.5.1
Update pydantic version to also support 2.1
(and further 2.x
releases).