Repository navigation
v0.7.3
Tests (no SDK behaviour change)
Phase 3 of the Track F + test-coverage audit hardening pass.
572 tests pass (was 524 — +48 across the seven audit items below).
The published artefact is functionally identical to 0.7.2; only the
test suite and CHANGELOG differ.
- Property-based assertions with
fast-checkfor three
high-leverage modules:webhooks/signature.ts— HMAC verifier invariants across
random body / secret / header inputs.webhooks/dedupe.ts— dedupe-key identity + Unicode handling.client/retry.ts—fullJitterDelaymath bounded by
[floorMs, min(maxDelayMs, expCap)]for any RNG output.
- Concurrent dedupe race test — 100 parallel
handlePayload
calls with the same wamid invoke the handler exactly once;
validates the single-flight semantics under Meta's aggressive
retry pattern. - Storage failure propagation — explicit assertions that
WebhookDeduper,WindowTracker, andWebhookReceiver
surface storage errors rather than swallowing them silently. sendReplytemplate-path coverage — the window-exempt path
for template + reaction payloads throughsendReply, plus the
window-gated path for free-form payloads, all asserted against
captured wire bodies.- Local pack-contents smoke —
test/contract/pack-contents.test.ts
mirrors the CI "Verify pack contents (dry-run)" assertion so
pnpm testcatches afilesallowlist regression before CI.