---
title: SDKs 0.27.0: retries, whole-list iterators, one error type and the latest API types
description: If a script of yours used our SDKs, a rate limit or a brief 503 ended the run, walking a whole list meant passing next_cursor back by hand, a dropped…
canonical: https://watchfor.io/changelog/2026-11-25-sdks-0-27
---

[All updates](/changelog#2026-11-25-sdks-0-27) ⚡ Improved API Nov 25, 2026 · v 14.9.6

# SDKs 0.27.0: retries, whole-list iterators, one error type and the latest API types

If a script of yours used our SDKs, a rate limit or a brief 503 ended the run, walking a whole list meant passing next_cursor back by hand, a dropped connection slipped past your catch for WatchForError, and the types lagged the API. watchfor 0.27.0 on npm, PyPI and RubyGems brings opt-in retries, iterators that fetch the next page as your loop needs it, the SDK's own error for a failed connection, ids kept inside their path, and the API's latest fields in the types.

## What 0.27.0 brings

- Retries, off by default. maxRetries (TypeScript), max_retries (Python and Ruby). A 429 is retried for every method; a 5xx , a timeout or a dropped connection only when the call is safe to repeat (GET, PATCH, PUT, DELETE, or a POST with an idempotency key). Waits follow Retry-After , else backoff with jitter; one wait is at most 30 seconds by default.

- Whole-list iterators for every paginated list: iterate…() in TypeScript, iter_…() in Python, each_… in Ruby. The next page is fetched only when your loop reaches it.

- One error type. A failed connection (DNS, refused, reset, TLS) raises the SDK's own error with status 0 and code network_error ( timeout for a timeout), so one catch covers every failure.

- Ids stay inside their path. Every id is percent-encoded as one path segment, and an empty, . or .. id is refused before sending (status 0 , code invalid_request ).

- A body JSON can't carry (a BigInt , a circular object) is refused before sending in the npm SDK as invalid_request , never retried as a network error.

- Types from today's API: location_id and location_name next to every prober name (the prober fields are deprecated), config_warnings on monitor writes, warnings on alert-rule writes, the confirming and resuming status reasons, typed request bodies ( MonitorCreate , AlertRuleCreate , …), plan limits and usage, heartbeat events.

- CLI: watchfor checks <id> names the location, not the prober.

## Upgrading

npm install watchfor@0.27.0 , pip install -U watchfor or gem update watchfor . Retries stay off until you set maxRetries / max_retries . Two things to check: code that caught the runtime's own network or timeout error (fetch's TypeError , Python's URLError , Ruby's SocketError and friends) now gets the SDK's error with status 0 ; and in TypeScript, statusPages.list() no longer takes a cursor , which the API refuses because every page comes back in one response.

Details: [Retries and paging in the SDKs](/docs/api#retries-and-paging-in-the-sdks).

Share this update

---

Canonical page: https://watchfor.io/changelog/2026-11-25-sdks-0-27 · Site guide: https://watchfor.io/llms.txt
