Commit d73c0e4
feat: add Geospatial, DateTime operators, update MongoDB Operators, Playground Enhancements and Testing (#56)
* feat: introduce array OR syntax for filter expressions
* feat: add visual debugging capabilities with filterDebug
* feat: enhance filter functionality with new guides and options
* feat: add re-check step to CI workflow for improved validation
* chore: add interactive playground documentation
* feat: add Node.js integration documentation for data filtering and backend processing
* 5.5.3
* refactor: add checks to publish scripts for improved reliability
* refactor: enhance pre-push script with additional verification step
* refactor: add type tests to pre-push checks for improved validation
* Create techstack.yml
* Create techstack.md
* chore: bump version to 5.5.0 [skip ci]
* fix: update branch references from 'prod' and 'main' to 'master' in workflows
* chore: bump package version
* 5.5.1
* fix: update vercel configuration for deployment and security headers
* Update npm-publish-manual.yml
* feat: add Vercel Analytics integration and update test expectations for filter results
* chore: remove vercel configuration file
* feat: add composables for code analysis, editor, debounce, and filter builder
- Implemented `useCodeAnalysis` for extracting fields and suggesting operators based on code input.
- Created `useCodeEditor` for handling code highlighting and execution with mock console support.
- Added `useDebouncedExecute` for debouncing function calls.
- Developed `useEditorResize` for auto-resizing text areas and synchronizing scroll.
- Introduced `useFilterBuilder` for managing filter rules and generating MongoDB-style expressions.
- Added sample datasets and examples for demonstration purposes.
* Delete outdated documentation files and features related to backend and nested object support; streamline frontend framework integration guide for @mcabreradev/filter with improved examples and performance optimizations.
* chore: update changelog for v5.5.1 release; document new features, fixes, and performance improvements
* chore: update roadmap for v5.5.1 release; reflect recent changes and improvements in features, stability, and performance
* 5.5.2
* refactor: update type expectations in tests to use correct array types instead of ChainableArray
* 5.5.3
* refactor: add checks to publish scripts for improved reliability
* refactor: enhance pre-push script with additional verification step
* refactor: add type tests to pre-push checks for improved validation
* docs: add CLAUDE.md for project guidance and development commands
* feat: add initial settings.local.json for permission configuration
* feat: add Query Builder API proposal for improved query syntax and type safety
* feat: add geospatial operators for location-based filtering
- Introduced three new geospatial operators: $near, $geoBox, and $geoPolygon.
- Implemented distance calculation using spherical law of cosines.
- Added coordinate validation utilities for geospatial queries.
- Enhanced documentation with examples for new operators.
- Updated changelog to reflect new features and improvements.
- Added comprehensive tests for geospatial functionalities.
- Extend operator options to include object type and additional operators
* feat: add comprehensive tests for geospatial operators and distance calculations
* feat: update permissions in settings.local.json and enhance geospatial tests with utility functions
* test: add comprehensive unit tests for geospatial edge cases
- Add tests for evaluateNear handling points across date line
- Add tests for evaluateGeoBox with full longitude range boxes
- Add tests for evaluateGeoPolygon with star-shaped polygons
- Add tests for filter with $near operator using minDistanceMeters
- Add tests for filter with $geoPolygon for complex polygon shapes
- All 98 geospatial tests passing
* fix: remove non-null assertion to satisfy linter
* refactor: streamline CI workflow by removing redundant type check, lint, and test steps
* feat(datetime): add datetime operators and utilities
- Implemented $recent, $upcoming, $dayOfWeek, $timeOfDay, $age, $isWeekday, $isWeekend, $isBefore, and $isAfter operators.
- Created utility functions for validating dates, time ranges, day of the week, relative time, and age queries.
- Added tests for all new operators and utilities to ensure correct functionality.
- Integrated datetime operators into the operator processor and updated types accordingly.
* feat: add International Date Line handling and JSDoc documentation
- Add date line crossing support for evaluateGeoBox
- Fix minDistanceMeters check to handle 0 explicitly with !== undefined
- Add comprehensive JSDoc comments to all geospatial operators
- Add 3 new tests for date line crossing boxes (101 tests total)
- Document limitation for polygon date line crossing
- All tests passing with improved edge case coverage
* feat: add International Date Line handling for geospatial operators
- Add date line crossing support in evaluateGeoBox
- Fix minDistanceMeters check to handle 0 explicitly (use !== undefined)
- Add 3 new comprehensive tests for date line crossing scenarios
- All 101 tests passing
* feat: enhance datetime filtering with new operators and examples
* chore: update vitest configuration for improved test coverage and add separate config for documentation tests
- Modified `vitest.config.ts` to include tests from the documentation theme and adjusted coverage settings.
- Added a new `vitest.docs.config.ts` file for running tests in the documentation environment using jsdom.
* feat: add cleanup function to useDebouncedExecute and useEditorResize for better resource management
* fix: remove duplicate imports in Playground.vue
* fix: correct media query styles for horizontal layout in Playground.vue
---------
Co-authored-by: stacksharebot <team@stackshare.io>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 3c31de3 commit d73c0e4
File tree
50 files changed
+10323
-252
lines changed- .claude
- .github/workflows
- .husky
- docs
- .vitepress
- theme
- __tests__
- components
- composables
- data
- guide
- playground
- project
- roadmap
- examples
- src
- constants
- operators
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+10323
-252
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 53 | + | |
| 54 | + | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
0 commit comments