Skip to content

Commit

Permalink
updating authors
Browse files Browse the repository at this point in the history
  • Loading branch information
seperman committed Apr 8, 2024
1 parent 71cde51 commit 4c337cf
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 1 deletion.
2 changes: 2 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ Authors in order of the timeline of their contributions:
- [martin-kokos](https://github.com/martin-kokos) for using tomli and tomli-w for dealing with tomli files.
- [Alex Sauer-Budge](https://github.com/amsb) for the bugfix for `datetime.date`.
- [William Jamieson](https://github.com/WilliamJamieson) for [NumPy 2.0 compatibility](https://github.com/seperman/deepdiff/pull/422)
- [Leo Sin](https://github.com/leoslf) for Supporting Python 3.12 in the build process
- [sf-tcalhoun](https://github.com/sf-tcalhoun) for fixing "Instantiating a Delta with a flat_dict_list unexpectedly mutates the flat_dict_list"
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# DeepDiff Change log

- v7-0-0
- When verbose=2, return `new_path` when the `path` and `new_path` are different (for example when ignore_order=True and the index of items have changed).
- Dropping support for Python 3.7
- Introducing serialize to flat rows for delta objects.
- fixes the issue with hashing `datetime.date` objects where it treated them as numbers instead of dates (fixes #445).
- upgrading orjson to the latest version
- Fix for bug when diffing two lists with ignore_order and providing compare_func
- Fixes "Wrong diff on list of strings" #438
- Supporting Python 3.12 in the build process by [Leo Sin](https://github.com/leoslf)
- Fixes "Instantiating a Delta with a flat_dict_list unexpectedly mutates the flat_dict_list" #457 by [sf-tcalhoun](https://github.com/sf-tcalhoun)
- Fixes "Error on Delta With None Key and Removed Item from List" #441
- Fixes "Error when comparing two nested dicts with 2 added fields" #450
- Fixes "Error when subtracting Delta from a dictionary" #443
- v6-7-1
- Support for subtracting delta objects when iterable_compare_func is used.
- Better handling of force adding a delta to an object.
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ Tested on Python 3.8+ and PyPy3.

Please check the [ChangeLog](CHANGELOG.md) file for the detailed information.

DeepDiff 7-0-0

- DeepDiff 7 comes with an improved delta object. [Delta to flat dictionaries](https://zepworks.com/deepdiff/current/serialization.html#delta-serialize-to-flat-dictionaries) have undergone a major change. We have also introduced [Delta serialize to flat rows](https://zepworks.com/deepdiff/current/serialization.html#delta-serialize-to-flat-rows).
- Subtracting delta objects have dramatically improved at the cost of holding more metadata about the original objects.
- When `verbose=2`, and the "path" of an item has changed in a report between t1 and t2, we include it as `new_path`.
- `path(use_t2=True)` returns the correct path to t2 in any reported change in the [`tree view`](https://zepworks.com/deepdiff/current/view.html#tree-view)
- Python 3.7 support is dropped and Python 3.12 is officially supported.


DeepDiff 6-7-1

- Support for subtracting delta objects when iterable_compare_func is used.
Expand Down
5 changes: 5 additions & 0 deletions docs/authors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ Authors in order of the timeline of their contributions:
- `Alex Sauer-Budge <https://github.com/amsb>`__ for the bugfix for
``datetime.date``.
- `William Jamieson <https://github.com/WilliamJamieson>`__ for `NumPy 2.0 compatibility <https://github.com/seperman/deepdiff/pull/422>`__
- `Leo Sin <https://github.com/leoslf>`__ for Supporting Python 3.12 in
the build process
- `sf-tcalhoun <https://github.com/sf-tcalhoun>`__ for fixing
“Instantiating a Delta with a flat_dict_list unexpectedly mutates the
flat_dict_list”

.. _Sep Dehpour (Seperman): http://www.zepworks.com
.. _Victor Hahn Castell: http://hahncastell.de
Expand Down
11 changes: 11 additions & 0 deletions docs/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ Set verbose level to 2 in order to see the added or removed items with their val
{ 'dictionary_item_added': {'root[5]': 5, 'root[6]': 6},
'dictionary_item_removed': {'root[4]': 4}}

Set verbose level to 2 includes new_path when the path has changed for a report between t1 and t2:
>>> t1 = [1, 3]
>>> t2 = [3, 2]
>>>
>>>
>>> diff = DeepDiff(t1, t2, ignore_order=True, verbose_level=2)
>>> pprint(diff)
{'values_changed': {'root[0]': {'new_path': 'root[1]',
'new_value': 2,
'old_value': 1}}}

String difference
>>> t1 = {1:1, 2:2, 3:3, 4:{"a":"hello", "b":"world"}}
>>> t2 = {1:1, 2:4, 3:3, 4:{"a":"hello", "b":"world!"}}
Expand Down
24 changes: 24 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ Changelog

DeepDiff Changelog

- v7-0-0

- When verbose=2, return ``new_path`` when the ``path`` and
``new_path`` are different (for example when ignore_order=True and
the index of items have changed).
- Dropping support for Python 3.7
- Introducing serialize to flat rows for delta objects.
- fixes the issue with hashing ``datetime.date`` objects where it
treated them as numbers instead of dates (fixes #445).
- upgrading orjson to the latest version
- Fix for bug when diffing two lists with ignore_order and providing
compare_func
- Fixes “Wrong diff on list of strings” #438
- Supporting Python 3.12 in the build process by `Leo
Sin <https://github.com/leoslf>`__
- Fixes “Instantiating a Delta with a flat_dict_list unexpectedly
mutates the flat_dict_list” #457 by
`sf-tcalhoun <https://github.com/sf-tcalhoun>`__
- Fixes “Error on Delta With None Key and Removed Item from List”
#441
- Fixes “Error when comparing two nested dicts with 2 added fields”
#450
- Fixes “Error when subtracting Delta from a dictionary” #443

- v6-7-1

- Support for subtracting delta objects when iterable_compare_func
Expand Down
18 changes: 18 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ The DeepDiff library includes the following modules:
What Is New
***********

DeepDiff 7-0-0
--------------

- DeepDiff 7 comes with an improved delta object. `Delta to flat
dictionaries <https://zepworks.com/deepdiff/current/serialization.html#delta-serialize-to-flat-dictionaries>`__
have undergone a major change. We have also introduced `Delta
serialize to flat
rows <https://zepworks.com/deepdiff/current/serialization.html#delta-serialize-to-flat-rows>`__.
- Subtracting delta objects have dramatically improved at the cost of
holding more metadata about the original objects.
- When ``verbose=2``, and the “path” of an item has changed in a report
between t1 and t2, we include it as ``new_path``.
- ``path(use_t2=True)`` returns the correct path to t2 in any reported
change in the
```tree view`` <https://zepworks.com/deepdiff/current/view.html#tree-view>`__
- Python 3.7 support is dropped and Python 3.12 is officially
supported.


DeepDiff 6-7-1
--------------
Expand Down
2 changes: 1 addition & 1 deletion docs/view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ You can traverse through the tree elements!
:up: Move up to the parent node aka parent level
:down: Move down to the child node aka child level
:path(): Get the path to the current node in string representation, path(output_format='list') gives you the path in list representation.
:path(): Get the path to the current node in string representation, path(output_format='list') gives you the path in list representation. path(use_t2=True) gives you the path to t2.
:t1: The first item in the current node that is being diffed
:t2: The second item in the current node that is being diffed
:additional: Additional information about the node i.e. repetition
Expand Down

0 comments on commit 4c337cf

Please sign in to comment.