Releases: junobuild/juno-js
v0.0.20
Breaking Changes
The library @junobuild/core
receive following breaking changes to improve listing documents and assets.
- the
matcher
parameters oflistDocs
andlistAssets
has been enhanced to support the new optional fielddescription
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
andlistAssets
newly contain information about the pagination and the informationlength
has been renamed toitems_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
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 likedata: undefined
are persisted on chain
Build
- bump dev dependencies
v0.0.18
New
- new fork
@junobuild/ledger
to provide a lightAccountIdentifier
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
Fix
- after sign-out use anonymous identity for calls
Build
- bump dev dependencies
v0.0.16
Features
- add functions to set controllers to satellites and mission controls in
admin
library
Build
- run CI checks on PRs only
v0.0.15
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
Breaking Changes
-
internetcomputer.org
is now used as the default domain for II sign-in. If you wish to continue to useic0.app
, the newsignIn
function offers adomain
option (see documentation) -
authSubscribe
used to provide a user object containg a principal. This information has been removed as replaced by the newowner
information (see below).
Features
- support for NFID (see documentation)
- documents and assets (
get
orlist
) are now returned with a textual information about theowner
e.g.
export interface Doc<D> {
key: string;
data: D;
owner?: string;
created_at?: bigint;
updated_at?: bigint;
}
-
the
user
provided by theauthSubscribe
feature contains aprovider
information which can be either Internet Identity, NFID orundefined
. 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
Features
- add list and set rules to
admin
v0.0.12
Features
- add a backwards compatibility workaround to upgrade satellites with previous
list_controllers
v0.0.11
Breaking Changes
admin
package updated for new controllers structure