Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 24, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/1password/onepassword-sdk-go v0.2.1 -> v0.3.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

1password/onepassword-sdk-go (github.com/1password/onepassword-sdk-go)

v0.3.0: Release 0.3.0

Compare Source

1Password Go SDK v0.3.0

NEW

  • Support for item states: You can now fetch an item's state using the SDK. ItemOverview exposes one of two states: Active or Archived.
    • Active: An item located inside a vault. (Default)
    • Archived: An item that has been moved to the Archive. 1Password doesn't include archived items in search results or suggest them when you fill in apps and browsers. You can keep archived items as long as you'd like.
  • Filtering listed items by state: You can now filter the results of the item list function by item state.

FIXED

  • Deleting Archived Items: The SDK now supports deleting items from the archive.

⚠️ BREAKING CHANGES ⚠️

This release contains breaking changes for two functions in the Go SDK.

Vault listing

  • The function name has changed from ListAll to List. To use this in your code, replace:
vaults, err := client.Vaults().ListAll(context.Background(), vaultID)
// error handling

with:

vaults, err := client.Vaults().List(context.Background(), vaultID)
// error handling
  • The return type of the vault listing function has changed from *Iterator[VaultOverview] to []VaultOverview. To use this in your code, replace:
for {
	vault, err := vaults.Next()
	if errors.Is(err, onepassword.ErrorIteratorDone) {
		break
	} else if err != nil {
		// error handling
	}
	// using the vault overview
}

with:

for _, vault := range vaults {
	// using the vault overview
}

Item listing

  • The function name has changed from ListAll to List. To use this in your code, replace:
overviews, err := client.Items().ListAll(context.Background())
// error handling

with:

overviews, err := client.Items().List(
	context.Background(),
	vaultID,
	onepassword.NewItemListFilterTypeVariantByState(
		&onepassword.ItemListFilterByStateInner{
			Active:   true,
			Archived: true,
		},
	),
)
// error handling
  • The return type of the item listing function has changed from *Iterator[ItemOverview] to []ItemOverview. To use this in your code, replace:
for {
	overview, err := overviews.Next()
	if errors.Is(err, onepassword.ErrorIteratorDone) {
		break
	} else if err != nil {
		// error handling
	}
	// using the item overview
}

with:

for _, overview := range overviews {
	// using the item overview
}

This does not affect any code that's already deployed, and will not take effect in your codebase until you choose to update to version 0.3.0 or later of the 1Password Go SDK.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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-1password-onepassword-sdk-go-0.x branch from 6344834 to 121864f Compare April 24, 2025 10:57
@renovate renovate bot force-pushed the renovate/github.com-1password-onepassword-sdk-go-0.x branch from 121864f to a01433c Compare April 24, 2025 15:13
@renovate renovate bot merged commit 0d5a6fd into main Apr 24, 2025
12 checks passed
@renovate renovate bot deleted the renovate/github.com-1password-onepassword-sdk-go-0.x branch April 24, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant