Repository navigation
v0.2.0
This release introduces a code refactoring that eliminates the use of global variables in the creation of Validation sessions. To accomplish this, the release introduces an optional options parameter in the New function that enables customization of the locales. Additionally, with the options parameter is possible to set a JSON marshal function for the Validation session.
To streamline the process of creating Validation sessions, the release also introduces a new Factory structure that allows setting of options at the factory level, which can then be used to create Validation sessions using the same functions that exist in the package level.
As a result of the removal of the global variables, this release also eliminates the need for several global functions, including SetMarshalJSON, Localized, GetLocaleMessages, SetLocaleMessages, SetDefaultLocale and GetDefaultLocaleCode. These functions are no longer required due to the new implementation of the Validation session creation process.