v0.56.0 — broker validation + caching
Six more Moleculer pages checked against the service broker.
- Validating — an action
paramsschema is validated (and coerced) before the handler; a bad call rejects withValidationException. Any Zod-style schema; the broker bundles no validator. - Caching — mark an action
cache: true | { ttl, keys }and give the broker acacher(any KeelCache— memory or Redis viaredisStore()); results memoize by action + params (keyslimits the cache key). No cacher → no-op. - Metrics / tracing — the middleware
localActionseam is the hook; every ctx already carries the trace fields (requestID/parentID/level/caller). Errors — typed broker errors (ServiceNotFoundError/RequestTimeoutError/ValidationException) pluscreateError. Runner —createService()+broker.start()from boot. All documented rather than added.
All additive and backward compatible. 364 tests; type-checked doc examples. See docs/broker.md.