v2.1.0-beta.2
Pre-release
Pre-release
·
2 commits
to main
since this release
Minor Changes
- 38cf55d: Add optional
metadata(Record<string, string>) toFileData, carrying arbitrary key/value pairs attached in Grasshopper through to downstream consumers for tagging and indexing. Optional and backwards-compatible — existing payloads and theisFileDataguard are unaffected.
Patch Changes
-
38cf55d: Make
GrasshopperClient.create()resilient to a cold or briefly-busy-but-up Compute server.The pre-flight
/healthcheckprobe was a single-sample boolean gate with no retry and no timeout, so one missed probe (warm-up, a transient network blip, momentary non-200) made construction throwNETWORK_ERROReven though the server was online.create()now retries the healthcheck with exponential backoff (default 3 probes, 250ms→1s) before failing, configurable via the existingconfig.retrypolicy, and disposes the client on final failure.isServerOnline(timeoutMs = 5000)now bounds the probe withAbortSignal.timeoutso a hung connection can't stall the caller; pass0to disable. The probe increate()always uses its own timeout, independent ofconfig.timeoutMs(which may be0for long solves).