diff --git a/CHANGES.md b/CHANGES.md index d92ae84..b94fa7e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,8 @@ -## 1.0.6-SNAPSHOT +## 1.1.0-SNAPSHOT * Add `vtransform` variant of `transform` that takes in collected values as a vector in the first argument rather than spliced into argument list. * Add `vterminal` that takes in collected vals as vector in first argument rather than spliced into argument list. +* Change `terminal` to be a no-op on select codepath ## 1.0.5 diff --git a/VERSION b/VERSION index 4fd21a1..5902d52 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.6-SNAPSHOT +1.1.0-SNAPSHOT diff --git a/src/clj/com/rpl/specter.cljc b/src/clj/com/rpl/specter.cljc index df64701..309e2ff 100644 --- a/src/clj/com/rpl/specter.cljc +++ b/src/clj/com/rpl/specter.cljc @@ -643,28 +643,26 @@ i/STAY*) (def - ^{:doc "For usage with `multi-transform`, defines an endpoint in the navigation - that will have the parameterized transform function run. The transform + ^{:doc "Defines an endpoint in the navigation the transform function run. The transform function works just like it does in `transform`, with collected values given as the first arguments"} terminal (richnav [afn] (select* [this vals structure next-fn] - (i/throw-illegal "'terminal' should only be used in multi-transform")) + NONE) (transform* [this vals structure next-fn] (i/terminal* afn vals structure)))) (def - ^{:doc "For usage with `multi-transform`, defines an endpoint in the navigation - that will have the parameterized transform function run. The transform + ^{:doc "Defines an endpoint in the navigation the transform function run.The transform function works differently than it does in `transform`. Rather than receive collected vals spliced in as the first arguments to the function, this function - always takes two arguemnts. The first is all collected - vals in a vector, and the second is the navigated value."} + always takes two arguemnts. The first is all collected vals in a vector, and + the second is the navigated value."} vterminal (richnav [afn] (select* [this vals structure next-fn] - (i/throw-illegal "'terminal' should only be used in multi-transform")) + NONE) (transform* [this vals structure next-fn] (afn vals structure))))