Releases: mojtabanabavi/Loby
Releases · mojtabanabavi/Loby
v2.0.0
Updates and Changes
- Serializer tool is removed
- Mailer is updated to version 2.0
- Paginator is updated to version 1.1
- New validations in validator
- New extension methods were added
- Some problems were solved
Serializer tool is removed
- Removed because Loby is supposed to be standalone and lightweight, but Serializer had unnecessarily dependency.
- There are so many settings for serialization that adding them to the Serializer was like creating a useless wrapper for System.Text.Json and XmlSerializer.
Mailer is updated to version 2.0
- Now there are more settings for sending e-mail by Mailer. follow this link for more information.
- From now on, Mailer receives its settings by an instance of MailerSettings in its constructor.
Paginator is updated to version 1.1
- Now PagingResult is Independent of Paginator.
- In the new version of paginator there is more metadata available. follow this link for more information.
New validations in Validator
- IsValidCreditCard(string value)
- IsValidNumber(string value)
New extension methods are available
- String
- ToTitleCase(this string value, string culture = "en-us")
- IEnumerable
- Join(this IEnumerable list, string delimiter)
- IEnumerable DistinctBy<TSource, TKey>(this IEnumerable source, Func<TSource, TKey> keySelector)
- IQueryable
- IQueryable OrderBy(this IQueryable source, string expression)
- Reflection
- HasAttribute(this MemberInfo element, Type attributeType, bool inherit = false)
- HasAttribute(this MemberInfo element, bool inherit = false)
- IsInheritFrom(this Type element, Type type)
- IsInheritFrom(this Type element)
v1.3.0
- Adding paginator tool
- Adding pagination extensions
- Splitting convertor tool into some extensions
- Fixing some exceptions
v1.2.0
- Inhance compatibility with other frameworks
- .Net >= 5.0
- .Net Core >= 3.1
- .Net Standard >= 2.0
- .Net Framework >= 4.7.2
- Fixing namespaces (In previous releases, all classes were in the same namespace)
- Loby.Tools
- Loby.Extensions
v1.1.0
- Converting extension methods to normal ones in tools
- Adding some new extensions.
v1.0.0
The following items were added:
Tools:
- Convertor
- Dater
- Mailer
- Mather
- Password Hasher
- Pluralizer
- Randomizer
- Serializer
- Validator
Extensions for:
- Enumerable
- Enum
- Identity
- Object
- String