Repository navigation
@maple-kit/mock@0.23.0
·
8 commits
to main
since this release
Minor Changes
- 074a57b: The flags list shows only the flags the page read.
@maple-kit/mock/launchdarkly
exportslaunchDarklyUsage(), a LaunchDarklyflag-usedinspector (and
launchDarklyUsageHook()forhooks), to pass as
options: { inspectors: [launchDarklyUsage()] }. Each read is recorded as used
on the current route; the full poll is still recorded, as known. Without an
inspector the box lists every known flag, as before.FlagRegistry.list()is
nowknown(), and gainsrecordUsed(),used(route)andhasUsed(). - c1b07d1:
/mock/planno longer answers 400 for a page with many or odd flags. It drops
a flag it cannot plan on its own, keeps theMockPlanOptions.flags.limit
(default 100) most relevant to the sentence, and answers the plan with a new
warningsfield, which the box shows as a muted line under the input. Only a
flagsthat is not a list is still a 400.readPlanFlagsnow returns
{ flags, warnings }, andPlanReadinggainswarnings. - a7aff9a: The mock box can reach what capture missed. The calls' and the flags' title
rows each get a quiet "Search all", which turns the title into a focused field
with "Cancel" and shows what it found over the page's list. It loads nothing
until then, shows 20 results at a time, and a pick joins the draft, marked
"added", and stays in the list after Cancel. Escape closes only the search. The flag search reads the known
set in memory; the API search reads the tab's own calls first (the new
Inventory.all()), then the route's newGET {base}/mock/calls?q=&cursor=,
which lists the callsMockRouteOptions.schemasdescribes. It is gated as
/mock/schemais, and rate-limited per reviewer on the plan's rate.ShapeIndex
gainscalls,@maple-kit/core/mockexportsCallEntry, andMockHandlegains
calls.MockClientgainssetSearch,searchCallsandsearchFlags. The
box's size budget rises from 4.1 to 4.6 KB; the search itself is a lazy chunk
with its own 2 KB budget. - a68fdf9: Flags the server read show in the mock box.
@maple-kit/core/flagsexports
recordFlagUse(key)andwithFlagUse(handler), which setx-maple-flagson the
response (comma-separated, URL-encoded keys, 4 KB cap) while the Maple route has
mock.previewon, and collect nothing otherwise.@maple-kit/core/launchdarkly
haslaunchDarklyFlagUse(), a Node server SDKafterEvaluationhook.
@maple-kit/core/mockexports the header's name and codec. The interceptor
records the header's keys as used with source "server", and the box tags them
"server" because a mocked value applies after a reload.