Skip to content

Releases: diegofrata/Generator.Equals

2.7.2

31 Dec 14:33
4047e06
Compare
Choose a tag to compare

What's Changed

  • Fix comparison to support deep equality on non-sealed types. by @diegofrata in #39

Full Changelog: 2.7.1...2.7.2

2.7.1

18 Dec 12:51
cf185f8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.7.0...2.7.1

2.7.0

09 Dec 14:46
431e8f6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.6.0...2.7.0

2.6.0

24 Oct 13:37
4c9a83e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.5.1...2.6.0

2.5.1

19 Sep 12:35
ba87406
Compare
Choose a tag to compare

What's Changed

  • feat: generated code is now more readable. by @HavenDV in #31

Full Changelog: 2.5.0...2.5.1

2.5.0

18 Sep 21:37
Compare
Choose a tag to compare

What's Changed

  • feat: Added EquatableAttribute.IgnoreInhertiedMembers parameter, allowing users to control whether the generator uses or ignores members inherited from the base class/record. by @HavenDV in #30
  • chore: Added snapshot tests everywhere and also added some extra tests by @diegofrata in #29

Full Changelog: 2.4.0...2.5.0

2.4.0

25 Aug 18:26
e58545f
Compare
Choose a tag to compare

The generator now allows you to explicitly specify which properties are used to generate the IEquatable.

To do this, set the Explicit property of EquatableAttribute to true and specify the required properties using DefaultEqualityAttribute or other attributes.

using Generator.Equals;

[Equatable(Explicit = true)]
partial class MyClass
{
    // Only this property will be used for equality!
    [DefaultEquality] 
    public string Name { get; set; } = "Konstantin"; 
    
    public string Description { get; set; } = "";
}

Thanks to @HavenDV for this contribution!

2.3.2

28 Jun 16:10
Compare
Choose a tag to compare

Allow collection comparers to be reused with custom item equality.

2.3.1

05 Jun 17:39
05478a7
Compare
Choose a tag to compare

Fix for ArgumentException in EqualsGenerator caused by multiple partial classes/records.