Skip to content

Releases: junobuild/juno-js

v0.0.20

12 May 15:26
Compare
Choose a tag to compare

Breaking Changes

The library @junobuild/core receive following breaking changes to improve listing documents and assets.

  • the matcher parameters of listDocs and listAssets has been enhanced to support the new optional field description
export interface ListParams {
  matcher?: ListMatcher; // <---- used to be a `string`
  paginate?: ListPaginate;
  order?: ListOrder;
  owner?: ListOwner;
}

export interface ListMatcher {
  key?: string;
  description?: string;
}
  • the results provided by listDocs and listAssets newly contain information about the pagination and the information length has been renamed to items_length
export interface ListResults<T> {
  items: T[];
  items_length: bigint; // <----- renamed used to be called `length`
  items_page?: bigint; // <---- new
  matches_length: bigint;
  matches_pages?: bigint; // <------ new
}

v0.0.19

07 May 07:43
Compare
Choose a tag to compare

Features

  • handle decoding invalid data and fallback to undefined as typed data. This is useful for example if we JavaScript, the definition are not met and some invalid data like data: undefined are persisted on chain

Build

  • bump dev dependencies

v0.0.18

01 May 14:49
Compare
Choose a tag to compare

New

  • new fork @junobuild/ledger to provide a light AccountIdentifier to Juno's console

Features

  • remove unused auth-client dependency from @junobuild/admin

Build

  • publish declarations with bundle to npm as well

v0.0.17

28 Apr 06:01
8cdde74
Compare
Choose a tag to compare

Fix

  • after sign-out use anonymous identity for calls

Build

  • bump dev dependencies

v0.0.16

23 Apr 18:25
Compare
Choose a tag to compare

Features

  • add functions to set controllers to satellites and mission controls in admin library

Build

  • run CI checks on PRs only

v0.0.15

20 Apr 16:46
Compare
Choose a tag to compare

Features

  • improve error msg if no identity

Build

  • bump dependencies
  • add CI checks including size-imit
  • publish CLI to npmjs on release with a GitHub actions
  • provide provenance alongside published information

v0.0.14

03 Apr 19:56
Compare
Choose a tag to compare

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

v0.0.13

23 Mar 18:27
Compare
Choose a tag to compare

Features

  • add list and set rules to admin

v0.0.12

19 Mar 20:08
Compare
Choose a tag to compare

Features

  • add a backwards compatibility workaround to upgrade satellites with previous list_controllers

v0.0.11

19 Mar 19:12
Compare
Choose a tag to compare

Breaking Changes

  • admin package updated for new controllers structure