Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to cats 2.4.1 #146

Merged
merged 1 commit into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [5.8.1]

* upgrade to cats 2.4.1

## [5.8.0]

* enables the user to add a hook that is executed before flow execution and after description is updated, via the `before-flow-hook` option
Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject nubank/state-flow "5.8.0"
(defproject nubank/state-flow "5.8.1"
:description "Integration testing with composable flows"
:url "https://github.com/nubank/state-flow"
:license {:name "MIT"}
Expand All @@ -20,7 +20,7 @@

:dependencies [[org.clojure/clojure "1.10.1"]
[com.taoensso/timbre "4.10.0"]
[funcool/cats "2.3.6"]
[funcool/cats "2.4.1"]
[nubank/matcher-combinators "3.1.3"]]

:exclusions [log4j]
Expand Down
5 changes: 3 additions & 2 deletions src/state_flow/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
(import-fn state-flow.state/gets get-state)
(import-fn state-flow.state/modify swap-state)

;; NOTE: this could be imported directly from cats.core, but we're defining
;; it here to keep the documentation in terms of state-flow rather than cats.
(defmacro for
"Like clojure.core/for, but returns a flow which wraps a sequence of flows e.g.

Expand All @@ -57,5 +59,4 @@
(match? even? 6)
(match? even? 8)) "
[seq-exprs flow]
`(m/sequence
(clojure.core/for ~seq-exprs ~flow)))
`(m/for ~seq-exprs ~flow))