Closed andrebaltieri closed 3 years ago
I totally agree As you are breaking some contract (since some projects use Valid or Invalid) you will create a major version?
I totally agree As you are breaking some contract (since some projects use Valid or Invalid) you will create a major version?
Another option is to keep both and add an [Obsolete] attribute on the properties. Then he can delete them in a future version. So it won't break anything and will raise some alerts pointing out to use the new properties.
@natancmacedo yeah, will be a major release!!!
@LucasWBritz great, but as well have a major release, I think it
s not necessary!
Base Notification class now have only IsValid property. You can check here: https://github.com/andrebaltieri/Flunt/blob/dev/Flunt/Notifications/Notifiable.cs
And here is a sample of how can you create your custom notifications: https://github.com/andrebaltieri/Flunt/blob/dev/Flunt.Tests/CustomNotificationsTests.cs
Some names on
Notifiable.cs
are no intuitive, we`re gonna change to: