mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Update docs
This commit is contained in:
parent
4e65e40db3
commit
dece45f036
3 changed files with 16 additions and 11 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
|
@ -19,10 +19,6 @@
|
|||
|
||||
* `reitit.interceptor/transform-butlast` helper to transform the interceptor chains (last one is usually the handler).
|
||||
|
||||
### `reitit-pedestal`
|
||||
|
||||
* new optional module for [Pedestal](http://pedestal.io/) integration. See [the docs](https://metosin.github.io/reitit/http/pedestal.html).
|
||||
|
||||
## `reitit-middleware`
|
||||
|
||||
* `reitit.ring.middleware.dev/print-request-diffs` middleware transformation function to print out request diffs between middleware to the console
|
||||
|
|
@ -39,12 +35,21 @@
|
|||
|
||||
<img src="https://metosin.github.io/reitit/images/http-context-diff.png" width=320>
|
||||
|
||||
## `reitit-sieppari`
|
||||
|
||||
* New version of Sieppari allows interceptors to run on ClojureScript too.
|
||||
|
||||
### `reitit-pedestal`
|
||||
|
||||
* new optional module for [Pedestal](http://pedestal.io/) integration. See [the docs](https://metosin.github.io/reitit/http/pedestal.html).
|
||||
|
||||
### dependencies
|
||||
|
||||
* updated:
|
||||
|
||||
```clj
|
||||
[metosin/muuntaja "0.6.3"] is available but we use "0.6.1"
|
||||
[metosin/sieppari "0.0.0-alpha6"] is available but we use "0.0.0-alpha7"
|
||||
```
|
||||
|
||||
## 0.2.9 (2018-11-21)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ To get better view on the real life routing performance, there is [test](https:/
|
|||
|
||||
Thanks to the snappy new [segment-tree](https://github.com/metosin/reitit/blob/master/modules/reitit-core/src/reitit/segment.cljc) algorithm, `reitit-ring` is fastest here. Pedestal is also fast with it's [prefix-tree](https://en.wikipedia.org/wiki/Radix_tree) implementation.
|
||||
|
||||

|
||||

|
||||
|
||||
### CQRS apis
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ Another real-life [test scenario](https://github.com/metosin/reitit/blob/master/
|
|||
|
||||
Both `reitit-ring` and Pedestal shine in this test, thanks to the fast lookup-routers. On average, they are **two** and on best case, **three orders of magnitude faster** than the other tested libs. Ataraxy failed this test on `Method code too large!` error.
|
||||
|
||||

|
||||

|
||||
|
||||
**NOTE**: in real life, there are usually always also wild-card routes present. In this case, Pedestal would fallback from lookup-router to the prefix-tree router, which is order of magnitude slower (30x in this test). Reitit would handle this nicely thanks to it's `:mixed-router`: all static routes would still be served with `:lookup-router`, just the wildcard routes with `:segment-tree`. The performance would not notably degrade.
|
||||
|
||||
|
|
|
|||
10
project.clj
10
project.clj
|
|
@ -28,7 +28,7 @@
|
|||
[metosin/schema-tools "0.10.5"]
|
||||
[metosin/muuntaja "0.6.3"]
|
||||
[metosin/jsonista "0.2.2"]
|
||||
[metosin/sieppari "0.0.0-alpha6"]
|
||||
[metosin/sieppari "0.0.0-alpha7"]
|
||||
|
||||
[meta-merge "1.0.0"]
|
||||
[lambdaisland/deep-diff "0.0-25"]
|
||||
|
|
@ -72,8 +72,8 @@
|
|||
[ring "1.7.1"]
|
||||
[ikitommi/immutant-web "3.0.0-alpha1"]
|
||||
[metosin/ring-swagger-ui "2.2.10"]
|
||||
[metosin/muuntaja "0.6.3"]
|
||||
[metosin/sieppari "0.0.0-alpha5"]
|
||||
[metosin/muuntaja]
|
||||
[metosin/sieppari]
|
||||
[metosin/jsonista "0.2.2"]
|
||||
|
||||
[criterium "0.4.4"]
|
||||
|
|
@ -102,12 +102,12 @@
|
|||
[org.clojure/core.async "0.4.490"]
|
||||
[manifold "0.1.8"]
|
||||
[funcool/promesa "1.9.0"]
|
||||
[metosin/sieppari "0.0.0-alpha5"]
|
||||
[metosin/sieppari]
|
||||
[yada "1.2.16"]
|
||||
[aleph "0.4.6"]
|
||||
[ring/ring-defaults "0.3.2"]
|
||||
[ataraxy "0.4.2"]
|
||||
[bidi "2.1.4"]]}
|
||||
[bidi "2.1.5"]]}
|
||||
:analyze {:jvm-opts ^:replace ["-server"
|
||||
"-Dclojure.compiler.direct-linking=true"
|
||||
"-XX:+PrintCompilation"
|
||||
|
|
|
|||
Loading…
Reference in a new issue