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
feat: changed CompareStrategy to return CompareResult
* Ensure that the correct diff is returned.
* Use records.
* Move kind to beginning of text.
* Fix compilation error and test for custom diff.
* Update src/AngleSharp.Diffing/Core/CompareResult.cs
Co-authored-by: Egil Hansen <[email protected]>
* Update src/AngleSharp.Diffing/Core/Comparison.cs
Co-authored-by: Egil Hansen <[email protected]>
* Update src/AngleSharp.Diffing/Core/AttributeComparison.cs
Co-authored-by: Egil Hansen <[email protected]>
* 1. Rename CompareResultDecision
2. Move method inside type.
* Rename method.
* Get rid of StylesOrder
* More records.
* refactor: move IsExternalInit to folder matching namespace
* add comment to explain use of ReferenceEquals
* Move types into two files
* simplify attrdiff object hierarchi
* remove diff type check
* clean up using statements
* refactor: IsSameOrSkip as property
* refactor: normalize tests
* feat: add CommentComparer tests
* nodes do not have different closing tags, elements do, so switch to using ElementDiff when comparing elements
* fix: override ComparisonSource.ToString for better output
* fix: use unspecified when no diff is returned
* override ToString in AttributeComparisonSource
* bump version number
---------
Co-authored-by: Egil Hansen <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
# 0.18.2
2
+
3
+
- Changed `CompareStrategy` such that it now can control the `IDiff` type that should be returned in case a difference is found in a comparison. This allows a comparer to embed additional context in the `IDiff` object. By [@SebastianStehle](https://github.com/SebastianStehle).
4
+
- Changed `ElementComparer` to skip comparing two nodes of different types. By [@SebastianStehle](https://github.com/SebastianStehle).
5
+
1
6
# 0.18.1
2
7
3
8
- Fixed element comparer such that it can strictly check if the closing tags in the source markup is the same.
0 commit comments