Skip to content

Latest commit

 

History

History
174 lines (80 loc) · 8.38 KB

CHANGELOG.md

File metadata and controls

174 lines (80 loc) · 8.38 KB

8.1.3 (2023-02-14)

Bug Fixes

  • bump mongodb-memory-server dependency (0bb0e3d)
  • regenerate package-lock.json (659ec34)

8.1.2 (2022-08-26)

Bug Fixes

  • use the transpiled version in node 12 (a705377)

8.1.1 (2022-08-26)

Bug Fixes

  • properly page through undefs and nulls (0eb28e7)

8.1.0 (2022-08-25)

Features

8.0.1 (2022-08-24)

Bug Fixes

  • remove uses of the spread operator (7e8a8c9)

8.0.0 (2022-08-24)

⚠ BREAKING CHANGES

  • functional fixes and possible performance changes in aggregate.

Features

7.8.0 (2022-08-23)

Features

  • add a sortCaseInsensitive option to find and aggregate (#323) (f4543f6)

Bug Fixes

  • improve documentation and skip commit (e33a493)

7.7.0 (2022-08-16)

Features

  • allow collation as arg on find and aggregate (cdfcfcb)
  • turn global collation off for single query (c2ff6da)

Bug Fixes

7.6.1 (2021-11-18)

Bug Fixes

  • return _id when paginatedField is not set (1a056d7), closes #309

7.6.0 (2021-08-26)

Features

  • add support for aggregation hints (b90acd4)

7.5.0 (2021-08-26)

Features

  • extract/expose a function to encode pagination tokens (04dc7fa)

Bug Fixes

  • only export the function we need (8f80382)

7.4.0 (2021-03-08)

Features

  • mongoose-plugin: add search function (0efd73c)

Bug Fixes

  • skip bad commit message (4c85357)

7.3.1 (2020-08-10)

Bug Fixes

  • bson: fixes regression where string _ids were no longer supported (1487195)

7.3.0 (2020-05-06)

Features

  • find: add optional hint parameter for the cursor (17616da)

7.2.1 (2020-05-06)

Bug Fixes

Changelog

  • 7.2.0 Add support for COLLATION configuration parameter.

  • 7.1.0 Add support for aggregate.

  • 7.0.1 Update base64-url to fix security issue (#41 - thanks @pwiebe).

  • 7.0.0 Add findWithReq overrideFields support. Breaking: now throws errors on unusable fields/overrideFields, so check your inputs. Also changes our intersection mechanism, so it could cause backwards-incompatible changes to fields resolution. If causes unexpected backwards-incompatible changes, please file an issue!

  • 6.3.0 Can be used as a Mongoose plugin

  • 6.2.0 Added support for 'after' and 'before' parameters - thanks @lirbank

  • 6.1.0 Added support for native mongodb driver (#24 - thanks @lirbank)

  • 6.0.1 Fix issue where calling find with a paginated field that has dot notation e.g. start.dateTime produces an invalid next token.

  • 6.0.0 Breaking API change: mongo-cursor-pagination requires a Promise enabled mongodb instance from mongoist and returns Promises from find, findWithReq, and search rather than handling callbacks. Note: Although the library now uses async/await, it is still useable in node >= 6.9.0.

  • 5.0.0 Now 50 results are returned by default, and up to 300 results can be returned if the limit parameter is used. These can be overridden by setting mongoPaging.config.DEFAULT_LIMIT and mongoPaging.config.MAX_LIMIT respectively.

  • 4.1.1 Fixed bug that would overwrite $or in queries passed in.

  • 4.1.0 Adds sortAscending option to sort by the paginatedField ascending. Defaults to false (existing behavior).

  • 4.0.0 Breaking API change: next and previous attributes are now always returned with every response (in case the client wants to poll for new changes). New attributes hasPrevious and hasNext should now be used know if there are more results in the previous or next page. Before the change, next and previously could not be replied upon to know if there were more pages.

  • 3.1.1 Don't use let for backwards compatibility.

  • 3.1.0 findInReq() now accepts dot notation for fields. So you can pass ?fields=users.userId to only turn the userId property for users in the response.

  • 3.0.1 Fixed bug where the _id field was always returned when a paginatedField was used.

  • 3.0.0 Breaking API change: find() no longer accepts a string for limit. Added findWithReq.

  • 2.0.0 Changed API to so you now set global config on the config object instead of the root export itself (e.g. require('mongo-cursor-pagination').config.MAX_LIMIT = 100). The default MAX_LIMIT is now a more reasonable 25 instead of 100. Added search(). Fixed edge case where pages will be incorrect if paginatedField has duplicate values.

  • 1.1.0 Add MAX_LIMIT global setting to clamp

  • 1.0.0 Initial release