You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeepDiff.to_dict() was not useful when the original view was 'tree' — it returned a
dict containing opaque DiffLevel objects rather than a readable Python dictionary. The
workaround was to_dict(view_override='text'), but that was locked to whatever verbose_level was
set at init time (default 1), meaning you couldn't get the full detail that the tree view had
access to.
Change: Replaced the view_override parameter with verbose_level on both to_dict() and
to_json(). These methods now always produce a text-view dictionary — an actual usable Python
dict. The default verbosity is context-aware:
- If the original view is 'text': uses the verbose_level from initialization (preserving
existing behavior).
- If the original view is 'tree': defaults to verbose_level=2 (the most detailed output), since
tree-view users chose that view for its richness.
In both cases, you can override the verbosity explicitly: to_dict(verbose_level=0),
to_dict(verbose_level=1), etc.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# DeepDiff Change log
2
2
3
+
- v8-7-0
4
+
- Support for python 3.14
5
+
-`to_dict()` and `to_json()` now accept a `verbose_level` parameter and always return a usable text-view dict. When the original view is `'tree'`, they default to `verbose_level=2` for full detail. The old `view_override` parameter is removed.
6
+
3
7
- v8-6-1
4
8
- Patched security vulnerability in the Delta class which was vulnerable to class pollution via its constructor, and when combined with a gadget available in DeltaDiff itself, it could lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization).
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Please check the [ChangeLog](CHANGELOG.md) file for the detailed information.
25
25
26
26
DeepDiff 8-7-0
27
27
- support for python 3.14
28
+
-`to_dict()` and `to_json()` now accept a `verbose_level` parameter and always return a usable text-view dict. When the original view is `'tree'`, they default to `verbose_level=2` for full detail. The old `view_override` parameter is removed.
28
29
29
30
DeepDiff 8-6-1
30
31
- Patched security vulnerability in the Delta class which was vulnerable to class pollution via its constructor, and when combined with a gadget available in DeltaDiff itself, it could lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization).
Copy file name to clipboardExpand all lines: docs/changelog.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@ Changelog
5
5
6
6
DeepDiff Changelog
7
7
8
+
- v8-7-0
9
+
- Support for python 3.14
10
+
- ``to_dict()`` and ``to_json()`` now accept a ``verbose_level`` parameter and always return a usable text-view dict. When the original view is ``'tree'``, they default to ``verbose_level=2`` for full detail. The old ``view_override`` parameter is removed.
11
+
8
12
- v8-6-1
9
13
- Patched security vulnerability in the Delta class which was vulnerable to class pollution via its constructor, and when combined with a gadget available in DeltaDiff itself, it could lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization).
0 commit comments