pypi / deepdiff
deepdiff
What changed in deepdiff 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
7 breaking2 security2 deprecations9 new APIs and options1 behavior and defaults17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initdeepdiff 926 changes
Breaking changes 6
Python 3.10 support was dropped; supported versions are now 3.11–3.15.
DeepDiff now reports type changes between equal-comparing items in ordered iterables, such as int to float.
ignore_order=True now reports int-versus-float type changes.
Support for Python 3.9 is dropped.
The view_override parameter is removed; pass an explicit verbose_level to get previous tree-view results.
The view_override parameter is removed; pass an explicit verbose_level to get previous tree-view results.
New APIs and options 4
Match list items by key per path, with support for key names, tuples, and callables; keyed matching reports record changes at real list indexes and supports Delta round-trips.
A TypedDict is added for the return type of to_flat_dicts.
to_dict() accepts verbose_level and returns a usable text-view dict; tree view defaults to verbose_level=2 for full detail.
to_json() accepts verbose_level and returns a usable text-view dict; tree view defaults to verbose_level=2 for full detail.
Behavior and default changes 1
group_by now supports callable values.
Fixes and other changes 15
When the cli extra is missing, the command now exits with an actionable installation message instead of a ModuleNotFoundError traceback.
List diffs using iterable opcodes no longer crash with TypeError when orjson is not installed.
No longer drops an added item when its content equals an already matched item.
Correctly formats complex numbers with a negative imaginary part, avoiding invalid strings that could crash DeepHash.
Python 3.15 is now supported.
Applies only to datetime.datetime and datetime.time; date, timedelta, and np.datetime64 values are compared exactly instead of raising AttributeError.
Colored view display is fixed when all list items are removed.
An issue with ignore_keys in detailed__dict__ is fixed.
The type hint for logarithmic similarity is fixed.
Fixes an orjson TypeError for integers exceeding the 64-bit range.
Path reporting always uses the t1 path.
Python 3.14 is supported.
AttributeError is no longer swallowed by hasattr() for objects with __getattr__ during __slots__ handling.
include_action_in_path is now passed through by to_flat_dicts.
report_type_changes is now passed through by to_flat_dicts.
deepdiff 812 changes
Breaking changes 1
The new default is 0.33; when less than one third of dictionary keys intersect, DeepDiff reports the dictionary as a new object instead of individual changed keys. Set it to 0 to disable this behavior.
Security 2
Fixes CVE-2025-58367; the notes provide no further details about the vulnerability or fix.
DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT
Deprecations 2
The ordered-set package is deprecated and replaced by orderly-set because it was no longer maintained.
DeepDiff switched to orderly-set as its ordered-set implementation.
New APIs and options 5
Sets a similarity threshold for ignoring small numeric changes when comparing differences in logarithmic space.
Pandas support is added.
Polars support is added.
When diffing enums, use the enum's value so comparing an enum to a string or another value is not reported as a type change.
Allows ignoring small changes in numbers by comparing their differences in logarithmic space, rather than based on significant digits.
Fixes and other changes 2
Fixes handling of iterable moved items when iterable_compare_func is used.
JSON serialization of reversed lists is supported.