Releases: cloudflare/cloudflare-go
Releases · cloudflare/cloudflare-go
v0.76.0
BREAKING CHANGES:
- images: Renamed Image struct "Metadata" field to "Meta" (#1379)
ENHANCEMENTS:
- access_application: added custom_non_identity_deny_url (#1373)
- load_balancer_monitor: add support for
consecutive_up
,consecutive_down
(#1380) - workers: Add support for retrieving and uploading only script content. (#1361)
- workers: Add support for retrieving and uploading only script metadata. (#1361)
- workers: allow namespaced scripts to be used as Worker tail consumers (#1377)
BUG FIXES:
- access_application: Use autopaginate flag as expected (#1372)
- access_ca_certificate: Use autopaginate flag as expected (#1372)
- access_group: Use autopaginate flag as expected (#1372)
- access_mutual_tls_certifcate: Use autopaginate flag as expected (#1372)
- access_policy: Use autopaginate flag as expected (#1372)
- images: Fix issue parsing Image Details from API due to incorrect struct json field (#1379)
- pagination: Will look at
total_count
andper_page
to calculatetotal_pages
iftotal_pages
is zero (#1372)
v0.75.0
BREAKING CHANGES:
- cloudflare:
Raw
method now returns a RawResponse rather than the raw JSONResult
message (#1355) - rulesets: Rename
RulesetPhaseRateLimit
toRulesetPhaseHTTPRatelimit
, to match the phase name (#1367) - rulesets: Rename
RulesetPhaseSuperBotFightMode
toRulesetPhaseHTTPRequestSBFM
, to match the phase name (#1367)
NOTES:
- rulesets: Remove non-existent
allow
action (#1367) - rulesets: Remove non-existent
http_request_main
phase (#1367) - rulesets: Remove non-public
http_response_headers_transform_managed
andhttp_request_late_transform_managed
phases (#1367)
ENHANCEMENTS:
- access_group: add auth_context group ruletype (#1344)
- access_identity_provider: add attr conditional_access_enabled (#1344)
- access_identity_provider: add auth context list/put endpoint (#1344)
- access_service_token: add support for managing
Duration
(#1347) - bot_management: add support for bot_management API (#1363)
- cloudflare: swap
encoding/json
forgithub.com/goccy/go-json
(#1360) - device_posture_rule: support eid_last_seen and risk_level and correct total_score for Tanium posture rule (#1366)
- per_hostname_tls_settings: add support for managing hostname level TLS settings (#1356)
- rulesets: Add the
ddos_mitigation
action (#1367) - waiting_room: add support for
queueing_status_code
(#1357) - web_analytics: add support for web_analytics API (#1348)
- workers: add support for tagging Worker scripts (#1368)
- zone_hold: add support for zone hold API (#1365)
BUG FIXES:
- cache_purge: don't escape HTML entity values in URLs for cache keys (#1360)
DEPENDENCIES:
v0.74.0
ENHANCEMENTS:
- access_application: Add support for custom pages (#1343)
- access_custom_page: Add support for custom pages (#1343)
- access_organization: add support for custom pages (#1343)
- rulesets: Remove internal-only schema kind (#1346)
- rulesets: Remove some request parameters that are not allowed or have no effect (#1346)
- rulesets: Update API reference links (#1346)
- teams-accounts: Adds support for protocol detection (#1340)
- workers: Add
pipeline_hash
field to Workers script response struct. (#1330) - workers: Add support for declaring arbitrary bindings with UnsafeBinding. (#1330)
- workers: Add support for uploading scripts to a Workers for Platforms namespace. (#1330)
- workers: Add support for uploading workers with Workers for Platforms namespace bindings. (#1330)
BUG FIXES:
v0.73.0
BREAKING CHANGES:
- pages_deployment: add support for auto pagination (#1264)
- pages_deployment: change DeletePagesDeploymentParams to contain all parameters (#1264)
- pages_project: change to use ResourceContainer for account ID (#1264)
- pages_project: rename PagesProject to GetPagesProject (#1264)
- rulesets:
CreateAccountRuleset
is removed in favour ofCreateRuleset
(#1333) - rulesets:
CreateZoneRuleset
is removed in favour ofCreateRuleset
(#1333) - rulesets:
DeleteAccountRuleset
is removed in favour ofDeleteRuleset
(#1333) - rulesets:
DeleteZoneRuleset
is removed in favour ofDeleteRuleset
(#1333) - rulesets:
GetAccountRulesetPhase
is removed in favour ofGetEntrypointRuleset
(#1333) - rulesets:
GetAccountRuleset
is removed in favour ofGetRuleset
(#1333) - rulesets:
GetZoneRulesetPhase
is removed in favour ofGetEntrypointRuleset
(#1333) - rulesets:
GetZoneRuleset
is removed in favour ofGetRuleset
(#1333) - rulesets:
UpdateAccountRulesetPhase
is removed in favour ofUpdateEntrypointRuleset
(#1333) - rulesets:
UpdateAccountRuleset
is removed in favour ofUpdateRuleset
(#1333) - rulesets:
UpdateZoneRulesetPhase
is removed in favour ofUpdateEntrypointRuleset
(#1333) - rulesets:
UpdateZoneRuleset
is removed in favour ofUpdateRuleset
(#1333)
ENHANCEMENTS:
- device_posture_rule: support active_threats, network_status, infected, and is_active for sentinelone_s2s posture rule (#1339)
- device_posture_rule: support certificate_id and cn for client_certificate posture rule (#1339)
- images: adds ability to upload image by url (#1335)
- load_balancing: support header session affinity policy (#1302)
- zone: Added
GetRegionalTieredCache
andUpdateRegionalTieredCache
to allow setting Regional Tiered Cache for a zone. (#1336)
DEPENDENCIES:
- deps: bumps golang.org/x/net from 0.11.0 to 0.12.0 (#1328)
v0.72.0
BREAKING CHANGES:
- logpush:
CheckAccountLogpushDestinationExists
is removed in favour ofCheckLogpushDestinationExists
withResourceContainer
method parameter (#1326) - logpush:
CheckZoneLogpushDestinationExists
is removed in favour ofCheckLogpushDestinationExists
withResourceContainer
method parameter (#1326) - logpush:
CreateAccountLogpushJob
is removed in favour ofCreateLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
CreateZoneLogpushJob
is removed in favour ofCreateLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
DeleteAccountLogpushJob
is removed in favour ofDeleteLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
DeleteZoneLogpushJob
is removed in favour ofDeleteLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
GetAccountLogpushFields
is removed in favour ofGetLogpushFields
withResourceContainer
method parameter (#1326) - logpush:
GetAccountLogpushJob
is removed in favour ofGetLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
GetAccountLogpushOwnershipChallenge
is removed in favour ofGetLogpushOwnershipChallenge
withResourceContainer
method parameter (#1326) - logpush:
GetZoneLogpushFields
is removed in favour ofGetLogpushFields
withResourceContainer
method parameter (#1326) - logpush:
GetZoneLogpushJob
is removed in favour ofGetLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
GetZoneLogpushOwnershipChallenge
is removed in favour ofGetLogpushOwnershipChallenge
withResourceContainer
method parameter (#1326) - logpush:
ListAccountLogpushJobsForDataset
is removed in favour ofListLogpushJobsForDataset
withResourceContainer
method parameter (#1326) - logpush:
ListAccountLogpushJobs
is removed in favour ofListLogpushJobs
withResourceContainer
method parameter (#1326) - logpush:
ListZoneLogpushJobsForDataset
is removed in favour ofListLogpushJobsForDataset
withResourceContainer
method parameter (#1326) - logpush:
ListZoneLogpushJobs
is removed in favour ofListLogpushJobs
withResourceContainer
method parameter (#1326) - logpush:
UpdateAccountLogpushJob
is removed in favour ofUpdateLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
UpdateZoneLogpushJob
is removed in favour ofUpdateLogpushJob
withResourceContainer
method parameter (#1326) - logpush:
ValidateAccountLogpushOwnershipChallenge
is removed in favour ofValidateLogpushOwnershipChallenge
withResourceContainer
method parameter (#1326) - logpush:
ValidateZoneLogpushOwnershipChallenge
is removed in favour ofValidateLogpushOwnershipChallenge
withResourceContainer
method parameter (#1326) - logpush: all methods are updated to use the newer client conventions for method signatures (#1326)
ENHANCEMENTS:
- resource_container: expose
Type
on*ResourceContainer
to explicitly denote what type of resource it is instead of inferring fromLevel
. (#1325)
v0.71.0
BREAKING CHANGES:
- access_application: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_ca_certificate: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_group: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_identity_provider: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_mutual_tls_certificates: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_organization: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_policy: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_service_tokens: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - access_user_token: refactor methods to use
ResourceContainer
instead of dedicated account/zone methods (#1319) - images: renamed
BaseImage
toGetBaseImage
to match library conventions (#1322) - images: renamed
ImageDetails
toGetImage
to match library conventions (#1322) - images: renamed
ImagesStats
toGetImagesStats
to match library conventions (#1322) - images: updated method signatures of
DeleteImage
to match newer conventions and standards (#1322) - images: updated method signatures of
ListImages
to match newer conventions and standards (#1322) - images: updated method signatures of
UpdateImage
to match newer conventions and standards (#1322) - images: updated method signatures of
UploadImage
to match newer conventions and standards (#1322)
ENHANCEMENTS:
- access_application: add support for auto pagination (#1319)
- access_ca_certificate: add support for auto pagination (#1319)
- access_group: add support for auto pagination (#1319)
- access_identity_provider: add support for auto pagination (#1319)
- access_mutual_tls_certificates: add support for auto pagination (#1319)
- access_policy: add support for auto pagination (#1319)
- device_posture_rule: support os_version_extra (#1316)
- images: adds support for v2 when uploading images directly (#1322)
- workers: Add ability to specify tail Workers in script metadata (#1317)
DEPENDENCIES:
- deps: bumps dependabot/fetch-metadata from 1.5.1 to 1.6.0 (#1320)
Note:
flarectl
binary archives are now alltar.gz
as opposed to the mixed extensions previously used.
v0.70.0
BREAKING CHANGES:
- cloudflare: remove
UsingAccount
in favour of resource specific attributes (#1315) - cloudflare: remove
api.AccountID
from client struct (#1315) - dns_firewall: modernise method signatures and conventions to align with the experimental client (#1313)
- railgun: remove support for railgun (#1312)
- tunnel: swap
ConnectTimeout
,TLSTimeout
,TCPKeepAlive
andKeepAliveTimeout
toTunnelDuration
instead oftime.Duration
(#1303) - virtualdns: remove support in favour of newer DNS firewall methods (#1313)
ENHANCEMENTS:
- custom_nameservers: add support for managing custom nameservers (#1304)
- load_balancing: extend documentation for least_outstanding_requests steering policy (#1293)
- waiting_room: add support for
additional_routes
andcookie_suffix
(#1311)
DEPENDENCIES:
- deps: bumps github.com/hashicorp/go-retryablehttp from 0.7.3 to 0.7.4 (#1301)
- deps: bumps github.com/urfave/cli/v2 from 2.25.5 to 2.25.6 (#1305)
- deps: bumps github.com/urfave/cli/v2 from 2.25.6 to 2.25.7 (#1314)
- deps: bumps golang.org/x/net from 0.10.0 to 0.11.0 (#1307)
- deps: bumps goreleaser/goreleaser-action from 4.2.0 to 4.3.0 (#1306)
v0.69.0
BREAKING CHANGES:
- stream: StreamVideo.Duration has changed from int to float64. (#1190)
ENHANCEMENTS:
- access: Added
self_hosted_domains
support to access applications (#1281) - custom_hostname: add support for
bundle_method
TLS configuration (#1298) - devices_policy: Add missing description field to policy (#1294)
- stream: added metadata support (#1088)
BUG FIXES:
- email_routing_destination: return encountered error, not
ErrMissingAccountID
all the time (#1297) - stream: Fix a bug that cannot unmarshal video duration number. (#1190)
DEPENDENCIES:
v0.68.0
BREAKING CHANGES:
- r2_bucket: change creation time from string to *time.Time (#1265)
ENHANCEMENTS:
- adds OriginRequest field to UnvalidatedIngressRule struct. (#1138)
- lists: add support for hostname and ASN lists. (#1288)
- pages: add support for Smart Placement. Added
Placement
inPagesProjectDeploymentConfigEnvironment
. (#1279) - r2_bucket: add support for getting a bucket (#1265)
- tunnels: add support for
access
andhttp2Origin
keys (#1291) - workers: add support for Smart Placement. Added
Placement
inCreateWorkerParams
. (#1279) - zone: Added
GetCacheReserve
andUpdateacheReserve
to allow setting Cache Reserve for a zone. (#1278)
BUG FIXES:
- dns: fix MX record priority not set by UpdateDNSRecord (#1290)
- flarectl/dns: ensure MX priority value is dereferenced (#1289)
- turnstile: remove
SiteKey
being sent in rotate secret's request body (#1285) - turnstile: remove
SiteKey
/Secret
being sent in update request body (#1284)
DEPENDENCIES:
v0.67.0
NOTES:
- dns_firewall: The
OriginIPs
field has been renamed toUpstreamIPs
. (#1246)
ENHANCEMENTS:
- device_posture_rule: add input fields tanium, intune and kolide (#1268)
- waiting_room: add support for zone-level settings (#1276)
BUG FIXES:
- rulesets: allow
PreserveQueryString
to be nullable (#1275)
DEPENDENCIES: