v0.0.20
·
658 commits
to main
since this release
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
}