Skip to content

v0.0.20

Compare
Choose a tag to compare
@peterpeterparker peterpeterparker released this 12 May 15:26
· 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 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
}