# Plans for Hanami 2.2

**URL:** https://discourse.hanakai.org/t/plans-for-hanami-2-2/972
**Category:** development
**Created:** [May 20, 2024, 5:12am UTC](https://discourse.hanakai.org/t/plans-for-hanami-2-2/972 "2024-05-20T05:12:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![timriley](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/timriley/32/621_2.png) [@timriley](https://discourse.hanakai.org/u/timriley)
#### Post date: [May 20, 2024, 5:12am UTC](https://discourse.hanakai.org/t/plans-for-hanami-2-2/972/1 "2024-05-20T05:12:03Z")

</div>

Hello Hanami users and contributors (past, present and future)!

Now that [2.1 is out](https://hanamirb.org/blog/2024/02/27/hanami-210/) and working smoothly, it’s time to build 2.2 💪

I’d like to make this a short, sharp release, so we need to be clear on the scope. Here’s we’re planning for 2.2.

**Headline features:**

- Database support via ROM (see [Integrating ROM into Hanami 2.2](https://discourse.hanakai.org/t/integrating-rom-into-hanami-2-2/971) for details)
- [dry-operation](https://github.com/dry-rb/dry-operation) released as 1.0, included in new Hanami apps, and supported via generators
- Documentation updates for the above

**Small enhancements:**

- `hanami generate component` generator
- Support for using full dry-validation contracts for action params

That’s it! If there’s any other nice fixes or small enhancements we could make along the way, all the better, but the theme for this release is “complete the full stack via database support,” so let’s keep focused on that.

I’ve created a [**Hanami 2.2 project board**](https://github.com/orgs/hanami/projects/6) on GitHub, and will be populating that in the coming days. Once issues are there, I’d welcome your contributions towards this release!

* * *

If you have anything you’d like to discuss regarding the 2.2 release, please feel free to do so here!

---

<div class="post-metadata">

### Author: ![alassek](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/alassek/32/532_2.png) [@alassek](https://discourse.hanakai.org/u/alassek)
#### Post date: [May 21, 2024, 1:28am UTC](https://discourse.hanakai.org/t/plans-for-hanami-2-2/972/2 "2024-05-21T01:28:18Z")

</div>

Re: your draft issue, [Update rom-factory with clearer API for creating/building records](https://github.com/orgs/hanami/projects/6?pane=issue&itemId=62622399)

This may end up being a lot harder than it appears. I spent some time working on this to add support for [transient](https://thoughtbot.github.io/factory_bot/ref/transient.html) properties, and really hit a wall complexity-wise.

The way there is all this nested logic to mutate hashes and incrementally change behavior based on those changes is really hard to follow.

On the other hand, if you’re just planning on creating a simple facade, that’s not too bad.

---

<div class="post-metadata">

### Author: ![krzykamil](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/krzykamil/32/765_2.png) [@krzykamil](https://discourse.hanakai.org/u/krzykamil)
#### Post date: [May 31, 2024, 6:17pm UTC](https://discourse.hanakai.org/t/plans-for-hanami-2-2/972/3 "2024-05-31T18:17:15Z")

</div>

As for the dry-validation contracts for action params, is this [Allow `Dry::Validation::Contract` rule definitions in `Hanami::Action` by danhealy · Pull Request #434 · hanami/controller · GitHub](https://github.com/hanami/controller/pull/434) PR gonna be merged or is any help required with seeing it done?

---

<div class="post-metadata">

### Author: ![timriley](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/timriley/32/621_2.png) [@timriley](https://discourse.hanakai.org/u/timriley)
#### Post date: [June 5, 2024, 12:50pm UTC](https://discourse.hanakai.org/t/plans-for-hanami-2-2/972/4 "2024-06-05T12:50:22Z")

</div>

> [@krzykamil](#):
>
> As for the dry-validation contracts for action params, is this [Allow `Dry::Validation::Contract` rule definitions in `Hanami::Action` by danhealy · Pull Request #434 · hanami/controller · GitHub](https://github.com/hanami/controller/pull/434) PR gonna be merged or is any help required with seeing it done?

Hey @krzykamil! I think that PR has gone stale. If you’d like to open another one implementing the approach that we agreed upon after the discussion, I think that’d be great! Will make sure I give you prompt reviews.
