Skip to content

Releases: intuit/hooks

0.10.4-next.0

21 Oct 23:38
Compare
Choose a tag to compare
0.10.4-next.0 Pre-release
Pre-release

⚠️ Pushed to next

Authors: 1

v0.10.2

07 Oct 02:27
Compare
Choose a tag to compare

Release Notes

Format generated source with KtLint (#18)

What Changed

Format generated source with KtLint

Why

To make generated source more readable for consumers


🐛 Bug Fix

Authors: 1

v0.10.1

07 Oct 01:31
Compare
Choose a tag to compare

Release Notes

manually bump version snapshot (#17)


🐛 Bug Fix

Authors: 1

v0.10.0

06 Oct 20:12
Compare
Choose a tag to compare

Release Notes

upgrade to arrow 1.0.0 and fix generated sources root (#15)

  • Upgrade to Arrow 1.0.0
  • Fixed issue where JAR bundling was somehow causing the plugin options to be dropped

🚀 Enhancement

  • upgrade to arrow 1.0.0 and fix generated sources root #15 (@sugarmanz)

Authors: 1

v0.9.1

10 May 18:47
Compare
Choose a tag to compare

🐛 Bug Fix

⚠️ Pushed to main

🏠 Internal

Authors: 2

0.9.2-next.1

19 Mar 00:31
Compare
Choose a tag to compare
0.9.2-next.1 Pre-release
Pre-release

⚠️ Pushed to next

Authors: 1

v0.9.0

17 Mar 21:58
Compare
Choose a tag to compare

🎉 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

🐛 Bug Fix

📝 Documentation

Authors: 2

v0.8.2

02 Mar 23:25
Compare
Choose a tag to compare

🐛 Bug Fix

Authors: 1

v0.8.1

02 Mar 21:33
Compare
Choose a tag to compare

⚠️ Pushed to master

Authors: 1

v0.8.0

02 Mar 21:12
Compare
Choose a tag to compare

🚀 Enhancement

Authors: 1