Arrow 2.2.2
·
Arrow 2.2.2 is out! The main focus of this release is bugfixing — especially around the Arrow Optics plugin — but also comes with a few goodies.
Integration with Ktor type-safe routing.
The new arrow-raise-ktor-server-resources module
provides integration between Arrow's Raise mechanism and Ktor's definition of paths as resources.
More platforms. Arrow is now published for all platforms supported by Kotlin/Native.
More context parameters.
- The
arrow.core.raise.contextpackage now exposes the same API as thearrow.core.raisepackage, but using context parameters. Up to this version some functions were missing. - The new
arrow.fx.coroutines.resource.contextpackage exposes the resource management capabilities of Arrow using context parameters.
Deprecations around lists.
- There has been some ongoing problems with
unweave, because of its unclear semantics. Since these semantics haven't been clarified for a long time, we have decided to deprecate it. - The
foldLeftfunction forNonEmptyListhas been deprecated in favor offoldLeft2. This new function has a more general type, since it knows that the reducer will be called at least once. In principle, every use site offoldLeftcould be directly replaced withfoldLeft2, except those cases in which explicit type arguments are used.
Thanks to everybody who has contributed to this release!