fetchium@0.4.2
·
26 commits
to main
since this release
Patch Changes
- 117531d: Add
getTopic()toTopicQueryfor parity withgetPath()onRESTQuery. The statictopictemplate only supports fixed-shape topics, so consumers with variable-segment-count or conditionally-shaped topics had to hand-author one query class per shape. Subclasses can now overridegetTopic()to compute the topic dynamically at execution time over the resolved params (e.g.'layout:' + this.params.segments.map(encodeURIComponent).join(':')); when defined it takes precedence over thetopicfield. Thetopicfield is now optional, matchingpath?onRESTQuery. Existing queries that definetopicas a static template continue to work unchanged.