Releases: trufflesecurity/go-bitbucket
Releases · trufflesecurity/go-bitbucket
v1.0.0
Breaking Changes
- Constructor signatures changed: All client constructors (
NewBasicAuth,NewOAuthbearerToken,NewOAuthClientCredentials, etc.) now return(*Client, error)instead of*Client. Callers must handle the error. NewOAuthWithCodeandNewOAuthWithRefreshTokennow return three values:(*Client, string, error).log.Fatalremoved: Alllog.Fatalcalls in constructors have been replaced with returned errors, so the library no longer terminates the calling process on failure.
Fixes
- Workspace listing migrated from deprecated
GET /workspacestoGET /user/workspaces. - Workspace response decoding handles the
workspace_accessenvelope from the new endpoint.
Additions
- Custom CA certificate support via new constructor variants (
NewBasicAuthWithCaCert,NewOAuthbearerTokenWithCaCert, etc.). - Base URL constructor variants (
NewBasicAuthWithBaseUrlStr,NewOAuthbearerTokenWithBaseUrlStr, etc.). PullRequests.List()method added (Gets()kept as backward-compatible alias).PullRequestsMergeStrategytype for merge strategy options.GetPipelineVariableandUpdatePipelineVariablemethods.
What's Changed
- Fix deprecated GET /2.0/workspaces endpoint by @mustansir14 in #1
New Contributors
- @mustansir14 made their first contribution in #1
Full Changelog: https://github.com/trufflesecurity/go-bitbucket/commits/v1.0.0