Skip to content

v0.0.14

Compare
Choose a tag to compare
@peterpeterparker peterpeterparker released this 03 Apr 19:56
· 683 commits to main since this release

Breaking Changes

  • internetcomputer.org is now used as the default domain for II sign-in. If you wish to continue to use ic0.app, the new signIn function offers a domain option (see documentation)

  • authSubscribe used to provide a user object containg a principal. This information has been removed as replaced by the new owner information (see below).

Features

  • support for NFID (see documentation)
  • documents and assets (get or list) are now returned with a textual information about the owner

e.g.

export interface Doc<D> {
  key: string;
  data: D;
  owner?: string;
  created_at?: bigint;
  updated_at?: bigint;
}
  • the user provided by the authSubscribe feature contains a provider information which can be either Internet Identity, NFID or undefined. This is supported for edge cases where the user closes, reopen or refreshes the browser between the brief moment where the authentication is granted by the third party and the call to create the user in the satellite does not happens instantly - i.e. when the information about the selected provider sign-in method get lost. We can improve this in the future if needed.

  • add timestamps to listed assets