Skip to content

2025.0.0 - Breaking change, .NET 8 and 9 support

Latest
Compare
Choose a tag to compare
@lassevk lassevk released this 08 Jan 13:09
· 1 commit to main since this release
0165d63

This release signifies a breaking change.

Several types have been made into records and/or structs, as well as some namespace changes.

Additionally! All MERGE-functionality has been ripped out as it has serious bugs and needs a complete rewrite. I cannot guarantee it will make it back into the library, depending on whether I can figure out how to implement it correctly!

The major reason I am releasing this is that the older version comes with dependencies that are flagged as security risks. The new version only targets .NET 8 and 9.

One additional feature has been implemented, the DiffOptions record now contains a ContextSize property. The default value is 1, which makes the library behave as it always have, but if you increase this value, diffs need to have more elements in sequence that compare equal before a new synchronization point is found.

This is most useful when dealing with raw text, as there will be fewer single-character replacements when you have replaced a whole word. A good value for text comparisons is 3 if you want a more "real" diff for raw text.

For older versions of .NET, the older package is still available on Nuget, but will receive no new changes.