Skip to content

0.1.0

Compare
Choose a tag to compare
@shahryarjb shahryarjb released this 22 Aug 15:24
· 213 commits to master since this release

We are delighted to introduce our new version of library. For more info click on GuardedStruct.

GuardedStruct

The creation of this macro will allow you to build Structs that provide you with a number of important options, including the following:

  1. Validation
  2. Sanitizing
  3. Constructor
  4. It provides the capacity to operate in a nested style simultaneously.

Suppose you are going to collect a number of pieces of information from the user, and before doing anything else, you are going to sanitize them.
After that, you are going to validate each piece of data, and if there are no issues, you will either display it in a proper output or save it somewhere else.
All of the characteristics that are associated with this macro revolve around cleaning and validating the data.

The features that we list below are individually based on a particular strategy and requirement, but thankfully, they may be combined and mixed in any way that you see fit.

Some of the changes in this version:

Changelog for MishkaDeveloperTools 0.1.0

  • Add Guardedstruct macro
  • Support nested struct in macro
  • Add derive for Validation and Sanitization
  • Add custom validator and main validator
  • Add custom validator and main validator from finding in a module
  • Add __struct__, keys, enforce_keys and builder functions
  • Add required_fields validation with :halt status
  • Add calling nested fields and struct from another module
  • Add Derive.Parser.convert_to_atom_map to Change string map to atom map
  • Add derive for sanitizing and validating Trim
  • Add derive for sanitizing and validating Lowercase
  • Add derive for sanitizing and validating Uppercase
  • Add derive for sanitizing and validating Max length
  • Add derive for sanitizing and validating Min length
  • Add derive for sanitizing and validating Safe String false or true value
  • Add derive for sanitizing and validating Email
  • Add derive for sanitizing and validating Location
  • Add derive for sanitizing and validating Date
  • Add derive for sanitizing and validating DateTime
  • Add derive for sanitizing and validating basic_html sanitize
  • Add derive for sanitizing and validating html5 sanitize
  • Add derive for sanitizing and validating markdown_html sanitize
  • Add derive for sanitizing and validating strip_tags sanitize
  • Add derive for sanitizing and validating Regex runner
  • Add derive for sanitizing and validating Range
  • Add derive for sanitizing and validating Validate URL
  • Add derive for sanitizing and validating Validate IPV4
  • Add derive for sanitizing and validating Validate Enum
  • Add derive for sanitizing and validating Validate Tag
  • Add derive for sanitizing and validating Validate UUID
  • Add derive for sanitizing and validating Validate Not empty string
  • Add derive for sanitizing and validating Validate Equal
  • Add a :halt error to filter validations output from showing after halt error
  • Update all dependencies to last version
  • Fix tests for Elixir 1.15
  • Make all dependencies optional based on user requirements
  • improve documents

Special thanks to @pouriya and @samdvr

Full Changelog: 0.0.8...0.1.0