Skip to content

16.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Jan 14:52
e66e868

@metamask/toprf-secure-backup 1.0.0

Added

  • Add EncAccountDataType enum for categorizing secret data (e.g., PrimarySrp, ImportedSrp, ImportedPrivateKey). (#157)
  • Add updateSecretDataItem and batchUpdateSecretDataItems methods to ToprfSecureBackup to update fields for existing items. (#157)

Changed

  • Breaking: fetchAllSecretDataItems now returns FetchedSecretDataItem[] instead of Uint8Array[], including data, itemId, version, dataType, and createdAt fields. (#157)
  • Breaking: batchAddSecretDataItems parameter secretData changed from Uint8Array[] to { data: Uint8Array, itemId?: string, version?: 'v1' | 'v2', dataType?: EncAccountDataType }[]. (#157)
  • addSecretDataItem now accepts optional itemId, version, and dataType parameters. (#157)