UNPKG

objection-cursor

Version:

Cursor based pagination plugin for Objection.js

366 lines (150 loc) 9.65 kB
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ### [1.2.6](https://github.com/olavim/objection-cursor/compare/v1.2.6-alpha.0...v1.2.6) (2022-05-24) ### [1.2.6-alpha.0](https://github.com/olavim/objection-cursor/compare/v1.2.5...v1.2.6-alpha.0) (2022-05-24) ### Bug Fixes * objection v3 and knex v1 compatibility ([53004cb](https://github.com/olavim/objection-cursor/commit/53004cbd7fb5d3aa65e663e098cd1553fcc3db08)) ### [1.2.5](https://github.com/olavim/objection-cursor/compare/v1.2.4...v1.2.5) (2022-01-19) ### Bug Fixes * correctly build keyset for falsy values ([dbb4b15](https://github.com/olavim/objection-cursor/commit/dbb4b15d4dcfd516bc47a79619f86b3863fb7e3c)) <a name="1.2.4"></a> ## [1.2.4](https://github.com/olavim/objection-cursor/compare/v1.2.3...v1.2.4) (2020-07-02) ### Bug Fixes * Dont use `mergeContext` on objection v2, to avoid deprecationg warning (fixes olavim/objection-cursor[#21](https://github.com/olavim/objection-cursor/issues/21)) ([883674f](https://github.com/olavim/objection-cursor/commit/883674f)) <a name="1.2.3"></a> ## [1.2.3](https://github.com/olavim/objection-cursor/compare/v1.2.2...v1.2.3) (2020-05-20) ### Bug Fixes * prop access for schema+table+col refs ([ad5dfa5](https://github.com/olavim/objection-cursor/commit/ad5dfa5)) <a name="1.2.2"></a> ## [1.2.2](https://github.com/olavim/objection-cursor/compare/v1.2.1...v1.2.2) (2020-04-03) ### Bug Fixes * **serializer:** handle custom formatters properly ([8cb45d6](https://github.com/olavim/objection-cursor/commit/8cb45d6)) <a name="1.2.1"></a> ## [1.2.1](https://github.com/olavim/objection-cursor/compare/v1.2.0...v1.2.1) (2020-03-17) <a name="1.2.0"></a> # [1.2.0](https://github.com/olavim/objection-cursor/compare/v1.2.0-alpha.2...v1.2.0) (2020-03-12) <a name="1.2.0-alpha.2"></a> # [1.2.0-alpha.2](https://github.com/olavim/objection-cursor/compare/v1.2.0-alpha.1...v1.2.0-alpha.2) (2020-03-06) ### Bug Fixes * call native orderBy properly ([b3840a9](https://github.com/olavim/objection-cursor/commit/b3840a9)) <a name="1.2.0-alpha.1"></a> # [1.2.0-alpha.1](https://github.com/olavim/objection-cursor/compare/v1.2.0-alpha.0...v1.2.0-alpha.1) (2020-03-05) ### Bug Fixes * error when results option is false ([9437213](https://github.com/olavim/objection-cursor/commit/9437213)) <a name="1.2.0-alpha.0"></a> # [1.2.0-alpha.0](https://github.com/olavim/objection-cursor/compare/v1.1.0...v1.2.0-alpha.0) (2020-03-05) ### Features * nodes property contains results with row-specific cursors ([45f7d8c](https://github.com/olavim/objection-cursor/commit/45f7d8c)) <a name="1.1.0"></a> # [1.1.0](https://github.com/olavim/objection-cursor/compare/v1.0.1...v1.1.0) (2020-02-19) ### Bug Fixes * objection v2 support ([9b4b286](https://github.com/olavim/objection-cursor/commit/9b4b286)) * **pkg:** fix alpha release script ([70d2cdc](https://github.com/olavim/objection-cursor/commit/70d2cdc)) * **readme:** wrong orderByExplicit description ([5663ee6](https://github.com/olavim/objection-cursor/commit/5663ee6)) ### Features * orderByExplicit querybuilding method ([78e23ef](https://github.com/olavim/objection-cursor/commit/78e23ef)) <a name="1.0.2"></a> ## [1.0.2](https://github.com/olavim/objection-cursor/compare/v1.0.2-alpha.0...v1.0.2) (2020-02-02) <a name="1.0.2-alpha.0"></a> ## [1.0.2-alpha.0](https://github.com/olavim/objection-cursor/compare/v1.0.1...v1.0.2-alpha.0) (2020-02-02) ### Bug Fixes * objection v2 support ([1a038f3](https://github.com/olavim/objection-cursor/commit/1a038f3)) <a name="1.0.1"></a> ## [1.0.1](https://github.com/olavim/objection-cursor/compare/v1.0.1-alpha.0...v1.0.1) (2020-02-02) <a name="1.0.1-alpha.0"></a> ## [1.0.1-alpha.0](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.5...v1.0.1-alpha.0) (2020-02-02) ### Bug Fixes * resultSize with conflicting limits ([ce1ad67](https://github.com/olavim/objection-cursor/commit/ce1ad67)) <a name="1.0.0"></a> # [1.0.0](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.5...v1.0.0) (2019-08-23) <a name="1.0.0-alpha.5"></a> # [1.0.0-alpha.5](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2019-08-23) <a name="1.0.0-alpha.4"></a> # [1.0.0-alpha.4](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2019-08-23) ### Bug Fixes * no error when unordered ([38feb77](https://github.com/olavim/objection-cursor/commit/38feb77)) <a name="1.0.0-alpha.3"></a> # [1.0.0-alpha.3](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2019-08-17) ### Bug Fixes * serialize empty cursor ([1940817](https://github.com/olavim/objection-cursor/commit/1940817)) <a name="1.0.0-alpha.2"></a> # [1.0.0-alpha.2](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2019-08-16) ### Bug Fixes * datetime comparisons ([e2cbfe0](https://github.com/olavim/objection-cursor/commit/e2cbfe0)) <a name="1.0.0-alpha.1"></a> # [1.0.0-alpha.1](https://github.com/olavim/objection-cursor/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2019-08-10) ### Features * **pageInfo:** remainingBefore, remainingAfter, hasMore ([2861f2c](https://github.com/olavim/objection-cursor/commit/2861f2c)) <a name="1.0.0-alpha.0"></a> # [1.0.0-alpha.0](https://github.com/olavim/objection-cursor/compare/v0.5.4...v1.0.0-alpha.0) (2018-09-19) <a name="0.5.4"></a> ## [0.5.4](https://github.com/olavim/objection-cursor/compare/v0.5.3...v0.5.4) (2018-09-19) ### Bug Fixes * do not use objection helpers ([f9713c2](https://github.com/olavim/objection-cursor/commit/f9713c2)) <a name="0.5.3"></a> ## [0.5.3](https://github.com/olavim/objection-cursor/compare/v0.5.2...v0.5.3) (2018-09-19) <a name="0.5.2"></a> ## [0.5.2](https://github.com/olavim/objection-cursor/compare/v0.5.1...v0.5.2) (2018-09-18) ### Bug Fixes * stringify builders in objection v1 ([6377a3e](https://github.com/olavim/objection-cursor/commit/6377a3e)) <a name="0.5.1"></a> ## [0.5.1](https://github.com/olavim/objection-cursor/compare/v0.5.0...v0.5.1) (2018-09-18) ### Bug Fixes * coalesce ([1b28179](https://github.com/olavim/objection-cursor/commit/1b28179)) <a name="0.5.0"></a> # [0.5.0](https://github.com/olavim/objection-cursor/compare/v0.4.0...v0.5.0) (2018-07-17) ### Features * orderByCoalesce ([31b6956](https://github.com/olavim/objection-cursor/commit/31b6956)) <a name="0.4.0"></a> # [0.4.0](https://github.com/olavim/objection-cursor/compare/v0.3.1...v0.4.0) (2018-07-17) ### Features * order by raw ([a7cd802](https://github.com/olavim/objection-cursor/commit/a7cd802)) <a name="0.3.1"></a> ## [0.3.1](https://github.com/olavim/objection-cursor/compare/v0.3.0...v0.3.1) (2018-07-16) ### Bug Fixes * refs with column mappers ([a1388e4](https://github.com/olavim/objection-cursor/commit/a1388e4)) <a name="0.3.0"></a> # [0.3.0](https://github.com/olavim/objection-cursor/compare/v0.2.8...v0.3.0) (2018-07-16) ### Features * support ordering by refs ([8e812c6](https://github.com/olavim/objection-cursor/commit/8e812c6)) <a name="0.2.8"></a> ## [0.2.8](https://github.com/olavim/objection-cursor/compare/v0.2.7...v0.2.8) (2018-07-09) ### Bug Fixes * support [table].[column] format in orderBy ([bbf2080](https://github.com/olavim/objection-cursor/commit/bbf2080)) <a name="0.2.7"></a> ## [0.2.7](https://github.com/olavim/objection-cursor/compare/v0.2.6...v0.2.7) (2018-07-07) ### Bug Fixes * do not use runAfter builder for remaining count ([55d31ce](https://github.com/olavim/objection-cursor/commit/55d31ce)) <a name="0.2.6"></a> ## [0.2.6](https://github.com/olavim/objection-cursor/compare/v0.2.5...v0.2.6) (2018-07-06) ### Bug Fixes * return postgres total as number ([c139579](https://github.com/olavim/objection-cursor/commit/c139579)) <a name="0.2.5"></a> ## [0.2.5](https://github.com/olavim/objection-cursor/compare/v0.2.4...v0.2.5) (2018-07-06) <a name="0.2.4"></a> ## [0.2.4](https://github.com/olavim/objection-cursor/compare/v0.2.3...v0.2.4) (2018-07-06) <a name="0.2.3"></a> ## [0.2.3](https://github.com/olavim/objection-cursor/compare/v0.2.2...v0.2.3) (2018-07-05) ### Bug Fixes * null comparisons ([3cd5b47](https://github.com/olavim/objection-cursor/commit/3cd5b47)) <a name="0.2.2"></a> ## [0.2.2](https://github.com/olavim/objection-cursor/compare/v0.2.1...v0.2.2) (2018-07-05) ### Bug Fixes * support column name mappers ([6ab005e](https://github.com/olavim/objection-cursor/commit/6ab005e)) <a name="0.2.1"></a> ## [0.2.1](https://github.com/olavim/objection-cursor/compare/v0.2.0...v0.2.1) (2018-07-05) <a name="0.2.0"></a> # [0.2.0](https://github.com/olavim/objection-cursor/compare/v0.1.0...v0.2.0) (2018-07-04) ### Features * break cursor into next and previous ([13a737c](https://github.com/olavim/objection-cursor/commit/13a737c)) * options ([bccaf60](https://github.com/olavim/objection-cursor/commit/bccaf60)) <a name="0.1.0"></a> # [0.1.0](https://github.com/olavim/objection-cursor/compare/v0.0.4...v0.1.0) (2018-07-03) ### Features * url-safe cursors ([cceaa82](https://github.com/olavim/objection-cursor/commit/cceaa82)) <a name="0.0.4"></a> ## [0.0.4](https://github.com/olavim/objection-cursor/compare/v0.0.2...v0.0.4) (2018-07-03) <a name="0.0.3"></a> ## [0.0.3](https://github.com/olavim/objection-cursor/compare/v0.0.2...v0.0.3) (2018-07-03) <a name="0.0.2"></a> ## 0.0.2 (2018-07-03)