Releases: bangmodcloud/reagent-toolkit
Releases · bangmodcloud/reagent-toolkit
Release list
v0.2.0
Fixed
- router: bidi vector-of-pairs route tables now compile correctly — 0.1.0 silently
corrupted them (entries dropped, component fns leaked into the table). Malformed tables
now throw atregister-routestime with the offending form in the message. - form:
get-form-display-errorreturns the error value (0.1.0 returned a reaction the
caller had to deref — the one bound getter that behaved differently). - form: an
on-submitthat throws, or a wrong submission result, no longer leaves the
form stuck with:is-submittingtrue — both become a failed submission. - form: the
create-formerror path referencedcljs.pprintwithout requiring it. - http-api: path parameters are percent-encoded, and a param name that is a prefix of
another (:id/:idx) can no longer corrupt the substitution. - http-api: a failed
executeno longer wipes the endpoint's last good data — the
reaction / re-frame slot keeps:data, gains:error, and flips:success?.
Changed
- form:
register-fieldno longer defaults:placeholderto"Enter"— no
placeholder unless you pass one. - form:
:initial-valuesaccepts anything derefable (plain atoms included, not just
reagent types); submission results may be any core.async read port, not only a channel. - http-api: the extra SSE event names delivered to
:on-messageare configurable via
:eventsinsubscribeopts (default["changed"], the previous hardcoded name). - Registries (
forms,api-specs, route tables) survive hot reload (defonce).
Added
- router:
bangmod.router.table— the pure route-compilation half, unit-tested,
including the shapes 0.1.0 miscompiled. - http-api:
:with-credentialsendpoint option documented;defapirejects the
reserved endpoint name:_options;get-data-reactionthrows on an undeclared endpoint
instead of returning nil. :lib-checkshadow-cljs build compiling every public namespace in CI — the:testbuild
alone never compiles the reagent-dependent namespaces.
All three artifacts are on Clojars as 0.2.0:
{:deps {io.github.bangmodcloud/reagent-form {:mvn/version "0.2.0"}
io.github.bangmodcloud/reagent-http-api {:mvn/version "0.2.0"}
io.github.bangmodcloud/reagent-router {:mvn/version "0.2.0"}}}