0dbaa1bc5d
fix(classes.doc (convertFilterForMongoDb)): Improve filter conversion: handle logical operators, merge operator objects, add nested filter tests and docs, and fix test script
2025-08-18 20:24:16 +00:00
bf66209d3e
feat: Enhance type safety for MongoDB filter conditions by introducing helper types for $in and $nin values
2025-08-18 11:42:41 +00:00
cdd1ae2c9b
feat: Add comprehensive query filters guide and enhance type safety for MongoDB queries
...
- Introduced a detailed guide on query filters in the README, covering basic filtering, comparison operators, array operators, logical operators, element operators, and advanced filtering patterns.
- Implemented a type-safe filtering system in `classes.doc.ts` with `MongoFilterCondition` and `MongoFilter` types to support MongoDB operators while maintaining nested type safety.
- Enhanced error handling for invalid operators and conditions in the filtering logic.
- Added extensive tests for various filtering scenarios, including basic, comparison, array, logical, and complex filters, ensuring robust functionality and performance.
- Implemented security measures to prevent the use of dangerous operators like `$where` and validate operator usage.
2025-08-18 11:29:15 +00:00
e58c0fd215
fix(core): Improve error handling and logging; enhance search query sanitization; update dependency versions and documentation
2025-08-12 11:25:42 +00:00
5cb043009c
feat(watcher): Enhance change stream watchers with buffering and EventEmitter support; update dependency versions
2025-04-25 09:35:51 +00:00
43f9033ccc
fix(cursor): Improve cursor usage documentation and refactor getCursor API to support native cursor modifiers
2025-04-24 11:34:49 +00:00
efc107907c
feat(svDb): Enhance svDb decorator to support custom serialization and deserialization options
2025-04-24 11:08:19 +00:00
3ae2a7fcf5
fix(db operations): Update transaction API to consistently pass optional session parameters across database operations
2025-04-23 17:28:49 +00:00
f5d5e20a97
feat(doc): Implement support for beforeSave, afterSave, beforeDelete, and afterDelete lifecycle hooks in document save and delete operations to allow custom logic execution during these critical moments.
2025-04-23 09:03:15 +00:00
e2dc094afd
fix(search): Improve search query parsing for implicit AND queries by preserving quoted substrings and better handling free terms, quoted phrases, and field:value tokens.
2025-04-22 20:42:11 +00:00
490524516e
feat(search): Improve search query handling and update documentation
2025-04-22 20:34:23 +00:00
9c6d6d9f2c
fix(search): Fix handling of quoted wildcard patterns in field-specific search queries and add tests for location-based wildcard phrase searches
2025-04-22 20:09:21 +00:00
2bf923b4f1
fix(search): Improve implicit AND logic for mixed free term and field queries in search and enhance wildcard field handling.
2025-04-22 19:37:50 +00:00
436311ab06
feat(doc/search): Enhance search functionality with filter and validate options for advanced query control
2025-04-22 19:13:17 +00:00
6c50bd23ec
fix(search): Implement implicit AND logic for mixed simple term and field:value queries in search
2025-04-22 18:36:47 +00:00
d0e769622e
fix(doc): Refactor searchable fields API and improve collection registration.
2025-04-21 16:35:29 +00:00
23b499b3a8
feat(search): Improve search functionality: update documentation, refine Lucene query transformation, and add advanced search tests
2025-04-21 15:27:55 +00:00
b5a9449d5e
feat(collections/search): Improve text index creation and search fallback mechanisms in collections and document search methods
2025-04-18 11:25:39 +00:00
de8736e99e
fix(classes.doc.ts): Ensure collection initialization before creating a cursor in getCursorExtended
2025-04-14 18:13:10 +00:00
0bfebaf5b9
fix(cursor, doc): Add explicit return types and casts to SmartdataDbCursor methods and update getCursorExtended signature in SmartDataDbDoc.
2025-04-14 18:06:29 +00:00
ab251858ba
feat(SmartDataDbDoc): Add extended cursor method getCursorExtended for flexible cursor modifications
2025-04-14 17:49:07 +00:00
ed1eecbab8
feat(indexing): Add support for regular index creation in documents and collections
2025-04-07 16:47:16 +00:00
9426a21a2a
fix(ci & formatting): Minor fixes: update CI workflow image and npmci package references, adjust package.json and readme URLs, and apply consistent code formatting.
2025-04-06 18:18:39 +00:00
cad2decf59
feat(search): Enhance search functionality with robust Lucene query transformation and reliable fallback mechanisms
2025-04-06 18:14:46 +00:00
408b2cce4a
feat(core): introduced lucene style search
2025-04-06 13:49:56 +00:00