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
75aeb12e81
fix(lucene adapter and search tests): Improve range query parsing in Lucene adapter and expand search test coverage
2025-04-22 18:24:26 +00:00
969b073939
fix(readme): Update readme to clarify usage of searchable fields retrieval
2025-04-21 17:31:30 +00:00
d0e769622e
fix(doc): Refactor searchable fields API and improve collection registration.
2025-04-21 16:35:29 +00:00
d0cc2a0ed2
feat(ts/classes.lucene.adapter): Expose luceneWildcardToRegex method to allow external usage and enhance regex transformation capabilities.
2025-04-21 15:29:11 +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
6a2a708ea1
fix(documentation): Update search API documentation to replace deprecated searchWithLucene examples with the unified search(query) API and clarify its behavior.
2025-04-18 15:10:03 +00:00
e325b42906
fix(search): Refactor search tests to use unified search API and update text index type casting
2025-04-18 14:56:11 +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
76ae454221
fix(core): Update commit metadata with no functional code changes
2025-04-17 11:47:38 +00:00
0be279e5f5
fix(readme): Improve readme documentation on data models and connection management
2025-04-17 11:21:35 +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
368dc27607
feat(cursor): Add toArray method to SmartdataDbCursor to convert raw MongoDB documents into initialized class instances
2025-04-14 17:58:54 +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
ebaf3e685c
feat(docs): Enhance documentation with updated installation instructions and comprehensive usage examples covering advanced features such as deep queries, automatic indexing, and distributed coordination.
2025-03-10 23:55:44 +00:00
d957e911de
fix(documentation): Remove license badge from README
2025-02-03 14:06:42 +01:00
ac867401de
fix(documentation): Updated project documentation for accuracy and added advanced feature details
2025-02-03 14:03:03 +01:00
0105aa2a18
fix(smartdata.classes.doc): Fix issue with array handling in convertFilterForMongoDb function
2024-09-05 15:28:52 +02:00
ea0d2bb251
fix(smartdata.classes.doc): Fixed issue with convertFilterForMongoDb to handle array operators.
2024-09-05 15:06:35 +02:00
64621dd38f
fix(smartdata.classes.doc): Fix key handling in convertFilterForMongoDb function
2024-09-05 13:45:55 +02:00
b30522c505
fix(core): Fixed issue with handling filter keys containing dots in smartdata.classes.doc.ts
2024-09-05 13:02:27 +02:00
90751002aa
fix(core): update
2024-06-18 20:12:14 +02:00
7ec39e397e
fix(core): update
2024-06-18 20:11:40 +02:00
6d456955d8
fix(core): update
2024-05-31 18:47:48 +02:00
bda9ac8a07
fix(saveableProperties): fix issue where _createdAt and _updatedAt registered saveableProperties for all document types
2024-05-31 18:39:33 +02:00
b6594de18c
fix(core): update
2024-05-31 18:25:51 +02:00
307f0c7277
fix(core): update
2024-04-16 07:47:24 +02:00
552b344914
feat(SmartDataDbDoc): add static .getCount({}) method
2024-04-15 18:34:13 +02:00
73a11370b6
fix(_createdAt/_updatedAt): fields are now ISO format
2024-04-15 14:26:21 +02:00
06776d74c8
fix(core): update
2024-04-14 04:00:56 +02:00
b282f69b35
feat(_createdAt & _updatedAt): adds default _createdAt and _updatedAt fields, fixes #1
2024-04-14 01:26:11 +02:00
30ae641a9c
fix(core): update
2024-04-14 01:24:21 +02:00