This repository was archived by the owner on Jun 22, 2021. It is now read-only.
Tags: js-entity-repos/core
Tags
feat: Adds support for loading new results. (#13) BREAKING CHANGE: Removes `PaginationFilterError`. BREAKING CHANGE: Removes `createEndCursorResult`. BREAKING CHANGE: Changes `createCursorFromEntity` params. BREAKING CHANGE: Changes `createGetEntitiesResult` return value. BREAKING CHANGE: Removes `end` from `Cursor`. BREAKING CHANGE: Changes the return type in the signature of `getEntities`. BREAKING CHANGE: Renames `previousCursor` to `backwardCursor` in `getEntities` result. BREAKING CHANGE: Renames `nextCursor` to `forwardCursor` in `getEntities` result.
refactor: Changes pagination and sorting constants to improve readabi… …lity. (#8) BREAKING CHANGE: In pagination `forward` was renamed to `direction`. BREAKING CHANGE: To paginate forward use `'forward'` in `pagination.direction` instead of `true` in `pagination.forward`. Use `import { forward } from '@js-entity-repos/core/dist/types/PaginationDirection'`. BREAKING CHANGE: To paginate backward use `'backward'` in `pagination.direction` instead of `false` in `pagination.forward`. Use `import { backward } from '@js-entity-repos/core/dist/types/PaginationDirection'`. BREAKING CHANGE: To sort in ascending order use `'asc'` in `sort` instead of `true`. Use `import { asc } from '@js-entity-repos/core/dist/types/SortOrder'`. BREAKING CHANGE: To sort in descending order use `'desc'` in `sort` instead of `false`. Use `import { desc } from '@js-entity-repos/core/dist/types/SortOrder'`.
feat: Adds filter to entity functions. (#2) BREAKING CHANGE: The `filter`, `sort`, and `paginate` options are now optional. BREAKING CHANGE: The `upsertEntity` function has been removed due to filter issues. BREAKING CHANGE: The `overwriteEntity` function was renamed to `replaceEntity`.
PreviousNext