github Azure/azure-sdk-for-go sdk/azcore/v1.0.0

latest releases: sdk/resourcemanager/trustedsigning/armtrustedsigning/v0.1.0, sdk/resourcemanager/computeschedule/armcomputeschedule/v0.1.0, sdk/resourcemanager/containerservice/armcontainerservice/v6.2.0-beta.1...
2 years ago

1.0.0 (2022-05-12)

Features Added

  • Added interface runtime.PollingHandler to support custom poller implementations.
    • Added field PollingHandler of this type to runtime.NewPollerOptions[T] and runtime.NewPollerFromResumeTokenOptions[T].

Breaking Changes

  • Renamed cloud.Configuration.LoginEndpoint to .ActiveDirectoryAuthorityHost
  • Renamed cloud.AzurePublicCloud to cloud.AzurePublic
  • Removed AuxiliaryTenants field from arm/ClientOptions and arm/policy/BearerTokenOptions
  • Removed TokenRequestOptions.TenantID
  • Poller[T].PollUntilDone() now takes an options *PollUntilDoneOptions param instead of freq time.Duration
  • Removed arm/runtime.Poller[T], arm/runtime.NewPoller[T]() and arm/runtime.NewPollerFromResumeToken[T]()
  • Removed arm/runtime.FinalStateVia and related const values
  • Renamed runtime.PageProcessor to runtime.PagingHandler
  • The arm/runtime.ProviderRepsonse and arm/runtime.Provider types are no longer exported.
  • Renamed NewRequestIdPolicy() to NewRequestIDPolicy()
  • TokenCredential.GetToken now returns AccessToken by value.

Bugs Fixed

  • When per-try timeouts are enabled, only cancel the context after the body has been read and closed.
  • The Operation-Location poller now properly handles final-state-via values.
  • Improvements in runtime.Poller[T]
    • Poll() shouldn't cache errors, allowing for additional retries when in a non-terminal state.
    • Result() will cache the terminal result or error but not transient errors, allowing for additional retries.

Other Changes

  • Updated to latest internal module and absorbed breaking changes.
    • Use temporal.Resource and deleted copy.
  • The internal poller implementation has been refactored.
    • The implementation in internal/pollers/poller.go has been merged into runtime/poller.go with some slight modification.
    • The internal poller types had their methods updated to conform to the runtime.PollingHandler interface.
    • The creation of resume tokens has been refactored so that implementers of runtime.PollingHandler don't need to know about it.
  • NewPipeline() places policies from ClientOptions after policies from PipelineOptions
  • Default User-Agent headers no longer include azcore version information

Don't miss a new azure-sdk-for-go release

NewReleases is sending notifications on new releases.