@xtandard/flags/match/sift
The sift query matcher for the matches / notMatches condition operators
(MongoDB-style query documents): siftMatcher, and registerSiftMatcher to
register it by name. Optional peer dependency: sift.
Subpath entry for @xtandard/flags/match/sift. Re-exports the sift-backed
query matcher so the bundler maps it to its own dist file (keeping sift out
of the zero-dep core).
import { … } from "@xtandard/flags/match/sift";Functions
Section titled “Functions”| Name | Summary |
|---|---|
registerSiftMatcher |
Convenience registration: register siftMatcher on the process-wide registry under name (default "sift"). Returns the dispose function from ./matchers.registerMatcher. |
Variables
Section titled “Variables”| Name | Summary |
|---|---|
siftMatcher |
Match a sift/Mongo-style query document against the subject. Build/evaluation errors (e.g. an unsupported operator) propagate to the evaluator, which wraps the call and fails the condition closed. |