Skip to content

Releases: 1Password/onepassword-sdk-js

Release 0.1.7

04 Feb 15:45
v0.1.7
4bbeeb0
Compare
Choose a tag to compare

1Password JavaScript SDK v0.1.7

IMPROVED:

  • The SDK now returns an error with a custom type when it hits the rate limit of the 1Password servers.

FIXED:

  • Using an SDK client in a long-running process no longer causes 401 server responses.

Release 0.1.6

09 Jan 17:31
v0.1.6
9bda47a
Compare
Choose a tag to compare

NEW

  • Support for item sharing: You can now create an item sharing link via the 1Password SDKs using the new client.items.shares API.
  • Support for item archiving: You can now move items to the archive with the SDKs, using the new client.items.archive(vault_uuid, item_uuid) function.

IMPROVED

  • Support for item notes: You can now read, create and edit items with a notes field, accessing it via item.notes.
  • Support for SSH key attributes in secret references: You can now retrieve an SSH key's public key, key type and fingerprint with client.secrets.resolve.
  • Support for additional field types: You can now read, create and edit items with Email (email addresses) and Reference (ID references to other 1Password items) type fields.

FIXED

  • Improved field matching logic for secret references: Retrieving a field from the item's default field section is now possible even if there is an identically named field in one of the item's named sections.

Release 0.1.5

03 Dec 16:27
v0.1.5
c15359e
Compare
Choose a tag to compare

Version 0.1.5 of the 1Password Javascript SDK brings:

  • Support for generating passwords. You can now generate random, PIN, and memorable passwords using the sdk.Secrets.generatePassword function.
  • Support for item subtitles. Creating and editing an item now sets the subtitle correctly, which is visible in the item preview in all client apps.
  • Support for the Credit Card Number field type. You can now retrieve, create, and edit items containing credit card numbers.

Release 0.1.4

20 Nov 17:34
v0.1.4
89b9701
Compare
Choose a tag to compare

The v0.1.4 release of the Javascript SDK brings:

  • Support for validating secret references. You can now check that a secret reference is formatted correctly without having to resolve it or even authenticate, using the 'ValidateSecretReference' function.

Release 0.1.3

14 Oct 16:03
v0.1.3
7ef4b3c
Compare
Choose a tag to compare

The v0.1.3 release of the Javascript SDK brings:

  • Support for item websites. You can now create, get, and edit websites for autofill within your 1Password items using item CRUD functions.

Release 0.1.2

09 Oct 13:08
v0.1.2
773d6ba
Compare
Choose a tag to compare

The v0.1.2 release of the Javascript SDK brings:

  • Support for item tags. You can now create, get, and edit tags within your 1Password items using item CRUD functions.
  • Support for fetching one-time password codes using secret references. You can now fetch your TOTP code with the secrets.resolve function, using a secret reference for the TOTP field in your item. For example: op://vault/item/field?=attribute=totp
  • Item creation now only requires specifying the vault ID, item category, and item title.

Release v0.1.1

08 Aug 12:25
v0.1.1
5d43d0a
Compare
Choose a tag to compare

This is the v0 release of the 1Password JavaScript SDK.

The 1Password JavaScript SDK allows you to build secrets management integrations that can programmatically access secrets stored in 1Password. With this SDK, you can:

Release v0.1.0-beta.16

06 Aug 16:16
v0.1.0-beta.16
05a5c1d
Compare
Choose a tag to compare
Pre-release

In this release:

  • breaking change: to follow conventions, the 'vaultId', 'sectionId', 'fieldType' and 'errorMessage' fields are now camel cased
  • support for listing items and vaults is introduced
  • a bug where concurrent item updates could lead to unexpected overwrites is fixed
  • a bug where the SDK was priorly not working with service account tokens generated by the 1Password CLI is fixed
  • a bug where the items created by the SDK priorly did not have the password strength set correctly is fixed

Note: This release contains breaking changes

vault_id becomes vaultId both in the Item type returned by items.get(...) and in the ItemCreateParams passed to items.put(...)
ItemField.section_id becomes ItemField.sectionId
ItemField.field_type becomes ItemField.fieldType
OtpFieldDetails.error_message becomes OtpFieldDetails.errorMessage

Release v0.1.0-beta.14

01 Aug 10:36
v0.1.0-beta.14
b7ec4e7
Compare
Choose a tag to compare
Pre-release

This release includes:

  • Support for reading and writing OTP field information such as the TOTP code and seed, through the Item API.
  • The Update operation is renamed to Put to create more realistic expectation with regard to the effect of the operation.
  • The item creation operation now takes as input ItemCreateParams.
  • Support for a few more field types: Phone, Url, CreditCardType.

NOTE This release contains breaking changes:

Wherever you were using

let updatedItem = await client.items.update(item);

you must now use

let updatedItem = await client.items.put(item);

And, wherever you were using:

let item : Item = {
    title: "My Item",
    category: sdk.ItemCategory.Login,
    vault_id: "",
    fields: [],
    sections: [],
  }
  let createdItem = await client.items.create(item);

you must now use

let item : ItemCreateParams = {
    title: "My Item",
    category: sdk.ItemCategory.Login,
    vault_id: "",
    fields: [],
    sections: [],
  }
  let createdItem = await client.items.create(item);

Release v0.1.0-beta.11

19 Jun 08:26
v0.1.0-beta.11
7a1e98b
Compare
Choose a tag to compare
Pre-release

This release removes some unnecessary code comments from the codebase.