@r5v/mongoose-paginate 1.0.16 → 1.0.17
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.
- package/README.md +9 -0
- package/dist/README.md +9 -0
- package/dist/package.json +5 -2
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -6,6 +6,11 @@ Simple, Fast, Efficient
|
|
|
6
6
|
|
|
7
7
|
This project was designed to accomodate more than 80% of your daily workflow to remove the overhead of boilerplate code in handling each endpoint and keeping queries and query params simple. We didn't want you to have to learn a new language to use this product
|
|
8
8
|
|
|
9
|
+
## Requirements
|
|
10
|
+
- Node.js >= 20
|
|
11
|
+
- mongoose >= 8.0.0 (peer dependency)
|
|
12
|
+
- Tested with: 8.16.0, 9.1.4
|
|
13
|
+
|
|
9
14
|
## Basic Usage
|
|
10
15
|
|
|
11
16
|
### PagingQuery
|
|
@@ -307,6 +312,10 @@ $ yarn run start
|
|
|
307
312
|
9. Apply pagination (`$skip`, `$limit`) and options
|
|
308
313
|
|
|
309
314
|
|
|
315
|
+
### 1.0.17
|
|
316
|
+
- **Moved mongoose to peerDependencies** - Reduces bundle size for consumers who already have mongoose installed
|
|
317
|
+
- Supports mongoose >= 8.0.0 (tested with 8.16.0 and 9.1.4)
|
|
318
|
+
|
|
310
319
|
### 1.0.15
|
|
311
320
|
- **Re-enabled `removeProtected` option** for `AggregationPagingQuery` (EXPERIMENTAL) - Automatically excludes fields marked with `select: false` in your schema (e.g., passwords, secret keys) from aggregation results. Use with caution and test thoroughly in your environment.
|
|
312
321
|
- Uses refactored `findProtectedPaths` utility which safely traverses schemas without JSON serialization
|
package/dist/README.md
CHANGED
|
@@ -6,6 +6,11 @@ Simple, Fast, Efficient
|
|
|
6
6
|
|
|
7
7
|
This project was designed to accomodate more than 80% of your daily workflow to remove the overhead of boilerplate code in handling each endpoint and keeping queries and query params simple. We didn't want you to have to learn a new language to use this product
|
|
8
8
|
|
|
9
|
+
## Requirements
|
|
10
|
+
- Node.js >= 20
|
|
11
|
+
- mongoose >= 8.0.0 (peer dependency)
|
|
12
|
+
- Tested with: 8.16.0, 9.1.4
|
|
13
|
+
|
|
9
14
|
## Basic Usage
|
|
10
15
|
|
|
11
16
|
### PagingQuery
|
|
@@ -307,6 +312,10 @@ $ yarn run start
|
|
|
307
312
|
9. Apply pagination (`$skip`, `$limit`) and options
|
|
308
313
|
|
|
309
314
|
|
|
315
|
+
### 1.0.17
|
|
316
|
+
- **Moved mongoose to peerDependencies** - Reduces bundle size for consumers who already have mongoose installed
|
|
317
|
+
- Supports mongoose >= 8.0.0 (tested with 8.16.0 and 9.1.4)
|
|
318
|
+
|
|
310
319
|
### 1.0.15
|
|
311
320
|
- **Re-enabled `removeProtected` option** for `AggregationPagingQuery` (EXPERIMENTAL) - Automatically excludes fields marked with `select: false` in your schema (e.g., passwords, secret keys) from aggregation results. Use with caution and test thoroughly in your environment.
|
|
312
321
|
- Uses refactored `findProtectedPaths` utility which safely traverses schemas without JSON serialization
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r5v/mongoose-paginate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -58,13 +58,16 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=20"
|
|
60
60
|
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"mongoose": ">=8.0.0"
|
|
63
|
+
},
|
|
61
64
|
"dependencies": {
|
|
62
|
-
"mongoose": "^8.16.1",
|
|
63
65
|
"qs": "^6.14.0"
|
|
64
66
|
},
|
|
65
67
|
"description": "A lightweight Node.js package that seamlessly bridges RESTful API query parameters to Mongoose operations. Automatically parses and transforms URL query strings into valid Mongoose queries, supporting filtering, sorting, pagination, field selection, and population. Simply pass your Express req.query object and get back a fully configured Mongoose query ready for execution. Perfect for rapidly building consistent, feature-rich APIs without repetitive query parsing logic",
|
|
66
68
|
"devDependencies": {
|
|
67
69
|
"@types/express": "^5.0.3",
|
|
70
|
+
"mongoose": "^9.1.4",
|
|
68
71
|
"@types/jest": "^30.0.0",
|
|
69
72
|
"@types/node": "^24.0.10",
|
|
70
73
|
"concurrently": "^9.2.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r5v/mongoose-paginate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -58,13 +58,16 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=20"
|
|
60
60
|
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"mongoose": ">=8.0.0"
|
|
63
|
+
},
|
|
61
64
|
"dependencies": {
|
|
62
|
-
"mongoose": "^8.16.1",
|
|
63
65
|
"qs": "^6.14.0"
|
|
64
66
|
},
|
|
65
67
|
"description": "A lightweight Node.js package that seamlessly bridges RESTful API query parameters to Mongoose operations. Automatically parses and transforms URL query strings into valid Mongoose queries, supporting filtering, sorting, pagination, field selection, and population. Simply pass your Express req.query object and get back a fully configured Mongoose query ready for execution. Perfect for rapidly building consistent, feature-rich APIs without repetitive query parsing logic",
|
|
66
68
|
"devDependencies": {
|
|
67
69
|
"@types/express": "^5.0.3",
|
|
70
|
+
"mongoose": "^9.1.4",
|
|
68
71
|
"@types/jest": "^30.0.0",
|
|
69
72
|
"@types/node": "^24.0.10",
|
|
70
73
|
"concurrently": "^9.2.0",
|