Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Client SDK Breaking Changes, Deprecation, and Pagination Migration

How Cloudflare SDK and Terraform provider releases change types, pagination, and deprecations—and what to check before you upgrade.

This page summarises Cloudflare’s published changelog entries for its TypeScript, Python, and Go API client SDKs and for the Terraform provider. If you automate DNS, Workers, Zero Trust, or billing against the Cloudflare API, a minor version bump can still change method signatures, pagination wrappers, and delete return types. The material below is what those release notes repeat across language-specific posts and grouped changelog pages—not a substitute for reading the entry that matches the exact package version you install.

Breaking changes: why a “SDK release” can break compiled code

Section titled “Breaking changes: why a “SDK release” can break compiled code”

A breaking change in these notes usually means your code no longer type-checks or no longer matches runtime behavior, even when the underlying HTTP API stayed the same. Cloudflare states that large jumps (for example Go v6.10.0) are tied to OpenAPI definition updates and codegen changes that regenerate the libraries:

In this release, you’ll see a number of breaking changes. This is primarily due to changes in OpenAPI definitions, which our libraries are based off of, and codegen updates that we rely on to read those OpenAPI definitions and produce our SDK libraries.

Please ensure you read through the list of changes below before moving to this version - this will help you understand any down or downstream issues it may cause to your environments.

— Cloudflare, Go SDK v6.10.0 Released

The same framing appears on grouped changelog pages such as changelog/25/ and the Go SDK product changelog. The common conclusion: treat every major or minor SDK upgrade as a migration project—pin versions in package.json, go.mod, or requirements.txt, read the language-specific post and the shared SDK changelog, then fix compile errors before deploying workers or Terraform that call the client.

Return types and delete methods: what “179 changes” means

Section titled “Return types and delete methods: what “179 changes” means”

The TypeScript SDK v6.0.0 release documents a large batch of signature changes mirrored on changelog/24/:

Category What changed Typical impact
Delete operations 133 methods now return null instead of a typed response object Code that read fields from delete responses must stop expecting a body
Pagination 17 methods changed pagination type (e.g. KeysCursorPaginationAfter → KeysCursorLimitPagination) List/auto-page loops need new cursor/limit fields
Renamed types 29 methods use different response type names Imports and type assertions break
Client paths e.g. client.originTLSClientAuth.hostnames.certificates → client.originTLSClientAuth.zoneCertificates; client.radar.netflows → client.radar.netFlows Search-and-replace on dotted paths
Deep imports 19 resources split into directories; public client paths unchanged Only custom deep imports break

Seventeen HTTP endpoints were removed from the generated client (abuse-reports, parts of cloudforce-one, DLP predefined profiles, some email-security investigate/settings routes, intel ip-list). If your integration called a removed route, you must switch to the replacement API or another client method documented in the same release notes—not assume the HTTP API vanished.

SDK infrastructure: runtime behavior that changes without obvious compile errors

Section titled “SDK infrastructure: runtime behavior that changes without obvious compile errors”

Infrastructure fixes apply across generated clients. From Cloudflare TypeScript SDK v6.0.0 Released and changelog/24/:

  • Retry-After: The SDK now honors any server Retry-After value when rate-limited; previously values over 60 seconds were ignored and a default backoff was used.
  • Empty bodies: Responses with content-length: 0 return undefined instead of attempting JSON parse (TypeScript); treat “no body” explicitly in wrappers.
  • Environment variables: An empty string such as CLOUDFLARE_API_TOKEN="" is treated as unset.
  • Path query merging: Query strings embedded in endpoint path strings are extracted and merged into the query object.

These behave changes matter for long-running automation that retries on 429 responses or reads auth from env vars in CI.

Pagination and AutoPaging: check the exact release line

Section titled “Pagination and AutoPaging: check the exact release line”

Pagination is not stable across adjacent releases. Examples from the Go and TypeScript notes:

Email Security Investigate.Move: One changelog slice (changelog/24/) says InvestigateMoveService.New returns *pagination.SinglePage[InvestigateMoveNewResponse] instead of a bare slice; Go SDK v6.10.0 then documents the opposite flip—New() returns *[]InvestigateMoveNewResponse and NewAutoPaging() is removed.

Secrets Store: Go SDK v6.10.0 removes Stores.NewAutoPaging(), BulkDeleteAutoPaging(), and several envelope types; methods return direct response types instead of SinglePage wrappers.

Stream AudioTracks.Get: Returns *AudioTrackGetResponse instead of *pagination.SinglePage[Audio]; GetAutoPaging() removed (Go SDK v6.10.0).

IAM user groups: UserGroups.Members.New() returns a paginated page type; parameter structs rename Body → Members (Go SDK v6.10.0); UserGroupListParams.Direction becomes a typed enum (asc/desc) instead of a free string.

Whenever you relied on *AutoPaging() helpers or assumed a list method always returned a slice, open the changelog section for your target version before refactoring.

Workers observability telemetry filters (nested unions)

Section titled “Workers observability telemetry filters (nested unions)”

Go SDK v7.0.0 and changelog/24/ describe a structural change: flat []interface{} filter arrays become discriminated unions with group objects (FilterCombination) and leaf filters (Operation, Type, Value). Dashboards or scripts that built JSON filters by hand must match the new union shape or calls to ObservabilityTelemetryKeysParams.Filters (and related query/value params) will fail validation client-side.

Go SDK v7.0.0 moves several settings path parameters from int64 to string (policyID, patternID, domainID, etc.) and renames investigate path parameters from postfixID to investigateID. Hard-coded numeric IDs in URLs may still work at the HTTP layer in some cases, but generated clients will require strings and the new parameter names.

Python client SDK v5.0.0: coverage and typing

Section titled “Python client SDK v5.0.0: coverage and typing”

Cloudflare Python SDK v5.0.0 Released adds the same top-level resources called out for other languages (for example aisearch, connectivity, email_sending, fraud, realtime_kit, vulnerability_scanner) and extends existing services (API Gateway labels, Workers observability destinations, Zero Trust WARP/Gateway pieces, DNS usage endpoints, etc.).

The Python v5.0.0-beta.1 notes focus on correctness rather than headline features:

  • Pyright can infer TypedDict inside SequenceNotStr; more complete argument/response types.
  • Pydantic compatibility for versions before 2.8.0 when using additional fields.
  • Multipart form-data with JSON parts, omitting default headers, no Content-Type on GETs.
  • Nested discriminated unions in response parsing.

Email Security gains new investigate list fields (envelope_from, envelope_to, postfix_id_outbound, replyto), classification outbound_ndr, richer Finding objects, and a cursor query parameter on list params (TypeScript v6.0.0-beta.1 changelog post, also on changelog/35/).

Deprecations: annotations, replacements, and Logpush fields

Section titled “Deprecations: annotations, replacements, and Logpush fields”

Many resources now mark individual methods with @deprecated annotations across accounts, DNS, Workers, Zero Trust, and others (TypeScript SDK v6.0.0, Python v5.0.0). Deprecation in the client does not always mean the HTTP endpoint is gone immediately; it signals that generated stubs and future releases may drop the method.

Documented replacement paths from changelog/35/ and related grouped pages include:

Area Deprecated / removed in client notes Migration hint in changelog
API Gateway UserSchemas, Settings, SchemaValidation Move off API Shield schema validation resources (see linked commit in changelog)
Audit logs auditLogId.not Use id.not
Cloudforce One ThreatEvents.get(), IndicatorTypes.list() Use current intel/threat APIs in docs
Devices public_ip field Use DEX API
Email Security item_count on Move responses Stop relying on field
Pipelines v0 methods Use v1
Radar summary(), timeseriesGroups() Use V2 methods
Rulesets disable_apps, mirage fields Update rule payloads
WARP Connector connections field Follow new connector model
Workers domains environment parameter Check current Domains API
Zones page rules ResponseBuffering Use supported rule types

Cloudflare’s Deprecated APIs content strategy expects deprecation pages to list endpoints or related APIs being retired—a useful pattern when you maintain your own internal runbooks.

For Logpush jobs, Datasets notes that deprecated dataset fields may remain but eventually return empty values; jobs should migrate off deprecated fields before parsers silently lose data.

New top-level client resources (where to look in the client tree)

Section titled “New top-level client resources (where to look in the client tree)”

Repeated release tables (for example on changelog/24/ and Cloudflare Python SDK v5.0.0) add eleven top-level TypeScript client resources such as client.aiSearch, client.connectivity, client.emailSending, client.fraud, client.googleTagGateway, client.organizations, client.r2DataCatalog, client.realtimeKit, client.resourceTagging, client.tokenValidation, and client.vulnerabilityScanner, each mapping to OpenAPI resource groups. Sub-resources (Pipelines sinks/streams, Radar post-quantum, IAM SSO, Zero Trust Gateway PAC files, zone environments, and others) hang under existing services—use the release post’s “New Sub-Resources” table rather than guessing paths.

Infrastructure-as-code users mirror many of these as Terraform resources in the v5.19.0 and v5.20.0 lists (cloudflare_pipeline, cloudflare_secrets_store, cloudflare_zero_trust_dlp_settings, etc.).

Common mistakes when upgrading generated clients

Section titled “Common mistakes when upgrading generated clients”
  1. Assuming delete still returns an object after TypeScript/Go v6-style releases—check for null/undefined only.
  2. Keeping AutoPaging calls after Secrets Store or Stream release notes removed them.
  3. Mixing changelog versions (e.g. applying v6.10 Go pagination notes while on v7.0 path-parameter changes).
  4. Ignoring removed endpoints still referenced from old snippets (17 routes dropped from the SDK catalog).
  5. Treating @deprecated as noop—Radar, Pipelines v0, and API Gateway schema validation called out explicit replacements in changelog/35/.
  6. Deep-importing generated files after directory restructures—use public client.* paths only.
  1. Identify your installed versions (npm/PyPI/Go module/Terraform provider) and open the matching release post: TypeScript v6.0.0, Python v5.0.0, Go v6.10.0 or Go v7.0.0, and the cross-language SDK changelog.

  2. Run your language type-checker or compile step (tsc, mypy/pyright, go build) and map each error to the changelog sections for return types, renamed paths, and removed endpoints.

  3. Grep the codebase for AutoPaging, removed client paths (netflows, old hostnames.certificates), and deprecated symbols listed under changelog/35/.

  4. For Terraform, run terraform plan after aligning the provider with Terraform v5.20.0 or your chosen version and review unexpected creates/deletes tied to new cloudflare_* resources.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the Cloudflare changelog for your SDK version, email yimasynthetic@gmail.com with the page URL and the exact statement you think is wrong so it can be corrected or clarified.