Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@mojtabanabavi mojtabanabavi released this 27 Mar 16:14
· 2 commits to master since this release

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)