Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/fastly/go-fastly to v9 #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/fastly/go-fastly v1.18.0 -> v9.12.0 age adoption passing confidence

Release Notes

fastly/go-fastly (github.com/fastly/go-fastly)

v9.12.0

Compare Source

Full Changelog

Breaking:

Note that in spite of this breaking change, the major version number
of the package was not incremented, as the feature which was removed
did not work and no users of the package could have been relying on
it.

  • breaking(product_enablement): Remove support for NGWAF product. #​560

Enhancements:

  • feat(stats_historical): add origin statistics #​552
  • feat(stats_historical): add fields with all prefix #​553
  • Add GrafanaCloudLogs as an logging enpoint #​556
  • feat(product_enablement): Add support for Log Explorer & Insights product. #​558

Bug fixes:

  • fix(logging_grafanacloudlogs): Fix Grafana Cloud Logs errors #​559
  • fix(debug_mode): Fix FASTLY_DEBUG_MODE when used in combination with go-vcr. #​561
  • test(infrastructure): Add support for testing against both Delivery and Compute services. #​562
  • test(product_enablement): Add test suites for all supported products. #​563

Dependencies:

  • build(deps): Unpin staticcheck, 'latest' version is acceptable. #​549

v9.11.0

Compare Source

Full Changelog

Enhancements:

  • feat(custom_dashboards): Add support for Custom Dashboards APIs. #​546
  • feat(automation_tokens): Add support for automation-tokens #​547
  • feat(product_enablement): Add support for NGWAF. #​550

v9.10.0

Compare Source

Full Changelog

Enhancements:

  • feat(service, version): Add support for 'environments'. #​542

Bug fixes:

  • fix: Ensure that all API endpoint URLs are constructed safely. #​544

v9.9.0

Compare Source

Full Changelog

Enhancements:

  • feat(product_enablement): Add support for the 'bot_management' product. #​539

v9.8.0

Compare Source

Full Changelog

Enhancements:

  • Add TCP Keep-Alive parameters to backend structs #​537

v9.7.0

Compare Source

Full Changelog

Enhancements:

  • feat(tls_custom): add mutual_authentication field to response #​535

  • feat(tls/custom_certs): add in_use filter #​534

  • feat(client): prepend custom user-agent via FASTLY_USER_AGENT env variable to user #​531

v9.6.0

Compare Source

Full Changelog

Enhancements:

  • add limit_workspaces to User model #​529

v9.5.0

Compare Source

Full Changelog

Enhancements:

  • feat(package): add ClonedFrom field to PackageMetadata #​527

v9.4.0

Compare Source

Full Changelog

Enhancements:

  • feat(helpers): Extend ToPointer to cover []string #​525
  • feat(image_opto): Add Image Optimizer default settings API #​516

v9.3.2

Compare Source

Full Changelog

Enhancements:

  • feat(tls_subscription): add tls_certificate attributes #​523
  • tests(alerts): add percent alerts tests #​522

v9.3.1

Compare Source

Full Changelog

Bug fixes:

  • fix(client): support tcp keepalive #​519

v9.3.0

Compare Source

Full Changelog

Enhancements:

  • Add support for specifying location when creating KV stores #​517
  • feat: notifications #​513

v9.2.2

Compare Source

Full Changelog

Bug fixes:

  • fix(tls_mutual_authentication): support null for ID value #​514

v9.2.1

Compare Source

Full Changelog

Bug fixes:

  • fix(tls_custom_activation): only error if no fields provided #​511

v9.2.0

Compare Source

Full Changelog

Enhancements:

  • feat: expose project_id field of scalyr logging config #​508

v9.1.0

Compare Source

Full Changelog

Enhancements:

  • feat(kv-store-entry): allow parallelization of batch put item #​502
  • feat(historical-stats): add aggregate endpoint #​506

v9.0.1

Compare Source

Full Changelog

Bug fixes:

  • fix(config_store): decoding #​503

Enhancements:

  • style: resolve gofumpt issues #​500

Dependencies:

  • build: bump minimum go version #​504

v9.0.0

Compare Source

Full Changelog

Breaking:

To summarize the key items in the v9 release:

  • The paginators for Services, ACL Entries and Dictionary Items have been replaced with a generic paginator.
  • The KV Stores Entries paginator was NOT replaced as it has a incompatible implementation.
  • The List* methods no longer sort results, and will now return all results.
  • All endpoints (except those using JSONAPI) use pointers consistently for Create/Update methods.

The complete list of breaking changes are:

  • fix(token): add ListTokensInput to ListTokens #​487
  • feat(config store): adds ListConfigStoresInput when returning ListConfigStores #​481
  • Use integer instead of string #​486
  • fix(request_settings): make action a pointer in update #​488
  • feat: generic paginator #​491
  • fix: all relevant fields to be pointers #​493

Enhancements:

  • feat: domain inspector #​483
  • Move CBool helper with the other helpers #​484
  • Support retrieving a secret store by name #​485
  • replace: pointer helpers to generic ToPointer function #​489
  • refactor(helpers): avoid explicit types in favour of tilda type constraint #​490
  • refactor(secret_store): replace json.NewEncoder with c.PostJSON #​492
  • refactor: rename files #​494
  • refactor: resolves linter issues #​495
  • refactor: use consistent naming conventions #​496
  • feat: fastly alerts #​499
  • refactor: use explicit naming for IDs #​497

Dependencies:

  • build(deps): bump golang.org/x/crypto from 0.1.0 to 0.17.0 #​498

v8.6.4

Compare Source

Full Changelog

Enhancements:

  • feat: add kv-store list keys consistency param #​479

v8.6.3

Compare Source

Full Changelog

Enhancements:

  • feat(client): expose DebugMode field #​477

Documentation:

  • docs: support for Compute #​476

v8.6.2

Compare Source

Full Changelog

Bug fixes:

  • fix(client): simplify key-redaction logic #​472

v8.6.1

Compare Source

Full Changelog

Bug fixes:

  • fastly: fix return value for errors during kvstore pagination #​468

Dependencies:

  • build: bump minimum go version to 1.19 #​467

v8.6.0

Compare Source

Full Changelog

Enhancements:

  • feat(backend): add share_key field #​463

v8.5.9

Compare Source

Full Changelog

Bug fixes:

  • revert(backend): revert removal of redundant ErrorThreshold field #​464

v8.5.8

Compare Source

Full Changelog

Enhancements:

  • Add support for the New Relic OTLP logging endpoint #​460

Bug fixes:

  • remove(backend): remove redundant ErrorThreshold field #​461

v8.5.7

Compare Source

Full Changelog

Enhancements:

  • feat(kv_store): add interface for easier testing of paginator #​458

v8.5.6

Compare Source

Full Changelog

Enhancements:

  • fix(kv_store): support parallel calls to delete keys #​456

v8.5.5

Compare Source

Full Changelog

Enhancements:

  • fix(errors): support KV Store batch endpoint error response #​454

v8.5.4

Full Changelog

Bug fixes:

  • fix: ensure Fastly-Key is stripped from the dump #​453

v8.5.3

Full Changelog

Enhancements:

v8.5.2

Compare Source

Full Changelog

Bug fixes:

  • fix(errors): use title if present #​449

v8.5.1

Compare Source

Full Changelog

Enhancements:

  • Add support for file_max_bytes field to s3 logging endpoint #​446
  • feat(errors): expose rate limit headers #​447

v8.5.0

Compare Source

Full Changelog

Enhancements:

  • feat(config_store): implement batch endpoint #​444

v8.4.1

Compare Source

Full Changelog

Enhancements:

  • feat(mutual_authentication): add Enforced to CREATE #​442

v8.4.0

Compare Source

Full Changelog

Enhancements:

  • Support Mutual Authentication (mTLS) endpoints #​440

v8.3.0

Compare Source

Full Changelog

Enhancements:

  • fix(kv_store): allow buffering io for key insert #​437

v8.2.1

Compare Source

Full Changelog

Enhancements:

v8.2.0

Compare Source

Full Changelog

Enhancements:

  • Secret Store: Support PUT & PATCH methods when creating secret #​433

v8.1.0

Compare Source

Full Changelog

Enhancements:

  • feat: kv_store batch API endpoint #​431

v8.0.3

Compare Source

Full Changelog

Enhancements:

  • fix(kv_store): support parallel requests #​429

v8.0.2

Compare Source

Full Changelog

Bug fixes:

  • fix(kv_store): allow file read support #​427

v8.0.1

Compare Source

Full Changelog

Enhancements:

  • Add project id for GCP in logging #​425

v8.0.0

Compare Source

Full Changelog

Breaking:

  • breaking(secret-store): rename ValidateSignature to VerifySignature #​397
  • breaking(object-store): rename ObjectStore to KVStore #​422

v7.5.5

Compare Source

Full Changelog

Enhancements:

  • feat(ratelimiter): add uri_dictionary_name property #​420

v7.5.4

Compare Source

Full Changelog

Bug fixes:

  • fix(ratelimiter): use separate structs for input/response serialization #​418

v7.5.3

Compare Source

Full Changelog

Bug fixes:

  • fix(ratelimiter): serialize with mapstructure tag #​416

v7.5.2

Compare Source

Full Changelog

Enhancements:

  • feat(erl): add missing fields #​414

v7.5.1

Compare Source

Full Changelog

Bug fixes:

  • fix(lint): avoid range variable being captured by func literal #​411
  • fix(ratelimit): add missing LoggerType input for CREATE/UPDATE #​412

v7.5.0

Compare Source

Full Changelog

Enhancements:

  • feat: Add Config Store support #​398

Bug fixes:

  • fix(tls-subscription): serialise warnings field #​409

v7.4.0

Compare Source

Full Changelog

Enhancements:

  • fix(lint): semgrep #​406
  • Expose KeepAliveTime field from Backend API #​405

Dependencies:

  • Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0 #​404

v7.3.0

Compare Source

Full Changelog

Enhancements:

  • feat(product_enablement): implement API #​399
  • build(make): setup semgrep configuration #​400

v7.2.0

Compare Source

Full Changelog

Enhancements:

  • allow Go binary to be specified when running make #​393
  • add support for Secret Store client keys #​392
  • resource: improve parameter naming; support JSON encode #​394
  • feat(http3): implement HTTP3 API endpoints #​395

v7.1.0

Compare Source

Full Changelog

Enhancements:

  • fastly: allow uploading compute package from memory #​384
  • Improve error response handling #​386
  • secret-store: Add created_at fields to store and secret #​387
  • Add compute_requests to usage response struct #​388
  • feat(resource): implement Resource API #​390

Bug fixes:

  • fastly: fix invalid package uploading test #​385
  • Fix typo in AttackRequestHeaderBytes field name #​389

v7.0.0

Compare Source

The biggest change in this release is the majority of input fields are now pointers rather than primitives. This is to enable users to set an empty value for fields when they are being sent to the Fastly API, in cases where the user wishes to override an otherwise default value provided by the API.

There has been a bunch of interface fixes (e.g. consistent use of int over uint equivalents, typos in field names fixed, response types renamed to be less ambiguous etc) and also many other changes to better support consistency and documentation across the code base.

Full Changelog

Breaking:

  • Backend resource tweaks to allow setting zero value #​375
  • Sort all struct fields #​376
  • Address FIXME notes #​379
  • Revive fixes #​378
  • Ensure all relevant 'create' input fields are using pointers #​382

Bug fixes:

  • Ensure parameters are sent to API #​380

Enhancements:

  • Add google account name to all google logging endpoints #​377

v6.8.0

Compare Source

Full Changelog

Enhancements:

  • Support Health Check Headers #​373

v6.7.0

Compare Source

Full Changelog

Enhancements:

  • Add Secret Store API support #​367

v6.6.0

Compare Source

Full Changelog

Enhancements:

  • Make gzip level consistent everywhere #​368
  • Add Object Store API support #​359

v6.5.2

Compare Source

Full Changelog

Bug fixes:

  • Avoid duplicate Close() call on http.Response.Body #​365

v6.5.1

Compare Source

Full Changelog

Bug fixes:

  • Ensure http.Response.Body is closed #​363

v6.5.0

Compare Source

Full Changelog

Enhancements:

  • TLS Subscriptions: add filter for active orders #​357

v6.4.3

Compare Source

Full Changelog

Bug fixes:

  • Token field is required for some log endpoints #​355

v6.4.2

Compare Source

Full Changelog

Bug fixes:

  • purge: fail to purge with query string #​353

v6.4.1

Compare Source

Full Changelog

Enhancements:

  • Implement missing ListServiceAuthorizations #​351

v6.4.0

Compare Source

Full Changelog

Enhancements:

  • Support for Service Authorizations #​349
  • logging/gcp: add AccountName #​346

v6.3.2

Compare Source

Full Changelog

Enhancements:

  • Add Backends field to Director #​347

v6.3.1

Compare Source

Full Changelog

Bug fixes:

  • Fix typo in filter[tls_certificate.id] #​344

v6.3.0

Compare Source

Full Changelog

Enhancements:

  • Support for Edge Rate Limiting #​341

Bug fixes:

  • go.mod: downgrade to 1.16 #​340

v6.2.0

Compare Source

Full Changelog

Enhancements:

  • Origin Inspector: Get Historical Origin Metrics for a Service #​335

v6.1.0

Compare Source

Full Changelog

Enhancements:

  • Support Fastly-RateLimit-Remaining and Fastly-RateLimit-Reset #​337
  • Stats: Add test for fetching stats by service and field #​333

Documentation:

v6.0.1

Compare Source

Full Changelog

Bug fixes:

  • Correctly set and advance current page for pagination types #​330

v6.0.0

Compare Source

Full Changelog

Enhancements:

  • Pagination to return interface not concrete type #​328
  • Update go modules and fixtures #​325

v5.3.0

Compare Source

Full Changelog

Enhancements:

  • Add pagination support for GET /service endpoint #​326

v5.2.0

Compare Source

Full Changelog

Enhancements:

  • Bump deps to side-step gopkg.in/yaml.v2 security vulnerability #​323
  • Add support for modsec_rule_id filter parameter #​322
  • Add support for Link header pagination #​321

v5.1.3

Compare Source

Full Changelog

Bug fixes:

  • Do not omit zero int values on create operations #​318
  • Fix len < 0 in test: len cannot return negative values #​319

v5.1.2

Compare Source

Full Changelog

Bug fixes:

  • Use pointer for subnet field #​316
  • Replace form dependency with google's go-querystring #​315

v5.1.1

Compare Source

Full Changelog

Bug fixes:

  • Manually fill ActiveVersion value in GetService #​312

v5.1.0

Compare Source

Full Changelog

Enhancements:

  • Add UseTLS field for Splunk logging #​309

v5.0.0

Compare Source

Full Changelog

Breaking:

  • Switch from bool to Compatibool for ACL entries #​307

v4.0.0

Compare Source

Full Changelog

Breaking:

  • Change Backend SSLCiphers field from []string to string #​304

Bug fixes:

  • Fix issues with serialising x-www-form-urlencoded data #​304

v3.12.0

Compare Source

Full Changelog

Enhancements:

  • Implement DELETE /tokens (bulk token deletion) API #​302

v3.11.0

Compare Source

Full Changelog

Enhancements:

  • Implement user password reset #​300

v3.10.0

Compare Source

Full Changelog

Enhancements:

  • Add domain validation API #​298

v3.9.5

Compare Source

Full Changelog

Bug fixes:

  • Allow creating dynamic VCL snippets with empty content #​296

v3.9.4

Compare Source

Full Changelog

Enhancements:

  • Add region support for NewRelic logging endpoint #​292

Bug fixes:

  • Remove omitempty from SSLCheckCert field #​294

Documentation:

  • Correct indentation in README code example #​293

v3.9.3

Compare Source

Full Changelog

Bug fixes:

  • ACL entry Subnet field should be integer type (missed references) #​290

v3.9.2

Compare Source

Full Changelog

Bug fixes:

  • ACL entry Subnet field should be integer type #​288

v3.9.1

Compare Source

Full Changelog

Bug fixes:

  • omitempty should be set for ContentTypes and Extensions #​282
  • Check pointer struct type isn't nil before referencing its fields #​286

v3.9.0

Compare Source

Full Changelog

Enhancements:

  • Batch Surrogate-Key purge #​284

v3.8.0

Compare Source

Full Changelog

Enhancements:

  • Update VCL snippets to more closely align with API #​281

v3.7.0

Compare Source

Full Changelog

Enhancements:

  • Add S3 Logging ACL parameter and add Redundancy options #​279
  • Add HTTP 206 Partial Content to stats #​277

v3.6.0

Compare Source

Full Changelog

Enhancements:

  • Fix testing behavior for logging endpoints the support compression #​271

v3.5.0

Compare Source

Full Changelog

Enhancements:

  • Support usage of IAM role in S3 and Kinesis logging endpoints #​269

v3.4.1

Compare Source

Full Changelog

Bug fixes:

  • Purge with Soft=true bug #​266
  • Initialise Headers map to avoid runtime panic when purging. #​267

Closed issues:

  • Potentially misleading comment in README.md #​260

v3.4.0

Compare Source

Full Changelog

Enhancements:

  • Add PATCH endpoint for TLS Subscriptions #​262

v3.3.0

Compare Source

Full Changelog

Enhancements:

  • Updates needed to support Terraform TLS resources #​259

v3.2.0

Compare Source

Full Changelog

Enhancements:

  • Add more support for compression_codec to logging endpoints #​257

v3.1.0

Compare Source

Full Changelog

Enhancements:

  • Add support for file_max_bytes configuration for azure logging endpoint #​255

v3.0.0

Compare Source

Full Changelog

There were a few breaking changes introduced in v3:

  1. A new FieldError abstraction for validating API struct fields.
  2. Changing some mandatory fields to Optional (and vice-versa) to better support more practical API usage.
  3. Avoid generic ID field when more explicit naming would be clearer.

Enhancements:

  • Strip TLS prefix from TLS struct fields #​250
  • Avoid generic ID field when more explicit naming would be clearer #​247
  • Update Test Fixtures #​245
  • Add region support to logentries logging endpoint #​243
  • Add basic managed logging endpoint support to go-fastly #​241
  • Create new error abstraction for field validation #​239

Bug fixes:

  • NewName should be optional #​252
  • Dictionary ItemValue isn't optional #​251
  • Ensure consistent naming for ServiceID (fixes missed references) #​249
  • Update to RequestMaxBytes to align with updated API and regenerate fixtures #​248
  • Cleanup naming of Kinesis to be more consistent. #​246
  • Reword expected error message based on API changes #​244

Closed issues:

  • Remove uninitialized ActiveVersion field from Service struct? #​242
  • Cache setting is missing the 'deliver' action #​136

v2.1.0

Compare Source

Full Changelog

Enhancements:

  • Add support for TLS client and batch size options for splunk #​236
  • Add support for compression_codec to logging file sink endpoints #​235
  • Add support for Kinesis logging endpoint #​234
  • Add SASL fields support for Kafka Logging Endpoint #​226
  • Custom TLS API #​225

Closed issues:

  • Any plan to add custom TLS certificates? #​224

v2.0.0

Compare Source

Full Changelog

The move from major version v1 to v2 has resulted in a couple of fundamental changes to the library:

  • Consistent field name format for IDs and Versions (e.g. DictionaryID, PoolID, ServiceID, ServiceVersion etc).
  • Input struct fields (for write/update operations) that are optional (i.e. omitempty) and use basic types, are now defined as pointers.

The move to more consistent field names in some cases will have resulted in the corresponding sentinel error name to be updated also. For example, ServiceID has resulted in a change from ErrMissingService to ErrMissingServiceID.

The change in type for basic types that are optional on input structs related to write/update operations is designed to avoid unexpected behaviours when dealing with their zero value (see this reference for more details). As part of this change we now provide helper functions to assist with generating the new pointer types required.

Note: some read/list operations require fields to be provided but if omitted a zero value will be used when marshaling the data structure into JSON. This too can cause confusion, which is why some input structs define their mandatory fields as pointers (to ensure that the backend can distinguish between a zero value and an omitted field).

Enhancements:

Closed issues:

  • Fails to Parse Historic Stats when no Service Provided #​214

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch 3 times, most recently from db1a93f to 0b67e99 Compare March 15, 2024 10:49
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch 3 times, most recently from a34a306 to a5d825c Compare April 16, 2024 18:47
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from a5d825c to f4b0921 Compare April 17, 2024 13:49
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from f4b0921 to 1520b4c Compare May 7, 2024 15:35
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 1520b4c to 60a2ef2 Compare May 15, 2024 20:28
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 60a2ef2 to 13ab0a1 Compare May 29, 2024 11:25
Copy link
Contributor Author

renovate bot commented Jun 4, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
github.com/google/jsonapi v0.0.0-20201022225600-f822737867f6 -> v1.0.0
golang.org/x/sys v0.1.0 -> v0.15.0

@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 13ab0a1 to b77ee51 Compare June 4, 2024 16:51
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from b77ee51 to 1983ae3 Compare June 21, 2024 15:36
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 1983ae3 to 4f466f3 Compare August 7, 2024 20:51
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 4f466f3 to 7bf1b73 Compare August 20, 2024 19:53
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 7bf1b73 to edf8fb6 Compare September 9, 2024 19:55
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from edf8fb6 to 8ce35e0 Compare October 1, 2024 19:24
@renovate renovate bot force-pushed the renovate/github.com-fastly-go-fastly-9.x branch from 8ce35e0 to a94ed8e Compare November 7, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants