v0.9.0
π This release contains work from a new contributor! π
Thank you, David Stone (@stabbylambda), for all your work!
Release Notes
Hooks with type parameters (#8)
Enhance DSL to adds the ability to generate Hooks with type parameters. The use case for this is when some piece of data is known only to the consumer of a library and the consumers of the taps, but not necessarily the library itself. As an example:
class FooHooks<T> : Hooks() {
open val beforeCalc = syncHook<(T) -> Unit>()
}
data class Foo<T>(val t: T) {
public val hooks = FooHooksImpl<T>()
fun calc() {
hooks.beforeCalc.call(t)
// ...
}
}
fun runCalcsWithLog() {
val f = Foo<String>("hi")
f.hooks.beforeCalc.tap("hi") { x -> println(x) }
}
π Enhancement
- Hooks with type parameters #8 (@stabbylambda)
π Bug Fix
- Update to use Typed Quotes #7 (@stabbylambda)
π Documentation
- update docs for gradle plugin portal #6 (@sugarmanz)
Authors: 2
- David Stone (@stabbylambda)
- Jeremiah Zucker (@sugarmanz)