chore(deps): update dependency cloudflare to v6#26
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency cloudflare to v6#26renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
1346945 to
3b06e7d
Compare
6c612c6 to
c91c0fc
Compare
c91c0fc to
1eb209c
Compare
1eb209c to
e828e16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.5.0→^6.0.0Release Notes
cloudflare/cloudflare-typescript (cloudflare)
v6.0.0Compare Source
This is a major version release of the Cloudflare TypeScript SDK. It includes 11 entirely new top-level API resources, new sub-resources and methods across 50+ existing resources, SDK infrastructure improvements, and breaking changes to the generated API surface from the v5.x line. The total API surface grew from ~96 resource sections to 106, with 885 source files changed.
Full Changelog: v6.0.0-beta.2...v6.0.0
Breaking Changes
SDK Infrastructure
Retry-Aftervalue for rate-limited requests. Previously, values over 60 seconds were ignored and a default backoff was used instead.content-length: 0now returnundefinedinstead of attempting to parse the body. This may affect code that expected an empty object or null.CLOUDFLARE_API_TOKEN="") are now treated as unset. Previously, an empty string was considered a valid value.Removed Endpoints (17)
The following HTTP endpoints were removed from the SDK:
DELETE /accounts/{account_id}/cloudforce-one/events/{event_id}DELETE /accounts/{account_id}/email-security/settings/domainsDELETE /accounts/{account_id}/email-security/settings/impersonation_registry/{display_name_id}GET /accounts/{account_id}/dlp/profiles/predefined/{profile_id}GET /accounts/{account_id}/email-security/investigate/{postfix_id}(and/detections,/preview,/raw,/trace)GET /accounts/{account_id}/email-security/settings/impersonation_registry/{display_name_id}GET /accounts/{account_id}/intel/ip-listPATCH /accounts/{account_id}/email-security/settings/impersonation_registry/{display_name_id}POST /accounts/{account_id}/abuse-reports/{report_type}POST /accounts/{account_id}/dlp/profiles/predefinedPOST /accounts/{account_id}/email-security/investigate/{postfix_id}/movePOST /accounts/{account_id}/email-security/investigate/{postfix_id}/reclassifyPUT /accounts/{account_id}/dlp/profiles/predefined/{profile_id}Method Signature Changes (4)
The following methods changed their positional argument signatures:
client.ai.toMarkdown.transform(file, { ...params })->client.ai.toMarkdown.transform({ ...params })--filemoved from positional arg into params bodyclient.radar.ai.toMarkdown.create(body, { ...params })->client.radar.ai.toMarkdown.create({ ...params })--bodymoved from positional arg into paramsclient.abuseReports.create(reportType, { ...params })->client.abuseReports.create(reportParam, { ...params })-- positional arg renamedclient.iam.userGroups.members.create(userGroupId, [ ...body ])->client.iam.userGroups.members.create(userGroupId, [ ...members ])-- body array param renamed (same for.update)Removed Client Paths (1)
client.intel.ipLists-- removed entirely (endpointGET /accounts/{account_id}/intel/ip-listremoved)Renamed Client Paths (2)
client.originTLSClientAuth.hostnames.certificates->client.originTLSClientAuth.zoneCertificatesclient.radar.netflows->client.radar.netFlows(casing change)Return Type Changes (179)
179 methods changed their return type. The three categories:
nullinstead of a typed response object. This affects delete operations, some create/update operations, and several get operations acrossaccounts,cache,d1,filters,firewall,hyperdrive,iam,kv,logpush,logs,r2,stream,workers,zero-trust,zones, and others. Example:client.zeroTrust.tunnels.cloudflared.create():CloudflaredCreateResponse->CloudflareTunnelclient.zeroTrust.dlp.profiles.predefined.get():Profile->PredefinedProfileclient.apiGateway.userSchemas.edit():PublicSchema->OldPublicSchemaclient.zeroTrust.gateway.proxyEndpoints.get():ProxyEndpointsSinglePage->ProxyEndpoint(pagination -> single)client.zeroTrust.gateway.proxyEndpoints.list():ProxyEndpoint->ProxyEndpointsSinglePage(single -> pagination)Removed Types (43)
The following exported types were removed. Some were renamed, some consolidated into other types, some removed with their endpoints:
ASN,AuditLog,CertificateCA,CertificateRequestType,CloudflareTunnel,ErrorData,Identifier,LoadBalancerPreview,Member,PaginationInfo,Permission,PermissionGrant,RatePlan,ResponseInfo,Result,Role,SortDirection,Subscription,SubscriptionComponent,SubscriptionZone,Token,TokenConditionCIDRList,TokenPolicy,TokenValueCloudflaredCreateResponse,CloudflaredDeleteResponse,CloudflaredEditResponse,CloudflaredGetResponse,CloudflaredListResponse(all consolidated intoCloudflareTunnel),SchemaUpload(->UserSchemaCreateResponse),TotalTLSCreateResponse,ThreatEventDeleteResponse,DomainBulkDeleteResponseNetflowSummaryResponse/NetflowTimeseriesResponse(->NetFlows*),CtSummaryResponse/CtTimeseriesResponse/CtTimeseriesGroupsResponse(casing fix),SubnetListResponse(->Subnet),CloudflareSourceUpdateResponse(->Subnet),SchemaCreateResponse/SchemaEditResponse(-> restructured),TldGetResponseAPI Surface Structure
api.md(8,897 lines) has been split into 106 per-resourceapi.mdfiles undersrc/resources/<name>/api.md. The rootapi.mdnow contains only shared types..tsfiles and are now directories with sub-modules. Import paths fromcloudflare/resources/<name>are unchanged, but deep imports into internal files may break:abuse-reports,audit-logs,bot-management,client-certificates,custom-nameservers,custom-pages,dcv-delegation,filters,ips,keyless-certificates,managed-transforms,memberships,origin-ca-certificates,origin-post-quantum-encryption,page-rules,pipelines,rate-limits,security-txt,url-normalizationorigin-tls-client-authrestructured: Thehostnamessub-resource was removed and replaced withzone-certificatesand flattened peer resources.Deprecations
The following resources now include
@deprecatedannotations on some methods. The methods still work but will be removed in a future version:accounts,addressing,ai-gateway,aisearch,api-gateway,billing,cloudforce-one,custom-nameservers,dns,email-routing,email-security,filters,firewall,images,intel,keyless-certificates,kv,logpush,origin-tls-client-auth,page-shield,pages,pipelines,radar,rate-limits,registrar,rulesets,ssl,user,workers,workers-for-platforms,zero-trust,zonesNew Top-Level Resources
11 entirely new resources added to the client:
client.aiSearchclient.connectivityclient.emailSendingclient.fraudclient.googleTagGatewayclient.organizationsclient.r2DataCatalogclient.realtimeKitclient.resourceTaggingclient.tokenValidationclient.vulnerabilityScannerNew Sub-Resources on Existing Resources
browser-renderingcrawl,devtoolscacheorigin-cloud-regionsdnsusaged1database(withtime-travel)email-securityphishguardpipelinessinks,streamsradaragent-readiness,geolocations,post-quantumworkersobservabilityzonesenvironmentsapi-gatewaylabelsbrand-protectionv2alertingsilencesbillingusageiamssoqueuesgetMetricsmethodregistrarregistration-status,update-statuszero-trustaccess,devices,dex,dlp,gateway,networks,tunnelsFeatures
Bug Fixes
Chores
origin-tls-client-auth/hostnames)Migration Guide
This is a major version bump from v5 to v6. Key changes to be aware of:
1. Delete and many other methods now return
null133 methods changed their return type to
null. This primarily affects delete operations but also some create, update, and get methods. If your code assigns the result to a typed variable, you will get a type error.Affected resources include:
accounts,cache,d1,filters,firewall,hyperdrive,iam,intel,kv,logpush,logs,r2,stream,workers,zero-trust,zones, and others. See the "Return Type Changes" section above for the full list.2. Response type renames and consolidation
29 methods changed to a different named return type. Common patterns:
Other examples:
Profile->PredefinedProfile(DLP)PublicSchema->OldPublicSchema(API Gateway)Subscription->SubscriptionCreateResponse/SubscriptionGetResponse(Zones)3. Pagination type changes
17 methods changed their pagination type, which affects how you iterate results:
Also:
client.zeroTrust.gateway.proxyEndpoints.list()changed from returning a singleProxyEndpointtoProxyEndpointsSinglePage(now paginated), and.get()changed in the opposite direction.4. Removed types (43)
24 shared types were removed from the root namespace (
ASN,AuditLog,Member,Permission,Role,Subscription,Token, etc.). These are now defined within their respective resource modules. Update imports:19 response types were consolidated or renamed. See "Removed Types" section above.
5. Method signature changes
Some methods changed their positional arguments:
Similarly,
client.radar.ai.toMarkdown.createno longer takes a positionalbodyarg.6. Renamed client paths
Three client paths changed:
7. Removed endpoints (17)
17 HTTP endpoints were removed entirely. See "Removed Endpoints" section above. Affected areas:
abuse-reports,cloudforce-one,dlp/profiles/predefined,email-security/investigate,email-security/settings,intel/ip-list.8. Empty response handling
Responses with
content-length: 0now returnundefinedinstead of attempting to parse the body.9. Retry-After behavior
The SDK now respects any
Retry-Afterheader value from the server, even values over 60 seconds. Previously, values >= 60s were ignored.10. Environment variable handling
Empty string environment variables (
CLOUDFLARE_API_TOKEN="") are now treated as unset.11. Resource restructuring
19 resources were restructured from single files to directories. Public API client paths are unchanged, but deep imports like
cloudflare/resources/pipelinesmay need updating tocloudflare/resources/pipelines/pipelines.12. Per-resource API documentation
The monolithic
api.mdhas been replaced with 106 per-resource files atsrc/resources/<name>/api.md.v5.2.0Compare Source
Full Changelog: v5.2.0...v6.0.0-beta.1
In this release, you'll see a large number of breaking changes. This is primarily due to a change 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. As the codegen is always evolving and improving, so are our code bases.
Some breaking changes were introduced due to bug fixes, also listed below.
v5.1.0Compare Source
Full Changelog: v5.1.0...v5.2.0
Features
Performance Improvements
Chores
compilerOptions.baseUrlfrom tsconfig.json (ea38064)v5.0.0Compare Source
Full Changelog: v5.0.0...v5.1.0
Features
Bug Fixes
Chores
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.