Skip to content

Commit

Permalink
Release v1.0.64
Browse files Browse the repository at this point in the history
  • Loading branch information
just-sultanov committed May 16, 2022
1 parent 2e12f9e commit c71d52d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
10 changes: 10 additions & 0 deletions changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

=== Released

==== v1.0.64 (2022-05-16)

===== Added

- The common response builder - `tenet.response/as`

===== Fixed

- Removed the helper function `cl-format` for the ability to work with GraalVM

==== v1.0.57 (2022-04-30)

Public API is stable.
Expand Down
19 changes: 17 additions & 2 deletions readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ Add the following dependency in your project:
.project.clj or build.boot
[source,clojure]
----
[io.lazy-cat/tenet "1.0.57"]
[io.lazy-cat/tenet "1.0.64"]
----

.deps.edn or bb.edn
[source,clojure]
----
io.lazy-cat/tenet {:mvn/version "1.0.57"}
io.lazy-cat/tenet {:mvn/version "1.0.64"}
----

==== Basic API
Expand Down Expand Up @@ -167,6 +167,21 @@ io.lazy-cat/tenet {:mvn/version "1.0.57"}
(r/as-updated x)
----

===== Custom response builders

[source,clojure]
----
(derive :org.acme.user/incorrect ::r/error) ;; or (swap! r/*registry conj :org.acme.user/incorrect)
(r/as :org.acme.user/incorrect :foo) ;; => #tenet [:org.acme.user/incorrect :foo]
(-> (r/as :org.acme.user/incorrect) (r/anomaly?)) ;; => true
(-> (r/as :org.acme.user/incorrect :foo) (r/anomaly?)) ;; => true
(r/as :org.acme.user/created :foo) ;; => #tenet [:org.acme.user/created :foo]
(-> (r/as :org.acme.user/created :foo) (r/anomaly?)) ;; => false
----

==== Examples

===== Basic API
Expand Down

0 comments on commit c71d52d

Please sign in to comment.