Releases: cohesivestack/valgo
v0.4.1
What's Changed
- Add CI Workflow using GitHub Actions by @gaby in #20
- Feature/ensure consistency in docs examples by @carlosforero in #24
- Simplify CI to Ubuntu-only testing. by @carlosforero in #25
- Feature/upgrade packages by @carlosforero in #26
New Contributors
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's Changed
- Variadic Parameters for
Is
andCheck
: TheIs
andCheck
functions now accept variadic parameters, streamlining validation by enabling multiple validators in a single call. This enhancement simplifies the validation process, reduces code verbosity, and promotes the reuse of validation logic across projects. For more details, see PR #19.
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- Add functions to merge Valgo errors from validated sessions by @carlosforero in #12
- Add Time Validator by @carlosforero in #16
- Add new
Or
operator function to Validators. by @carlosforero in #17 - fix: custom validation title by @amsal in #15
New Contributors
Full Changelog: v0.2.4...v0.3.0
v0.2.4
What's Changed
- Make
validationFactory
type public by @carlosforero in #11
This Release makes validationFactory
type public: The validationFactory
type has been made public and renamed to ValidationFactory
, enhancing flexibility and enabling developers to reuse the factory more effectively in various scenarios.
Full Changelog: v0.2.3...v0.2.4
v0.2.3
What's Changed
- Fix generator to use filepath instead of path by @carlosforero in #10
Full Changelog: v0.2.2...v0.2.3
v0.2.2
What's Changed
- Feat: Add localization for german by @BaldFabi in #6
- Feature/update readme by @carlosforero in #7
New Contributors
Full Changelog: v0.2.1...v0.2.2
v0.2.1
- Fix security vulnerability updating golang.org/x/text
- Update code to comply with
gofmt
- Update Readme.
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.
v0.1.0
First Release.