unstale

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 init

@unstale/cli 0.3.1 on npm

deepdiff 926 changes

Breaking changes 6

  • Python 3.10 support was dropped; supported versions are now 3.11–3.15.

    9.2.1release notes

  • DeepDiff now reports type changes between equal-comparing items in ordered iterables, such as int to float.

    9.2.1release notes

  • ignore_order=True now reports int-versus-float type changes.

    9.0.0release notes

  • Support for Python 3.9 is dropped.

    9.0.0release notes

  • The view_override parameter is removed; pass an explicit verbose_level to get previous tree-view results.

    9.0.0release notes

  • The view_override parameter is removed; pass an explicit verbose_level to get previous tree-view results.

    9.0.0release notes

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.

    9.2.1release notes

  • A TypedDict is added for the return type of to_flat_dicts.

    9.0.0release notes

  • to_dict() accepts verbose_level and returns a usable text-view dict; tree view defaults to verbose_level=2 for full detail.

    9.0.0release notes

  • to_json() accepts verbose_level and returns a usable text-view dict; tree view defaults to verbose_level=2 for full detail.

    9.0.0release notes

Behavior and default changes 1

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.

    9.2.1release notes

  • List diffs using iterable opcodes no longer crash with TypeError when orjson is not installed.

    9.2.1release notes

  • No longer drops an added item when its content equals an already matched item.

    9.2.1release notes

  • Correctly formats complex numbers with a negative imaginary part, avoiding invalid strings that could crash DeepHash.

    9.2.1release notes

  • Python 3.15 is now supported.

    9.2.1release notes

  • Applies only to datetime.datetime and datetime.time; date, timedelta, and np.datetime64 values are compared exactly instead of raising AttributeError.

    9.2.1release notes

  • Colored view display is fixed when all list items are removed.

    9.0.0release notes

  • An issue with ignore_keys in detailed__dict__ is fixed.

    9.0.0release notes

  • The type hint for logarithmic similarity is fixed.

    9.0.0release notes

  • Fixes an orjson TypeError for integers exceeding the 64-bit range.

    9.0.0release notes

  • Path reporting always uses the t1 path.

    9.0.0release notes

  • Python 3.14 is supported.

    9.0.0release notes

  • AttributeError is no longer swallowed by hasattr() for objects with __getattr__ during __slots__ handling.

    9.0.0release notes

  • include_action_in_path is now passed through by to_flat_dicts.

    9.0.0release notes

  • report_type_changes is now passed through by to_flat_dicts.

    9.0.0release notes

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.

    8.0.0release notes

Security 2

  • Fixes CVE-2025-58367; the notes provide no further details about the vulnerability or fix.

    8.6.2release notes

  • DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT

    8.6.2security advisory

Deprecations 2

  • The ordered-set package is deprecated and replaced by orderly-set because it was no longer maintained.

    8.0.0release notes

  • DeepDiff switched to orderly-set as its ordered-set implementation.

    8.0.0release notes

New APIs and options 5

  • Sets a similarity threshold for ignoring small numeric changes when comparing differences in logarithmic space.

    8.0.0release notes

  • Pandas support is added.

    8.0.0release notes

  • Polars support is added.

    8.0.0release notes

  • 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.

    8.0.0release notes

  • Allows ignoring small changes in numbers by comparing their differences in logarithmic space, rather than based on significant digits.

    8.0.0release notes

Fixes and other changes 2

  • Fixes handling of iterable moved items when iterable_compare_func is used.

    8.0.0release notes

  • JSON serialization of reversed lists is supported.

    8.0.0release notes