Commit Graph

317 Commits

Author SHA1 Message Date
Daniel Compton fad4e7315b Add get-loggers function to get existing re-frame loggers 2016-10-17 10:30:22 +13:00
Daniel Compton c14935dea6
Spelling fixes 2016-10-13 17:44:29 +13:00
Daniel Compton 5486d2058f Call after interceptor with db coeffect, if no db effect is produced
after interceptors expect to always get a db value. If no db effect is
produced, then they may fail (for example schema validation on db if
no db is provided).

Fixes #239
2016-10-13 10:44:40 +13:00
Mike Thompson 55b1294c7d Weak attempt at improving a doc string. 2016-08-28 08:41:09 +10:00
Mike Thompson 797fc76006 Take out mention of middleware. 2016-08-27 23:54:07 +10:00
Mike Thompson 6c5a9bb880 Comment headings corrected 2016-08-27 23:45:47 +10:00
Mike Thompson 32336a20b5 Correct spelling. 2016-08-27 23:38:25 +10:00
Mike Thompson b0c0aa54ab Move low level handler registration for subs. 2016-08-27 23:18:40 +10:00
Mike Thompson 9ad9598d8f Remove example from code. It is already present in the docs. 2016-08-27 22:47:40 +10:00
Mike Thompson adec3b5459 This mod should have been a part of the previous checkin. 2016-08-27 22:47:15 +10:00
Mike Thompson 56de2a563e Stop `:name` being accepted for Interceptors. Should be `:id`.
`:name` was only ever valid for a short time during the alpha phases of 0.8.0
2016-08-27 22:22:35 +10:00
Mike Thompson bca5fd76db Remove old comment 2016-08-27 18:37:01 +10:00
Mike Thompson a5d3c6020f Merge branch 'develop' into re-frame-tweaks
# Conflicts:
#	src/re_frame/std_interceptors.cljc
2016-08-27 12:48:00 +10:00
Shaun Mahood 163c9388bf Fixing typos, spelling, and spacing on requires
General basic clean up.
I also changed begatted to begotten, which I think is correct but less
fun...
2016-08-26 12:48:24 -06:00
Daniel Compton 6a86431a44 Misc re-frame tweaks 2016-08-24 01:24:30 +12:00
Daniel Compton 6b21bfe714 Remove trailing spaces from console logging
console.log and family provide spaces between arguments, so we don't
need to add them in our console errors.
2016-08-22 16:06:15 +12:00
Mike Thompson 8cf42f57f5 Version 0.8.0 2016-08-19 18:20:21 +10:00
Mike Thompson cd55814cdf Undo previous stupidity 2016-08-19 15:41:56 +10:00
Mike Thompson 0514e06d0c Put in the right magic around `:advanced` Dead Code Elimination 2016-08-19 15:07:06 +10:00
Mike Thompson dd8bc250fb Fix up interceptors and get rid of pesky warnings. 2016-08-19 00:20:03 +10:00
Mike Thompson 3dc5c728c6 Ensure we get DCE (Dead code Elimination) 2016-08-18 23:27:52 +10:00
Mike Thompson bfb7da0e71 Remove private from registrar (we now need to access it in core to create restore function) 2016-08-18 17:13:53 +10:00
Mike Thompson 6f45cfc7c2 Subscription cache needed elsewhere, so no longer private 2016-08-18 11:58:42 +10:00
Mike Thompson 4bf54da69b Add make-restore-fn. I still need to figure out subscriptions. 2016-08-18 11:58:41 +10:00
Mike Thompson ca9513d0e7 Minor subs cleanup 2016-08-18 11:58:40 +10:00
Mike Thompson 3a8abed723 Clearer derefing of signals 2016-08-18 11:58:39 +10:00
Mike Thompson 49581cd96e Swap to using `:id` instead of `:name` (I thought I done this earlier) 2016-08-18 11:58:37 +10:00
Mike Thompson d10e87a279 Use help function more consistently 2016-08-18 11:58:36 +10:00
Mike Thompson 40c8e12426 LocalStore opens up a can of worms around dependencies (transit, reader, etc). Remove for the moment. 2016-08-18 11:58:35 +10:00
Mike Thompson 00891fd083 Improve comment 2016-08-18 11:58:35 +10:00
Mike Thompson 06d8fccf89 Interceptors now have an `id` and not a `name`. Code now matches the docs. 2016-08-18 11:58:34 +10:00
Mike Thompson ff2b712379 Add a further check to subs 2016-08-18 11:58:33 +10:00
Mike Thompson 22c9f7cfe4 Improve re-sub error messages 2016-08-18 11:58:33 +10:00
hipitihop a2001f2c27 comment typo 2016-08-18 11:20:03 +10:00
Daniel Compton 46b85b1862 Call next-tick with a bound-fn to carry bindings across 2016-08-17 10:29:25 +12:00
Mike Thompson baa61a3749 Complete rename from `do-effects` to `do-fx` 2016-08-16 13:00:52 +10:00
Mike Thompson 4f2f772afd The function `coeffect` is renamed to `inject-cofx`.
When writing the docs I found that sentences had too many mentions of `coeffects` with different meanings, which was confusing.  With this change, I remove one possible meaning of `coeffect` and, in the process I end up with a clearer name anyway.
2016-08-16 12:30:01 +10:00
Mike Thompson 98d01a7c84 change name from `do-effects` to `do-fx`. More consistent. 2016-08-16 12:24:23 +10:00
Mike Thompson c50ba86cd4 Remove deprecation warning on `reg-event`. It was only there for intermediate alpha releases. 2016-08-16 12:23:22 +10:00
Mike Thompson db9aa06de9 Comment wording 2016-08-13 13:17:47 +10:00
Mike Thompson 6d3acf2c08 Add get-hander arity which returns an entire kind 2016-08-12 13:19:48 +10:00
Mike Thompson ec08a824a1 Fix bug which meant unknown effects were silently ignored. 2016-08-12 13:18:59 +10:00
Mike Thompson add6b79168 Improve comment 2016-08-10 18:25:45 +10:00
Mike Thompson b7deb29f84 Move comment and readjust format. 2016-08-10 18:25:44 +10:00
Sam Roberton 60fa4bf5e1 Keep JVM thread bindings on next-tick
... to enable clojure.test reporting to identify the current test.
2016-08-10 09:40:06 +10:00
Mike Thompson 486c7e61ee Slight rework of `debug` interceptor 2016-08-09 19:26:03 +10:00
Mike Thompson c891b784e8 Correct bug in example code 2016-08-09 19:25:26 +10:00
Mike Thompson 69c396c793 Start tranistion to always call first `-fx` parameter `coeffects`, not `world`. 2016-08-09 19:24:32 +10:00
Mike Thompson e45fd8b858 If debug interceptor was "to the left" of path, debug would not show correct diffs. Make path reinstate effect to fix this. 2016-08-09 19:22:15 +10:00
Alan Leal 28afe57b96 fixes typo in log level warn (#190) 2016-08-09 12:18:22 +12:00