Repository navigation
Commit 086dd9e
committed
feat: on_error local-fallback posture + AbortSignal cancellation (v1.1.0)
Syncs sdks/typescript from ValidKit/validkit (private monorepo) as of PR #3549:
- on_error config posture for verifyEmail: 'throw' (default), 'fail-open', or
'local-fallback'. On ConnectionError/TimeoutError/retryable 5xx after retries
are exhausted, 'local-fallback' degrades to a local check instead of blocking
or blindly accepting.
- Optional node-email-verifier peer dependency enables Tier 1 local MX and
disposable checks (Node 20+). Never installed by default; zero added weight
unless a consumer opts in.
- Every full-format verifyEmail verdict now carries degraded and source, so
consumers never have to branch on field absence. New isDegraded() type guard
and DegradedVerificationResult type.
- max_retries: 0 now honored via nullish coalescing (previously fell back to
the default).
- AbortSignal support: verifyEmail(email, { signal }) cancels the in-flight
request and any pending retry delay.
See CHANGELOG.md for the full 1.1.0 entry.1 parent 82377c2 commit 086dd9e
12 files changed
Lines changed: 2110 additions & 139 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
8 | 17 | | |
9 | 18 | | |
10 | 19 | | |
| |||
44 | 53 | | |
45 | 54 | | |
46 | 55 | | |
| 56 | + | |
47 | 57 | | |
48 | 58 | | |
0 commit comments