Skip to content

Releases: xvik/guice-validator

3.0.2

12 Apr 17:44
Compare
Choose a tag to compare
  • Avoid direct javax.inject annotations usage for jakarta.inject compatibility
    (guice native annotations used instead)

3.0.1

09 Sep 01:55
Compare
Choose a tag to compare
  • Fix Default group manual usage ignored in strict groups mode
  • Update to guice 5.0.1 (still compatible with guice 4)

2.0.1

09 Sep 01:47
Compare
Choose a tag to compare
  • Fix Default group manual usage ignored in strict groups mode
  • Update to guice 5.0.1 (still compatible with guice 4)

3.0.0

19 Jan 18:08
Compare
Choose a tag to compare
  • (breaking) Switch to jakarta.validation (EE9, Bean validation 3, hibernate-validator 7 support) from javax.validation)
  • Fix module name (to ru.vyarus.guice.validator)
  • Update to guice 4.2.3

2.0.0

24 Dec 13:34
Compare
Choose a tag to compare
  • Update to guice 4.2.2
  • (breaking) Minimum requirement is java 8
  • Update to validation api 2.0 (changes comparing to 1.1)
  • (breaking) Implicit/explicit modules merged into one configurable module: ValidationModule.
    • To enable explicit mode: new ValidationModule().validateAnnotatedOnly()
      or with custom annotation: new ValidationModule().validateAnnotatedOnly(ToValidate.class)
    • To avoid adding default group (previously alwaysAddDefaultGroup): new ValidationModule().strictGroupsDeclaration()
    • .withMatcher previously available only in implicit mode now works in both modes:
      new ValidationModule().targetClasses(...)
  • Add ability to filter target methods (in both modes): new ValidationModule().targetMethods(...)
    By default, synthetic and bridge methods are filtered

Migration:

Old New
new ValidationModule() new ValidationModule().validateAnnotatedOnly()
new ImplicitValidationModule new ValidationModule()
.withMatcher(...) .targetClasses(...)
.alwaysAddDefaultGroup(false) strictGroupsDeclaration()

1.2.0

04 Apr 20:52
Compare
Choose a tag to compare
  • Add validation groups support: groups declared with annotation and used like transactions (defining groups scope)

1.1.0

20 Dec 10:02
Compare
Choose a tag to compare
  • Update guice 3.0 -> 4.0-beta5
  • Add binding for ValidatorFactory instance
  • Add ImplicitValidationModule to apply validation based on validation annotations only (without need for explicit @ValidateOnExecution marker)

1.0.2

16 Aug 11:50
Compare
Choose a tag to compare

Fix pmd/chcekstyle warnings

1.0.1

01 Jul 15:06
Compare
Choose a tag to compare

Maven central requirements applied