@andrew_l/mongo-pagination 0.2.18 → 0.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Mongo Pagination Toolkit
2
2
 
3
- ![license](https://img.shields.io/npm/l/%40andrew_l%2Fmongo-pagination)
4
- ![npm version](https://img.shields.io/npm/v/%40andrew_l%2Fmongo-pagination)
5
- ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40andrew_l%2Fmongo-pagination)
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ ![license][license-src]
6
5
 
7
6
  This package provides an efficient and customizable way to handle pagination for MongoDB and Mongoose queries. It simplifies working with large datasets by enabling cursor pagination, handling sorting, and managing tokens for navigating between pages.
8
7
 
@@ -99,3 +98,9 @@ async function paginateMongoDB() {
99
98
  2. **Token-based Pagination:** Ideal for dynamic datasets.
100
99
  3. **Flexible & Customizable:** Adaptable to your requirements.
101
100
  4. **TypeScript Support:** Minimized errors, better productivity.
101
+
102
+ <!-- Badges -->
103
+
104
+ [npm-version-src]: https://img.shields.io/npm/v/@andrew_l/mongo-pagination?style=flat
105
+ [npm-version-href]: https://npmjs.com/package/@andrew_l/mongo-pagination
106
+ [license-src]: https://img.shields.io/npm/l/@andrew_l/mongo-pagination?style=flat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrew_l/mongo-pagination",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "Manages pagination without relying on traditional offsets.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,8 +47,8 @@
47
47
  "dependencies": {
48
48
  "debug": "^4.3.7",
49
49
  "kareem": "^2.6.3",
50
- "@andrew_l/toolkit": "0.2.18",
51
- "@andrew_l/tl-pack": "0.2.18"
50
+ "@andrew_l/toolkit": "0.2.20",
51
+ "@andrew_l/tl-pack": "0.2.20"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "mongodb": "^5 || ^6",