Improve validation API
Fixes #977, #781, #1005, #374, #1021, #1016, #1033, #1036
Changes:
- Breaking:
Utils.validateTreereturns array of errors Utils.validateTreenow checks LHS and RHS are completed- Deprecated
Utils.validateAndFixTreeandUtils.checkTree. UseUtils.sanitizeTree().fixedTreeinstead - Fixed validation of date ranges
- Function
validateValueinfieldSettingsconfig can now return object{error, fixedValue}, error can be{key, args}for i18n
Also:
- Added
onInitprop to<Query>. Added 4th argumentactionstoonInitandonChange - Added
optimizeRenderWithInternalstosettings, default isfalse - Updated type
RuleGroupExtProperties
Fixes:
- Fixed import of
select_any_inoperator from JsonLogic - Fixed issue with antd and date/time pickers
- Fixed typedef errors
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| react-awesome-query-builder-examples | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 14, 2024 3:40pm |
| react-awesome-query-builder-sandbox | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 14, 2024 3:40pm |
| react-awesome-query-builder-sandbox-next | ✅ Ready (Inspect) | Visit Preview | May 14, 2024 3:40pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 996d20d7f563c66e49676462d14f2dd1ec060a47:
| Sandbox | Source |
|---|---|
| @react-awesome-query-builder/examples | Configuration |
| @react-awesome-query-builder/sandbox | Configuration |
| @react-awesome-query-builder/sandbox-simple | Configuration |
| @react-awesome-query-builder/sandbox-next | Configuration |
Codecov Report
Attention: Patch coverage is 88.45090% with 167 lines in your changes are missing coverage. Please review.
Project coverage is 82.00%. Comparing base (
d17da01) to head (996d20d).
Additional details and impacted files
@@ Coverage Diff @@
## master #1034 +/- ##
==========================================
+ Coverage 81.74% 82.00% +0.26%
==========================================
Files 187 211 +24
Lines 10059 10577 +518
Branches 1249 1318 +69
==========================================
+ Hits 8223 8674 +451
- Misses 1217 1291 +74
+ Partials 619 612 -7
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.