@classytic/mongokit 3.3.0 → 3.3.1
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 +2 -2
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
- **Search governance** - Text index guard (throws `400` if no index), allowlisted sort/filter fields, ReDoS protection
|
|
18
18
|
- **Vector search** - MongoDB Atlas `$vectorSearch` with auto-embedding and multimodal support
|
|
19
19
|
- **TypeScript first** - Full type safety with discriminated unions
|
|
20
|
-
- **
|
|
20
|
+
- **700+ passing tests** - Battle-tested and production-ready
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
@@ -1247,7 +1247,7 @@ Extending Repository works exactly the same with Mongoose 8 and 9. The package:
|
|
|
1247
1247
|
- Uses its own event system (not Mongoose middleware)
|
|
1248
1248
|
- Defines its own `FilterQuery` type (unaffected by Mongoose 9 rename)
|
|
1249
1249
|
- Properly gates update pipelines (safe for Mongoose 9's stricter defaults)
|
|
1250
|
-
- All
|
|
1250
|
+
- All 700+ tests pass on Mongoose 9
|
|
1251
1251
|
|
|
1252
1252
|
## License
|
|
1253
1253
|
|
package/dist/index.mjs
CHANGED
|
@@ -237,8 +237,11 @@ var QueryParser = class {
|
|
|
237
237
|
description: "Fields to include/exclude (comma-separated). Prefix with - to exclude. Example: name,email,-password"
|
|
238
238
|
},
|
|
239
239
|
populate: {
|
|
240
|
-
type: "string",
|
|
241
|
-
|
|
240
|
+
oneOf: [{ type: "string" }, {
|
|
241
|
+
type: "object",
|
|
242
|
+
additionalProperties: true
|
|
243
|
+
}],
|
|
244
|
+
description: "Fields to populate/join. Simple: comma-separated string (author,category). Advanced: bracket-notation object (populate[author][select]=name,email)"
|
|
242
245
|
},
|
|
243
246
|
after: {
|
|
244
247
|
type: "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classytic/mongokit",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Production-grade MongoDB repositories with zero dependencies - smart pagination, events, and plugins",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -110,4 +110,4 @@
|
|
|
110
110
|
"typescript": "^5.7.0",
|
|
111
111
|
"vitest": "^3.2.4"
|
|
112
112
|
}
|
|
113
|
-
}
|
|
113
|
+
}
|