Commit graph

744 commits

Author SHA1 Message Date
Tommi Reiman
9e42140a28
Merge pull request #356 from MattiNieminen/bugfix/355-add-missing-dependency
Add missing spec-tools dependency to reitit-middleware. Fixes #355
2020-05-25 16:48:23 +03:00
piotr-yuxuan
6e332e46f1
Low-priority default :responses in Swagger spec
According to meta-merge documentation, ^:displace is a good solution
for default values. This is still inside the meta-merge, as I don't
see where else I could put it. Perhaps a better solution is available.
2020-05-20 22:45:11 +01:00
piotr-yuxuan
3e8eaa48d7
Fix default description
https://github.com/metosin/reitit/issues/403
2020-05-19 23:42:56 +01:00
Tommi Reiman
50f0120e8c 0.5.1 2020-05-18 15:00:28 +03:00
Tommi Reiman
500a4cc809 0.5.0 2020-05-17 18:42:33 +03:00
Tommi Reiman
920c9d7cfd nil-punning on routes 2020-05-17 10:34:44 +03:00
Tommi Reiman
39aafc9029 Fix malli + swagger 2020-05-16 14:08:16 +03:00
Tommi Reiman
514f113bf3 reitit + jackson-databind 2020-05-13 21:28:10 +03:00
Tommi Reiman
d36c47d7b1 :reitit.ring/default-options-endpoint & :reitit.http/default-options-endpoint 2020-05-12 21:21:39 +03:00
Tommi Reiman
e5fbb51138 Fix reflection warning 2020-05-12 21:05:12 +03:00
Tommi Reiman
fd0d7cc46c Add create-file-handler, fixes #395 2020-05-12 21:05:12 +03:00
Tommi Reiman
b8b442b598 Fix #394 2020-05-12 21:05:12 +03:00
Tommi Reiman
79c430d298 Fix tests 2020-05-12 21:04:35 +03:00
Tommi Reiman
9e7df6ca03 Support expand on default-options-endpoint 2020-05-12 20:11:39 +03:00
Tommi Reiman
9921479c46 Polish code 2020-05-12 19:43:04 +03:00
Tommi Reiman
3cdd4963ff
Merge pull request #385 from caioaao/default-options-resource
Change default-options-handler to default-options-resource
2020-05-12 19:39:32 +03:00
Caio Oliveira
029894b984
testing assertion 2020-05-12 10:46:53 -04:00
Caio Oliveira
5e3e552c80
add assertion for breaking change 2020-05-12 10:41:34 -04:00
Caio Oliveira
a98fe22992
style 2020-05-12 10:37:47 -04:00
Caio Oliveira
4fa3e12b49
resource -> endpoint 2020-05-12 10:37:13 -04:00
Tommi Reiman
1b0cc0a100 Faster path conflict resolution, O(n2) -> O(n) 2020-04-27 08:38:27 +03:00
Tommi Reiman
b128a0f3db Run path-conflicting just once for quarantine router 2020-04-26 22:04:14 +03:00
Tommi Reiman
0d3a195cd8 Format 2020-04-26 21:28:08 +03:00
Tommi Reiman
f45f5859eb Fix reflection warning 2020-04-26 21:28:04 +03:00
Tommi Reiman
faaaedaa29 Enable quick creation of routers 2020-04-26 21:27:55 +03:00
Caio Oliveira
5796df494e
Change default-options-handler to default-options-resource
To make the options resource more customizable.
2020-04-11 20:46:06 -04:00
Tommi Reiman
69d2c3a089 Add missing import, fixes #373 2020-03-29 19:56:26 +03:00
Tommi Reiman
577447dc23
Merge pull request #372 from metosin/feature/fix-315
Ensure rfe/history is set during initial on-navigate call
2020-03-28 14:52:19 +02:00
Juho Teperi
be23cd169e Fix swagger :tags docstring 2020-03-24 11:19:00 +02:00
Juho Teperi
03009f5ca4 Ensure rfe/history is set during initial on-navigate call
Fixes #315
2020-03-05 15:32:16 +02:00
Juho Teperi
c4e84c2875 Add clj-kondo and fix most linting warnings 2020-03-05 13:32:48 +02:00
Olim Saidov
a7a0b0e287
Merge branch 'master' into patch-1 2020-02-05 14:46:32 +05:00
Olim Saidov
927d1c1bbb Pass malli options to compile fn 2020-02-05 14:33:36 +05:00
Olim Saidov
f17b47b0db Pass malli options to extract-parameter fn 2020-02-05 14:04:24 +05:00
Matti Nieminen
20a3864482 Add missing spec-tools dependency to reitit-middleware. Fixes #355 2020-01-31 12:19:53 +02:00
Wanderson Ferreira
f7e4136e0e adding type hints to clean boxed operations with java.lang.Objects 2020-01-19 00:37:57 -03:00
Tommi Reiman
3ca0492244 0.4.2 2020-01-17 18:39:07 +02:00
Tommi Reiman
3b4eae6499 Add direct dependenxcy to Jackson Core
See https://clojureverse.org/t/depending-on-the-right-versions-of-jackson-libraries/5111
2020-01-17 18:37:34 +02:00
Tommi Reiman
945fec23a9 0.4.1 2020-01-14 21:42:47 +02:00
Miikka Koskinen
1ad0141792 Release 0.4.0 2020-01-14 15:49:13 +02:00
Tommi Reiman
b651fac0b0 Use latest malli fixing visitors 2020-01-08 21:50:04 +02:00
Tommi Reiman
9b024db897 Response coercion is decode + validate + encode 2020-01-07 07:03:57 +02:00
Tommi Reiman
91a2945578 Add support for default values 2019-12-30 22:58:05 +02:00
Tommi Reiman
fa0c00c5b2 Update dep 2019-12-28 09:40:09 +02:00
Tommi Reiman
44f6c51610 Finalize malli coercion 2019-12-28 02:37:33 +02:00
Tommi Reiman
3c61824f1d malli coercion + strip extra keys by default with spec 2019-12-28 00:51:41 +02:00
Tommi Reiman
a7cd1cf398 response endoding, WIP: tests 2019-12-27 22:03:52 +02:00
Tommi Reiman
93f947831d malli + swagger docs 2019-12-27 22:03:52 +02:00
Tommi Reiman
10be520a0d Malli + coercion 2019-12-27 22:03:52 +02:00
Matt Russell
b648c73dcb Removed hard dependency on metosin/ring-http-response.
Use fully-qualified keyword rather referring via required alias, avoiding adding dependency.
2019-12-13 10:39:24 +00:00
Matt Russell
5aac69f563 Add metosin/ring-http-response support to exception middleware. 2019-12-12 22:29:17 +00:00
Pauli Jaakkola
6d5bf64833 Implement encoding of multi-valued query params. 2019-12-02 15:33:55 +02:00
Pauli Jaakkola
0adb820bba Collect multi-valued query params into vector. 2019-11-15 12:53:32 +02:00
Ilmo Raunio
25728ae8f2 Use transducer per #329 review suggestion 2019-11-13 22:49:21 +02:00
Ilmo Raunio
8a86701902 Allow path conflict resolution with :conflicting 2019-11-13 22:49:21 +02:00
Daw-Ran Liou
69795f5fe7 Tighten middleware spec from collection to vector
This avoids messing up the order of middleware chain accidentally.
2019-10-09 18:38:32 +03:00
Tommi Reiman
c23f591283 0.3.10 2019-10-08 10:28:25 +03:00
Juho Teperi
10c9097c40
Merge pull request #301 from uosl/fix/composedpath
Use aget for composedPath to avoid casting JS array to seq
2019-09-20 10:43:35 +03:00
Juho Teperi
f0fef3e525
Merge branch 'master' into html5-hist-fragments 2019-09-20 10:36:08 +03:00
Juho Teperi
500d5d6540
Merge pull request #259 from metosin/ignore-anchor-click-fn
Ignore anchor click fn
2019-09-20 10:34:15 +03:00
Tommi Reiman
3644c2e392 FIxes #308 2019-09-09 21:14:40 +03:00
Juho Teperi
802c9b04c4
Merge branch 'master' into ignore-anchor-click-fn 2019-08-21 13:43:01 +03:00
Alexander Kiel
a19849fe58 Make Map Destructuring of Namespaced Keys more Beautiful
It's possible to put the :keys keyword in the namespace of the keys one likes to
destructure. With that one can use symbols in the vector again. One advantage of
having symbols is, that Cursive grays them out if not used. I found two
occurrences of unused destructured keys.
2019-07-13 17:02:41 +03:00
uosl
c8209a69db Use aget composedPath to avoid casting JS array to seq 2019-07-11 09:04:06 +01:00
Dieter Komendera
35597aadf6 Pass uri fragments to history pushState 2019-07-08 08:48:15 +02:00
Tommi Reiman
2e85f44a7e 0.3.9 2019-06-16 20:20:49 +03:00
Tommi Reiman
91e860f6c6 Support 3-arity handler for default-options-handler 2019-06-16 20:11:19 +03:00
Tommi Reiman
dd7a01b1bc 0.3.8 2019-06-15 11:49:45 +03:00
Tommi Reiman
46897f3927 Update docs 2019-06-09 20:46:20 +03:00
Tommi Reiman
c9281f0e89 support :parameter-syntax option in router 2019-06-09 20:29:03 +03:00
Tommi Reiman
12543b1c30 0.3.7 2019-05-25 16:00:45 +03:00
Tommi Reiman
37deaa3b9e Check also pedestal interceptor key values, fixes #285 2019-05-23 18:53:27 +03:00
Tommi Reiman
a314e06887 0.3.6 2019-05-23 14:37:58 +03:00
Daniel Sunnerek
372d7e7509 [#283] Allow to pass some defaults to create-default-handler 2019-05-23 13:18:49 +02:00
Tommi Reiman
5efdc67954
Merge pull request #281 from malesch/feature/fix-typos
Fix a bunch of typos
2019-05-22 21:47:36 +03:00
Tommi Reiman
568dbad3a3 0.3.5 2019-05-22 21:25:56 +03:00
Tommi Reiman
4178acde5f Make Trie$Match immutable 2019-05-22 21:10:51 +03:00
Marcus Spiegel
8dcebcf49f Fix typos 2019-05-22 19:17:10 +02:00
Tommi Reiman
60ee39bd53 Trie$Match is mutable, fixes #277 2019-05-22 16:39:37 +03:00
Tommi Reiman
3381fe34e5 0.3.4 2019-05-20 20:14:14 +03:00
Kevin van Rooijen
a9cacd78ce Properly access ::s/problems key in coercion-spec 2019-05-20 17:30:17 +02:00
Tommi Reiman
32fced15e8 Release 0.3.3 2019-05-16 07:03:17 +03:00
Tommi Reiman
639b0ca5f4 Correct Link 2019-05-16 06:56:00 +03:00
Tommi Reiman
7e7b57c913 Add ex-message shim 2019-05-16 06:51:10 +03:00
Tommi Reiman
ad0bc7e013 Better errors for route-data merge errors 2019-05-15 22:54:35 +03:00
Tommi Reiman
2e7729349e 0.3.2 2019-05-13 17:06:37 +03:00
Tommi Reiman
8a538b6d7e Update CHANGELOG 2019-05-13 17:05:46 +03:00
Tommi Reiman
419dd24316 Route-data validation docs 2019-05-11 22:31:58 +03:00
Tommi Reiman
6d263ae1b6 Test Pedestal error mapping, add dev helpers 2019-05-11 10:25:09 +03:00
Tommi Reiman
e70837b140
Merge pull request #263 from metosin/north
Closed spec validation demoed in Clojure/North (WIP)
2019-05-10 14:28:39 +03:00
Tommi Reiman
a9bdceeeb6 reitit.spec/wrap spec-tools.spec/closed 2019-05-01 22:40:44 +03:00
Tommi Reiman
c3de6ff3dd Fix tests 2019-05-01 22:40:44 +03:00
Tommi Reiman
c8eaa955c3 Revert fast params in a Trie 2019-05-01 22:40:44 +03:00
Tommi Reiman
1326d76936 Faster params in Trie 2019-05-01 22:40:44 +03:00
Tommi Reiman
68d68402d9 Fix Java Trie example 2019-05-01 22:40:44 +03:00
Tommi Reiman
c678ca9789 Print both request & response diffs 2019-04-29 15:29:02 +03:00
Juho Teperi
51c5aad492 Refactor ignore-anchor-click check to predicate function 2019-04-29 10:18:41 +03:00
Juho Teperi
5ffb9fc59f Add ignore-anchor-click function 2019-04-29 10:15:49 +03:00
Alex King
b50b44cced Invert link 'target' check 2019-04-29 10:15:49 +03:00
Alex King
a25f336d80 Ignore anchors with '_self' not 'self' 2019-04-29 10:15:49 +03:00
Tommi Reiman
674b60a124 spell-spec 2019-04-28 17:06:50 +03:00
Tommi Reiman
dc92f6f48e http-swagger++ 2019-04-28 17:06:50 +03:00
Valtteri Harmainen
f7332d3bc4 Fix empty query params map resulting in redundant '?' in path 2019-04-27 08:22:08 +03:00
Juho Teperi
9241de9a43
Merge pull request #258 from fraxu/shadow-dom-fix
Support html5 links inside Shadow DOM
2019-04-15 11:13:15 +03:00
Antti Leppänen
c9076e57ad Use getBrowserEvent method instead of _event property 2019-04-12 07:12:46 +03:00
Antti Leppänen
733958404e Use doc-string. 2019-04-10 12:14:21 +03:00
Antti Leppänen
b258e0abba Support html5 links inside Shadow DOM 2019-04-10 09:03:48 +03:00
mathieu
909e82168a Support Sieppari-style error handlers with pedestal
The reitit-pedestal Executor checks if the mounted interceptors have
1-arity error handler. If so, they are wrapped into a 2 arrity function.
2019-04-04 09:38:39 +02:00
Tommi Reiman
a0d833e645 0.3.1 2019-03-18 08:27:25 +02:00
Tommi Reiman
d21dd03dfa 0.3.0 2019-03-17 14:22:15 +02:00
Juho Teperi
057fae9e46
Update easy.cljs 2019-03-15 16:49:57 +02:00
Tommi Reiman
72a0ad2a5b Push ns-records into user ns 2019-03-07 10:54:01 +02:00
Tommi Reiman
36634abd39 :reitit.trie/parameters option takes sequence of keys 2019-03-07 10:45:16 +02:00
Tommi Reiman
1d5d5f663b Support Clojure 1.9.0 2019-03-07 08:49:26 +02:00
Tommi Reiman
e41a50cb80 20% faster wildcard parameters with records 2019-03-07 08:20:41 +02:00
Tommi Reiman
55a5133e85 Rename :reitit.core/trie-compiler -> :reitit.trie/trie-compiler 2019-03-07 08:19:28 +02:00
Tommi Reiman
5ab1f2829e Decode in single sweep, 8% faster 2019-03-07 08:17:17 +02:00
Tommi Reiman
5b19298803 CatchAll matcher catch with empty parameter, fixes #230 2019-03-06 19:49:27 +02:00
Tommi Reiman
850b47134a Don't reorder routes with :linear-router, fixes #229 2019-03-06 19:24:16 +02:00
Miikka Koskinen
1ec4df974d Fix typo 2019-03-04 09:54:19 +02:00
Tommi Reiman
76b90d3598 Document spec-tools change + cause reasoning 2019-03-04 09:41:15 +02:00
Tommi Reiman
dc34720fee Fixed based on Miikka's review 2019-03-03 21:55:39 +02:00
Tommi Reiman
549d2a0f97 Adhere spec-tools 0.9.0 changes 2019-03-03 20:54:47 +02:00
Tommi Reiman
a2843dd097 New reitit-dev module for pretty errors 2019-03-03 20:54:21 +02:00
Tommi Reiman
59560860d8 Finalize Trie & cleanup 2019-03-03 20:20:34 +02:00
Tommi Reiman
a44267ba85 Fix reflection warnings 2019-03-01 22:16:29 +02:00
Tommi Reiman
998bf4a0d4 Empty colon-params are ignored 2019-03-01 22:12:11 +02:00
Miikka Koskinen
680414a209 Point each project.clj to the git directory
This way the released JARs should include the git commit they were built
from.
2019-03-01 13:20:43 +02:00
Tommi Reiman
5713afac34 best-effort to retain route order with swagger 2019-02-28 14:59:48 +02:00
Tommi Reiman
251f547b88 rebase-error-fix 2019-02-28 12:16:51 +02:00
Tommi Reiman
f0a6ceb837 rename internals for clarity 2019-02-28 12:12:28 +02:00
Tommi Reiman
3aae55bd8c Welcome TrieCompiler 2019-02-28 12:12:28 +02:00
Tommi Reiman
778a8b97b9 Review small fixes 2019-02-28 12:12:28 +02:00
Tommi Reiman
d0cfdf304a Polish 2019-02-28 12:12:28 +02:00
Tommi Reiman
e60d176a2d Validate after route conflicts 2019-02-28 12:12:28 +02:00
Tommi Reiman
9422cd28c1 create empty path-parameters at creation time, 266ns->251ns (-6%) 2019-02-28 12:12:28 +02:00
Tommi Reiman
950fef88d2 Use exception/fail! in all creation-time exceptions
... to be companioned with a slick error printer
2019-02-28 12:12:28 +02:00
Tommi Reiman
ad92c437e6 More dead code 2019-02-28 12:11:05 +02:00
Tommi Reiman
d68e1b81fb FIx cljs, welcome reitit.exception! 2019-02-28 12:11:05 +02:00
Tommi Reiman
ae1a8f7919 Fail fast with multiple terminators. 2019-02-28 12:11:05 +02:00
Tommi Reiman
df38a0de05 Test bracket syntax + fix trie conflicting rules 2019-02-28 12:11:05 +02:00
Tommi Reiman
659aac7fd0 Much faster without transients 2019-02-28 12:11:05 +02:00
Tommi Reiman
81b9bdceef Small improvement
* Sort linear routes secondary with static path length
* Unwrap data-matchers from linear-router
* Simplify StaticMatcher impl
2019-02-28 12:11:05 +02:00
Tommi Reiman
c302f795ab Remove dead code 2019-02-28 12:11:05 +02:00
Tommi Reiman
54d5550fae cljs trie 2019-02-28 12:11:05 +02:00
Tommi Reiman
5b9f90d283 ifs -> switch. maybe faster? 2019-02-28 12:11:05 +02:00
Tommi Reiman
2eb4513447 Initial pure-clojure impl 2019-02-28 12:11:05 +02:00
Tommi Reiman
cecd6cf526 Start working on cljs trie 2019-02-28 12:11:05 +02:00
Tommi Reiman
c87bc099b0 char-array is faster, re-run tests 2019-02-28 12:10:01 +02:00
Tommi Reiman
34d8cb0f57 Test with String path 2019-02-28 12:10:01 +02:00
Tommi Reiman
6f902d118a Free from the regex! 2019-02-28 12:10:01 +02:00
Tommi Reiman
8755e19f78 Cleanup 2019-02-28 12:10:01 +02:00
Tommi Reiman
42d6d0c78d Priorize trie based on depth 2019-02-28 12:10:01 +02:00
Tommi Reiman
4c0d2fb285 mega-insert for trie! 2019-02-28 12:10:01 +02:00
Tommi Reiman
8628f0cec6 Remove segment-rouiter code 2019-02-28 12:10:01 +02:00
Tommi Reiman
ce80f83319 :segment-router -> :trie-router 2019-02-28 12:10:01 +02:00
Tommi Reiman
08edbe5b01 . 2019-02-28 12:10:01 +02:00
Tommi Reiman
eaee4ca38d Implement catch-all from trie 2019-02-28 12:10:01 +02:00
Tommi Reiman
fe0ea19e31 Better perf with transient parameters 2019-02-28 12:10:01 +02:00
Tommi Reiman
f2d131a897 wip 2019-02-28 12:10:01 +02:00
Tommi Reiman
b1bef1c1cc Fix #216 2019-02-19 19:40:26 +02:00
Juho Teperi
1e5fe74c29 Fix indent 2019-02-08 14:47:05 +02:00
Juho Teperi
cbff7d10bf Fix HTML5 history in IE11 (and hopefully others)
closest method is not available in IE, but we only need to find ancestor
by tag name which is easy and relatively fast anyway.
2019-02-08 14:44:28 +02:00
Juho Teperi
6123230f98 Simplify contentEditable check for frontend routing 2019-02-08 13:57:03 +02:00
Juho Teperi
f5eb1d17f5
Merge pull request #212 from nextjournal/fix-html5-history-contenteditable
Fix handling links inside contenteditable
2019-02-08 13:49:55 +02:00
Philipp Markovics
88a13ba2f8 Don’t follow links when they are contenteditable 2019-02-08 12:39:07 +01:00
Juho Teperi
648c92bef8 Only display controller :params deprecating warning once 2019-02-08 10:39:40 +02:00
Juho Teperi
9e30836839 Update controller docs 2019-02-08 10:22:29 +02:00
Juho Teperi
36109f142c Replace controller :params with :identity and :parameters 2019-02-08 10:22:29 +02:00
Juho Teperi
c314707afb Add utils to create common controller :params functions 2019-02-08 10:21:19 +02:00
Juho Teperi
9d6b0071fc Call :stop for controllers in reverse order 2019-02-08 10:21:19 +02:00
Tommi Reiman
16b6b8ad9f
Merge pull request #210 from nilern/toposort
Middleware/interceptor dependency resolution algorithm
2019-02-03 15:05:44 +02:00
Tommi Reiman
62f908d988 Second fix to #209 2019-01-26 16:34:16 +02:00
Tommi Reiman
d2d5019d0f 0.2.13 2019-01-26 16:20:19 +02:00
Tommi Reiman
b2cd7f37e2 Fix #209 2019-01-26 16:17:13 +02:00
Pauli Jaakkola
b02ccdd53b #33 Add dependency reolution algorithm. 2019-01-25 16:45:46 +02:00
Vincent Cantin
fdf249a959 Apply a change suggested by Miikka Koskinen. 2019-01-22 08:25:58 +08:00
Vincent Cantin
b77115850f Rewrote reitit.core/path-conflicting-routes using transducers. 2019-01-21 23:28:14 +08:00
Tommi Reiman
7ec5c79cad Release 0.2.12 2019-01-18 08:56:23 +02:00
Tommi Reiman
f1cbeaa7d2 Fix arity error on benchmarks 2019-01-18 08:52:03 +02:00
Tommi Reiman
1e7b118ce4 Fix reflection & boxed-math warning, fixes #207 2019-01-18 08:51:43 +02:00
Tommi Reiman
d203832667 0.2.11 2019-01-17 19:43:45 +02:00
Tommi Reiman
ff20260f5f Fix scanner for cljs 2019-01-17 08:18:35 +02:00
Tommi Reiman
95ebdfa6a4 linear-router is backed by a segment-router 2019-01-17 08:13:25 +02:00
Tommi Reiman
b8d8286265 Fixes for the SegmentTrie 2019-01-15 22:13:12 +02:00
Tommi Reiman
5bd933a10c docs 2019-01-15 22:04:50 +02:00
Tommi Reiman
393049a772 Oh My Java: safe guard against index overflows. 2019-01-14 21:08:20 +02:00
Tommi Reiman
ffc6ba8053 Simplied Java, based on review 2019-01-14 16:39:00 +02:00
Tommi Reiman
75065b56e3 Public docs for reitit.segment 2019-01-14 16:38:45 +02:00
Tommi Reiman
406386e0f6 encode -> decode 2019-01-14 10:45:27 +02:00
Tommi Reiman
36f1df3867 Dead code 2019-01-14 10:45:27 +02:00
Tommi Reiman
3168747540 Fix cljs 2019-01-14 10:45:27 +02:00
Tommi Reiman
16499cceb1 Single wild optimization 2019-01-14 10:45:27 +02:00
Tommi Reiman
213f16defa FIx swagger uris 2019-01-14 10:45:27 +02:00
Tommi Reiman
5079daa8f3 WIP 2019-01-14 10:45:27 +02:00
Tommi Reiman
93bcc5dad8 Trie -> SegmentTrie 2019-01-14 10:45:27 +02:00
Tommi Reiman
54aded4442 Dead code 2019-01-14 10:45:27 +02:00
Tommi Reiman
75c4f78f5d :inject-router? and :inject-match? for ring & http 2019-01-14 10:45:27 +02:00
Tommi Reiman
80dea6cfef Snappier Trie 2019-01-14 10:45:27 +02:00
Tommi Reiman
3f86e24b89 faster split 2019-01-14 10:45:27 +02:00
Tommi Reiman
e1925c8462 . 2019-01-14 10:45:27 +02:00
Tommi Reiman
ae2337621f calf 2019-01-14 10:45:27 +02:00
Tommi Reiman
2a1fea2ccb Initial Java Trie 2019-01-14 10:45:27 +02:00
Tommi Reiman
35ff62a1da Fix expand, fixes #201 2019-01-14 10:07:16 +02:00
Tommi Reiman
408b30eaba Release 0.2.10 2018-12-30 17:48:27 +02:00
Tommi Reiman
2ec29b8f9d Polish docs 2018-12-30 16:53:15 +02:00
Tommi Reiman
8081fe1a49 0.2.10-alpha1 2018-12-27 16:45:33 +02:00
Tommi Reiman
998656a9ac Enchance docs 2018-12-27 16:01:31 +02:00
Tommi Reiman
f524459768
Merge pull request #197 from metosin/reitit-pedestal
Reitit pedestal
2018-12-26 15:48:43 +02:00
Tommi Reiman
8e0aaf7ae8 Reitit-pedestal 2018-12-26 15:43:26 +02:00
Tommi Reiman
7f4aa1bdcc Dev-middleware works with async + polished code 2018-12-22 13:48:47 +02:00
Tommi Reiman
48961c9ed4 quarantine-router 2018-12-22 10:37:18 +02:00
Tommi Reiman
260b167853 Decode path-params on match-by-name, fixes #192 2018-12-21 20:17:46 +02:00
Tommi Reiman
492d5e2f2b Segment-router doesn't allow empty path-parameters 2018-12-10 20:30:58 +02:00
Tommi Reiman
0e73b883ed 0.2.9 2018-11-21 16:03:09 +02:00
Heikki Hämäläinen
24c146a702 Add support for vector based specs in Swagger generation
This allows data specs to be in vectors as well as maps. Before the change data spec [{:foo string?}] would throw exception when generating Swagger.
2018-11-21 14:23:33 +02:00
Tommi Reiman
883a65acca Document the router options 2018-11-19 21:04:38 +02:00
Tommi Reiman
dd6b07aa0f Release 0.2.8 2018-11-18 22:31:13 +02:00
Tommi Reiman
ffc36fce36 Support composable transformations of mw/interceptor chain
* fixes #167
2018-11-18 22:19:30 +02:00
Tommi Reiman
37cb99a13e Expose spec problems to error handlers 2018-11-17 20:50:04 +02:00
Miloslav Nenadal
13141027ee Support swagger with async ring 2018-11-17 11:11:55 +01:00
Tommi Reiman
02308b582d Interceptors diff context, not request 2018-11-11 22:31:02 +02:00
Tommi Reiman
4bfafaffec Diff printing middleware & interceptors 2018-11-11 22:23:51 +02:00
Tommi Reiman
a205d14afc Update to 0.2.7 with new spec-tools 2018-11-11 22:03:16 +02:00
Tommi Reiman
69592c0f68 Bump up top 0.2.6 2018-11-09 15:41:13 +02:00
Miikka Koskinen
1a13a24224 In ClojureScript, satisfies? is a macro
Thus `partial` can't be used with it.
2018-11-08 10:00:57 +02:00
Miikka Koskinen
65886c190f Do not use cljs.string/replace-all, it's private
The 1.10.439 release of compiler complains about it. Fixes #169.
2018-11-08 10:00:23 +02:00
Tommi Reiman
1623d001d1 Link to original source files 2018-11-04 20:55:27 +02:00
Tommi Reiman
48318b8793 Fix to if-some as the docs say 2018-11-04 20:54:52 +02:00
Tommi Reiman
9ce898a0b4 3x faster default path-parameter decoding 2018-11-04 09:57:32 +02:00
Hannu Hartikainen
6a7fb095cb Support stripping multiple slashes
One inspiration for stripping/adding slashes automatically in reitit was
https://github.com/julienschmidt/httprouter which can handle any number
of slashes. Make the implementation a bit better by stripping as many
slashes as there are.

This still doesn't support redirecting from a multiple-slash URI to a
single-slash URI. That could be handled as a special case, but in the
end I think the correct solution would be to convert both the router and
request URIs to a canonical form before matching. Then the question of
slashes is just a question of formatting.
2018-10-31 09:48:13 +02:00
Tommi Reiman
fdbab455bd 0.2.5 2018-10-30 20:25:14 +02:00
Tommi Reiman
2a08ba2c98 Polish code 2018-10-30 19:51:19 +02:00
Unknown
b6e8a9d579 Add 0-ary version 2018-10-30 23:48:12 +09:00
Unknown
c8b2aa7bc4 Fix incorrect request key
It's :request-method not :method
2018-10-30 23:22:38 +09:00
Unknown
6c599f8862 Merge branch 'master' into trailing-slash 2018-10-30 23:10:23 +09:00
Unknown
820e13cffb Use status 301 and 308 2018-10-30 10:16:30 +09:00
Unknown
875934360e Add trailing slash handler 2018-10-29 10:10:22 +09:00
Unknown
46254975d9 Undo ensure-slash 2018-10-29 09:11:52 +09:00
Tommi Reiman
0095aece21 Router is injected into request in the default branch
* releated to #159
2018-10-28 18:20:35 +02:00
Unknown
33582b4c1c Strip slash instead
Also fix the only failing test
2018-10-28 18:22:41 +09:00
Unknown
2ba01028a0 Remove unnecessary let 2018-10-28 16:28:12 +09:00
Unknown
a8d6b32389 Use ensure-path for matching 2018-10-28 16:21:15 +09:00
Unknown
8d4c591f96 Use ensure-slash at compilation 2018-10-28 16:21:03 +09:00
Unknown
e2e96e8f1e Add ensure-slash function 2018-10-28 16:20:45 +09:00
Tommi Reiman
69aeb9adcc Release 0.2.4 2018-10-21 20:37:35 +03:00
Tommi Reiman
17c27eb732 Remove generated names from Data-Specs 2018-10-21 20:36:53 +03:00
Tommi Reiman
cb14cf017a Update to spec-tools 0.8.0-SNAPSHOT 2018-10-21 20:06:28 +03:00
Tommi Reiman
5046aebec8 Allow any kind of model 2018-10-16 20:25:43 +03:00
Unknown
6322bb99f1 Resolve reflection warnings 2018-10-16 22:51:43 +09:00
Tommi Reiman
a77a583c09
Merge pull request #155 from valerauko/resource-404
Custom handler for resource 404
2018-10-16 14:58:16 +03:00
Vale
21c888b8bc Update docstring 2018-10-10 13:57:59 +09:00
Vale
e84b25d4ac Custom handler for resource 404 2018-10-10 13:57:51 +09:00
Tommi Reiman
52eeea3c99 Allow any keys in paramters, related to #145 2018-09-26 16:28:26 +03:00
Tommi Reiman
f5ee149929 Release 0.2.3 2018-09-24 20:51:43 +03:00
Tommi Reiman
b015eec2a5 for http-router too 2018-09-24 20:21:53 +03:00
Tommi Reiman
a620ec5999 Set Allow-header on default-options-handler 2018-09-24 20:19:42 +03:00
Tommi Reiman
f19aae6e77 fix #150 2018-09-23 16:42:45 +03:00
Tommi Reiman
da1cbf7121 Generate options-endpoints for ring by default 2018-09-23 10:52:17 +03:00
Tommi Reiman
158695d47b Support for top-level middleware in reitit-ring
See #143
2018-09-22 21:42:01 +03:00
Tommi Reiman
d81f20ae79 0.2.2 2018-09-09 22:29:00 +03:00
Tommi Reiman
676643f2e5 reitit-interceptors into reitit bundle 2018-09-07 23:09:08 +03:00
Tommi Reiman
7ecc2178c5 remove :compile key from compiled interceptors 2018-09-07 23:08:22 +03:00
Tommi Reiman
5d9d2a4e0a fix muuntaja interceptor 2018-09-07 23:08:05 +03:00
Tommi Reiman
57bcf2ab44 parameters-middleware & interceptor 2018-09-07 23:07:55 +03:00
Tommi Reiman
08349e61df multipart interceptor 2018-09-07 23:07:38 +03:00
Tommi Reiman
ca02680e2d exceptions 2018-09-07 20:04:08 +03:00
Tommi Reiman
de3fc480b4 muuntaja 2018-09-07 19:50:44 +03:00
Tommi Reiman
3d611d6cdb muuntaja-interceptors 2018-09-07 19:50:10 +03:00
Juho Teperi
98707902ea Add :scm tags for clojars commit link 2018-09-04 19:21:07 +03:00
Tommi Reiman
fa90d12eb8 0.2.1 with updated deps 2018-09-04 18:15:23 +03:00
Tommi Reiman
ac86d550b5 0.2.0 2018-09-03 19:44:59 +03:00
Tommi Reiman
2c51f051de 0.2.0-alpha1 2018-09-02 17:52:19 +03:00
Tommi Reiman
8cd06c2bfb drop create- from interceptors 2018-09-02 17:30:43 +03:00
Tommi Reiman
08b2fc7bfd fix docs for coerce! fixes #131 2018-08-31 15:26:17 +03:00
Tommi Reiman
e4eae4f3b2 cleanup 2018-08-31 15:17:51 +03:00
Tommi Reiman
07acbb275f Pedestal-sample 2018-08-31 10:50:00 +03:00
Tommi Reiman
9fc8710cad inline lookup-structs 2018-08-31 10:49:48 +03:00
Juho Teperi
d7c025d912 Fix FragmentHistory -stop method 2018-08-27 14:23:11 +03:00
Juho Teperi
b99e25ef4f Clean frontend routing docstrings 2018-08-27 14:23:11 +03:00
Tommi Reiman
a68cafe5ce intercerptors with cps-ring 2018-08-25 14:21:11 +03:00
Tommi Reiman
3e659a2b8b more tests 2018-08-25 13:30:54 +03:00
Tommi Reiman
fd8985fd75 pass-through function interceptors 2018-08-25 13:30:54 +03:00
Tommi Reiman
c1a747857f reitit-sieppari & small fixes 2018-08-25 13:30:54 +03:00
Tommi Reiman
044c0d6163 http-router 2018-08-25 13:28:44 +03:00
Tommi Reiman
20fa00beaa public 2018-08-25 13:28:44 +03:00
Tommi Reiman
bd844bd816 http.coercion & http.spec
* TODO: need tests
2018-08-25 13:28:44 +03:00
Tommi Reiman
60f10cdc01 remove interceptors in favor of Sieppari 2018-08-25 13:28:44 +03:00
Tommi Reiman
5e7be28eb7 fn -> handler in interceptors 2018-08-25 13:28:44 +03:00
Tommi Reiman
59cbb25688 initial http-handler 2018-08-25 13:28:44 +03:00
Tommi Reiman
8603224546 docs 2018-08-25 13:28:44 +03:00
Juho Teperi
2900e96337
Merge pull request #125 from metosin/frontend-fragment
Frontend fixes
2018-08-23 10:12:46 +03:00
Juho Teperi
adfba578ca
Merge pull request #126 from metosin/frontendrouter
reitit.frontend/router
2018-08-23 10:07:09 +03:00
Juho Teperi
82ad1fa6cc Clean duplicate require 2018-08-23 09:58:57 +03:00
Juho Teperi
e42c309144 Read query string in HTML5 router 2018-08-23 09:58:57 +03:00
Juho Teperi
0bd1b94274 Store uncoerced query-params in frontend match
This matches path-params and fragment.
2018-08-23 09:58:55 +03:00
Tommi Reiman
7b3aa5e631 better docs 2018-08-22 21:51:02 +03:00
Tommi Reiman
7cc8f84297 better docs 2018-08-22 19:39:04 +03:00
Tommi Reiman
5c835c5ad2 reitit.frontend/router 2018-08-22 18:56:31 +03:00
Tommi Reiman
c1d8ec99d8 muuntaja 2018-08-10 08:09:40 +03:00