@react-querybuilder/material
Advanced tools
Changelog
[v7.6.1] - 2024-08-02
useReactDnD
, useRuleDnD
, useRuleGroupDnD
, and useInlineCombinatorDnD
) are now exported from @react-querybuilder/dnd
.formatQuery
correctly handles values that are lists of numbers when parseNumbers
is true
.Changelog
[v7.6.0] - 2024-07-11
onMoveRule
and onMoveGroup
, called before a rule or group is moved (via drag-and-drop) or shifted. If the result of the callback is false
, the move will be cancelled. If true
, the move will proceed as normal. Alternatively, a full query object can be returned representing the new state if some other modifications were necessary.onAddRule
and onAddGroup
callbacks can now return true
instead of the entire rule/group to allow the addition to proceed as normal.parseSpEL
was not handling the matches
operator correctly when its value was a single character.formatQuery
"elasticsearch" output for "contains" and "doesNotContain" operators.Changelog
[v7.5.2] - 2024-06-27
parseMongoDB
was not handling the $regex
operator correctly when its value was a single character.Changelog
[v7.5.1] - 2024-06-25
useMergedContext
no longer returns values that are not explicitly typed in UseMergedContextProps
.key
is no longer required in the parameter passed to getCompatContextProvider
.dragging
property of the object passed to canDrop
is no longer a stale reference to the rule/group being dragged.Changelog
[v7.5.0] - 2024-06-15
gap
for layout spacing, which means the minimum react-native
version is now 0.71.0
.useQueryBuilder
hook has been reinstated. It does nothing more than call useQueryBuilderSetup
and useQueryBuilderSchema
, which no longer need to be called from separate components.useQueryBuilderQuery
hook to retrieve the full, current query object during the render pass of a custom component. It requires no parameters and should be used in place of the previously recommended hook useQueryBuilderSelector
, which requires a selector function generated with getQuerySelectorById(props.schema.qbId)
. While useQueryBuilderSelector
is not deprecated, it is no longer recommended except in very special circumstances.useQueryBuilderSelector
no longer returns undefined
during the first render pass (and neither does the new hook useQueryBuilderQuery
).parse*
methods properly escape commas in string values for "between" and "in" operators.Changelog
[v7.4.4] - 2024-06-10
JSON.stringify
.Changelog
[v7.4.3] - 2024-06-06
react-querybuilder
dependency version.