Skip to content

Releases: team23/pydantic-changedetect

Release 0.7.3

17 Sep 07:25
Compare
Choose a tag to compare
  • 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

23 Apr 16:56
Compare
Choose a tag to compare
  • More types are not checked for equality and will not trigger model_has_changed to be true
    • datetime/date/time/timedelta
    • list/set/tuple and also dict
    • 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

17 Apr 07:38
Compare
Choose a tag to compare
  • 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

15 Apr 08:25
Compare
Choose a tag to compare
  • Add support for new pydantic 2.7 parameters (context and serialize_as_any) to model_dump and model_dump_json

Release 0.6.5

28 Mar 17:37
Compare
Choose a tag to compare
  • Fix issue #27

Release 0.6.3

08 Feb 12:30
Compare
Choose a tag to compare
  • Fix typing issue with __deepcopy__

Release 0.6.2

08 Feb 12:27
Compare
Choose a tag to compare
  • Fix #26: Default values did not initialise changedetection state

Release 0.6.0

04 Jan 20:27
Compare
Choose a tag to compare

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

26 Jul 06:27
Compare
Choose a tag to compare

Update pydantic version to also support 2.1 (and further 2.x releases).

Release 0.5.0

17 Jul 07:43
Compare
Choose a tag to compare

Add support for pydantic 2.0 while keeping support for 1.9 and 1.10. 🥳