Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 4.31 KB

CHANGELOG.md

File metadata and controls

78 lines (60 loc) · 4.31 KB

v0.12.0 (2024-04-11)

  • Feature: Add Middleware type, WithMiddleware and ChainMiddleware methods to package config, this allows clients to chain and add Middlewares to the transport layer of the HTTP client.

v0.11.0 (2024-04-09)

  • Feature: Add method WithCaptureHTTPRequest to package runtime, which allows capture of HTTP requests for debugging purposes.

v0.10.1 (2024-03-20)

  • Improvement: Update ConfigureRegion method to take into account global servers without a region variable

v0.10.0 (2024-02-27)

  • Feature: Add configuration option that, for the key flow, enables a goroutine to be spawned that will refresh the access token when it's close to expiring
  • Deprecation:
    • Methods:
      • config.WithMaxRetries
      • config.WithWaitBetweenCalls
      • config.WithRetryTimeout
      • clients.NewRetryConfig
    • Fields:
      • clients.KeyFlowConfig.ClientRetry
      • clients.TokenFlowConfig.ClientRetry
      • clients.NoAuthFlowConfig.ClientRetry
      • clients.RetryConfig
    • Retry options were removed to reduce complexity of the clients. If this functionality is needed, you can provide your own custom HTTP client.
  • Breaking Change: Change signature of auth.NoAuth, which no longer takes clients.RetryConfig as argument.
  • Breaking Change:
    • Methods:
      • clients.KeyFlow.Clone
      • clients.TokenFlow.Clone
      • clients.NoAuthFlow.Clone
      • clients.Do
    • Fields:
      • clients.DefaultRetryMaxRetries
      • clients.DefaultRetryWaitBetweenCalls
      • clients.DefaultRetryTimeout
    • Constants:
      • clients.ClientTimeoutErr
      • clients.ClientContextDeadlineErr
      • clients.ClientConnectionRefusedErr
      • clients.ClientEOFError
      • clients.Environment
    • Removed to reduce complexity of the clients, they were no longer being used.

v0.9.0 (2024-02-19)

  • Deprecation: Mark method config.WithCaptureHTTPResponse as deprecated, to avoid confusion due to it not being a configuration option. Use runtime.WithCaptureHTTPResponse instead.
  • Deprecation: Mark method config.WithJWKSEndpoint and field config.Configuration.JWKSCustomUrl as deprecated. Validation using JWKS was removed, for being redundant with token validation done in the APIs. These have no effect.
  • Breaking Change: Remove method KeyFlow.Clone, that was no longer being used.

v0.8.0 (2024-02-16)

  • Feature: Add package runtime, which implements methods to be used when performing API requests.
  • Feature: Add method WithCaptureHTTPResponse to package runtime, which does the same as config.WithCaptureHTTPResponse. Method was moved to avoid confusion due to it not being a configuration option, and will be removed in a later release.

v0.7.7 (2024-02-02)

  • Bugfix: Use http.Request context in clients.Do

v0.7.6 (2024-01-15)

  • Add LICENSE and NOTICE files

v0.7.5 (2024-01-09)

  • Improvement: When using the key flow, the SDK will extract the private key from the service account key and use it, if no private key is provided in the configuration, through environment variable or in the credentials file. This makes it simpler to use the key flow: if you create a service account key including the private key, you don't need to provide the private key separately anymore

v0.7.4 (2023-12-22)

  • Replace k8s.io/apimachinery with cenkalti/backoff

v0.7.3 (2023-12-13)

  • auth: setup authentication, specifically using the service account key or token flows. Check our authentication example
  • clients: baseline http client implementations to support different use cases, such as the different authentication flows
  • config: configuration for the SDK clients, such as custom endpoints, region and custom http client configuration. Check our configuration example
  • oapierror: open api error definition and handling
  • utils: utilities, such as the Ptr method to return a pointer to a variable of any type, which can be useful for creating payloads
  • wait: functionality to wait until a specific async operation has finished. Check our waiter example