You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+117Lines changed: 117 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,123 @@ Full Changelog: [v5.0.0-beta.2...v5.0.0-beta.3](https://github.com/cloudflare/cl
58
58
59
59
* add Authentication section to README ([70d934a](https://github.com/cloudflare/cloudflare-python/commit/70d934abd91cfa8f8444e0651ac97012c1d0edcf))
60
60
61
+
## 5.0.0 (2026-04-30)
62
+
63
+
Full Changelog: [v4.3.1...v5.0.0](https://github.com/cloudflare/cloudflare-python/compare/v4.3.1...v5.0.0)
64
+
65
+
This is a major release of the Cloudflare Python SDK. It drops support for
66
+
Python 3.8, adds 11 new API services, introduces optional aiohttp backend
67
+
support for improved async concurrency, and includes hundreds of type and
68
+
method updates across the entire API surface.
69
+
70
+
Please review the breaking changes below before upgrading. A migration guide
71
+
is available at [docs/migration-guides/v5.0.0-migration-guide.md](./docs/migration-guides/v5.0.0-migration-guide.md).
72
+
73
+
---
74
+
75
+
#### Breaking Changes
76
+
77
+
-**Python 3.8 is no longer supported.** The minimum required version is now Python 3.9. ([pyproject.toml](https://github.com/cloudflare/cloudflare-python/compare/v4.3.1...v5.0.0))
78
+
-**`typing-extensions` minimum version bumped** from `>=4.10` to `>=4.14`.
79
+
80
+
Additionally, the following resources have breaking changes:
81
+
82
+
-`abusereports`
83
+
-`acm.totaltls`
84
+
-`apigateway.configurations`
85
+
-`cloudforceone.threatevents`
86
+
-`d1.database`
87
+
-`intel.indicatorfeeds`
88
+
-`logpush.edge`
89
+
-`origintlsclientauth.hostnames`
90
+
-`queues.consumers`
91
+
-`radar.bgp`
92
+
-`rulesets.rules`
93
+
-`schemavalidation.schemas`
94
+
-`snippets`
95
+
-`zerotrust.dlp`
96
+
-`zerotrust.networks`
97
+
98
+
See the [v5.0.0 Migration Guide](./docs/migration-guides/v5.0.0-migration-guide.md) for upgrade instructions and resource-specific guidance.
99
+
100
+
---
101
+
102
+
#### Features
103
+
104
+
***aiohttp backend support:** The async client now supports an optional `aiohttp` HTTP backend for improved concurrency performance. Install with `pip install cloudflare[aiohttp]` and use `DefaultAioHttpClient()` as the `http_client` parameter.
105
+
***Python 3.13 and 3.14 support** added as tested classifiers.
106
+
107
+
##### New Services
108
+
109
+
The following top-level resources are new in this release:
***_models:** add `polymorphic_serialization` parameter to `model_dump` overrides ([342b5a8](https://github.com/cloudflare/cloudflare-python/commit/342b5a84daaf5c09e3e1612809d956d916a43621))
155
+
***pipelines:** add `BaseModel` base to response `SchemaFieldStruct`/`SchemaFieldList` stubs ([d33af8b](https://github.com/cloudflare/cloudflare-python/commit/d33af8b5d5c1705fde4ae73efdbe3bfe3ba321df))
156
+
***dlp:** add missing `model_rebuild`/`update_forward_refs` for `SharedEntryCustomEntry` classes ([25ec10c](https://github.com/cloudflare/cloudflare-python/commit/25ec10c814d138f8dea08a79f9984b70abb58477))
157
+
***workers:** make `RunQueryParametersNeedleValue` a `BaseModel` with `arbitrary_types_allowed` ([6b7efbc](https://github.com/cloudflare/cloudflare-python/commit/6b7efbc51e6189ba18225c57637015f050060683))
158
+
***stream:** remove duplicate `notification_url` field in webhook response types ([fc9fb2f](https://github.com/cloudflare/cloudflare-python/commit/fc9fb2f895c5de968f67c62bb599a6792be9fa8f))
159
+
* resolve pre-existing codegen type errors ([fed88d6](https://github.com/cloudflare/cloudflare-python/commit/fed88d6c5a5e482a9de595a1431915320fa11d23))
160
+
***radar:** fix `type: ignore[call-arg]` placement for mypy compatibility ([fac9404](https://github.com/cloudflare/cloudflare-python/commit/fac9404ebfa1eb5383a3d3c54f49e4120eb8cd11))
161
+
* fix broken reference for the queues `consumer` model ([3f5cf39](https://github.com/cloudflare/cloudflare-python/commit/3f5cf39405b6b38fc594ce348d93a6e7da92c276))
162
+
163
+
164
+
#### Chores
165
+
166
+
***build:** migrate from rye to uv for project management ([2f283c2](https://github.com/cloudflare/cloudflare-python/commit/2f283c29584b49e7c000f5e04aa5edc62db36ab9))
167
+
***ci:** pin single Python version and pydantic v2 for test runs ([86676bc](https://github.com/cloudflare/cloudflare-python/commit/86676bca670d38d5947041bc5677138640dd6d92))
168
+
***typing:** add mypy configuration with strict mode ([pyproject.toml](https://github.com/cloudflare/cloudflare-python/compare/v4.3.1...v5.0.0))
169
+
***api:** 80+ composite API spec updates across the release cycle
170
+
171
+
172
+
#### Documentation
173
+
174
+
* add Authentication section to README ([70d934a](https://github.com/cloudflare/cloudflare-python/commit/70d934abd91cfa8f8444e0651ac97012c1d0edcf))
175
+
* add aiohttp backend usage instructions to README
176
+
* add MCP server integration badges (Cursor, VS Code)
177
+
61
178
## 5.0.0-beta.2 (2026-04-20)
62
179
63
180
Full Changelog: [v5.0.0-beta.1...v5.0.0-beta.2](https://github.com/cloudflare/cloudflare-python/compare/v5.0.0-beta.1...v5.0.0-beta.2)
Copy file name to clipboardExpand all lines: docs/migration-guides/v5.0.0-migration-guide.md
+43-2Lines changed: 43 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,50 @@ This guide helps you migrate your code from v4.3.1 to v5 of the Cloudflare Pytho
6
6
7
7
Version 5 introduces several breaking changes across multiple resources. This guide provides detailed migration instructions for each affected resource.
8
8
9
-
**Important**: This is a beta release. APIs and types may change before the final v5.0.0 release.
9
+
## Broad Breaking Changes
10
10
11
-
## Quick Reference
11
+
### 1. Python 3.8 is no longer supported
12
+
13
+
**What changed:**
14
+
The minimum required Python version is now 3.9. Python 3.8 reached end-of-life
15
+
in October 2024.
16
+
17
+
**Impact:**
18
+
If you are running Python 3.8, your application will fail to install or run
19
+
with cloudflare v5.0.0.
20
+
21
+
**Actions Needed:**
22
+
1. Upgrade to Python 3.9 or later (3.12+ recommended).
23
+
2. Update any CI/CD pipelines or Docker images that pin Python 3.8.
24
+
3. Review your `pyproject.toml` or `setup.py` for `python_requires` constraints.
25
+
26
+
**Before (v4.x):**
27
+
```
28
+
requires-python = ">= 3.8"
29
+
```
30
+
31
+
**After (v5.0.0):**
32
+
```
33
+
requires-python = ">= 3.9"
34
+
```
35
+
36
+
### 2. typing-extensions minimum version bumped
37
+
38
+
**What changed:**
39
+
The minimum version of `typing-extensions` was raised from `>=4.10` to `>=4.14`.
40
+
41
+
**Impact:**
42
+
If you pin `typing-extensions` to a version below 4.14, dependency resolution
43
+
will fail.
44
+
45
+
**Actions Needed:**
46
+
1. Update any version pins on `typing-extensions` to `>=4.14`.
47
+
2. Run `pip install --upgrade typing-extensions` or let your dependency
0 commit comments