Commit b03f81a
committed
feat: Enhance EmbeddingCache with memory pressure monitoring and proactive eviction
- Added memory pressure monitoring to EmbeddingCache, triggering eviction when memory usage exceeds a specified threshold.
- Introduced MemoryPressureDetected event for monitoring purposes.
- Implemented IDisposable interface for proper resource management.
feat: Improve error sanitization in SemanticSearchDataSource
- Compiled regex patterns with timeout to prevent ReDoS attacks when sanitizing error messages.
- Enhanced security by truncating messages before regex processing to limit excessive computation.
feat: Refactor AutoComplete component initialization and input handling
- Introduced IInputHandler interface for managing input operations, including search text handling and dropdown state.
- Improved service initialization in AutoComplete component to utilize dependency injection for theme management.
feat: Add service collection extensions for AutoComplete
- Created ServiceCollectionExtensions to facilitate the registration of AutoComplete services in the DI container.
feat: Implement display options for AutoComplete component
- Added DisplayOptions and BadgeOptions classes to configure item display and badge behavior in the AutoComplete component.
feat: Introduce theming support with IThemeManager
- Created IThemeManager interface and ThemeManager class for managing theme-related operations and CSS generation.
test: Refactor tests to use AutoCompleteTestBase for common setup
- Updated all test classes to inherit from AutoCompleteTestBase, ensuring consistent service registration for bUnit testing.1 parent d237345 commit b03f81a
21 files changed
Lines changed: 955 additions & 922 deletions
File tree
- src
- EasyAppDev.Blazor.AutoComplete.AI
- EasyAppDev.Blazor.AutoComplete
- Components
- Extensions
- Input
- Options
- Theming
- tests/AutoComplete.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments