The old Hanami::Validation mixin is still present for backwards compatibility.

Compatibility 🔙

The reason why we anticipated the release of hanami-validationsv2.0.0.alpha1 is for compatibility reasons.

Because of Semantic Versioning reasons, Hanami 1.x depends indirectly on outdated versions of both DRY & ROM gems.
There is a huge demand to use latest DRY & ROM gems with Hanami 1.x, and hanami-validations1.3 was a blocker.

With today's release of hanamiv1.3.2it's possible to use latest DRY & ROM versions.

How to upgrade ⬆

Edit the Gemfile of your Hanami 1 application:

gem"hanami-validations","~> 2.0.alpha"gem"hanami","~> 1.3"

Then run:

$ bundle update hanami hanami-validations

Now you'll need to update the syntax of your validations, including action params.

Implications 👓

Please remember that using hanami-validationsv2.0.0.alpha1 with hanami~> 1.3 is completely optional.
It's just a way to let you to use latest DRY & ROM gems, only if needed.

If you decide to upgrade, you already have the validators ready for Hanami 2.

You can also decide to use ROM 5 with Hanami 1 of today.

What's next? ⏰

We were aiming to release a new Hanami alpha version in April 2019. We apologize if we didn't make it.
We had both private life & technical difficulties that prevented us to met our goals. Thanks for understading.💚