@react-querybuilder/native
Advanced tools
Changelog
[v6.5.4] - 2023-11-04
key
props.generatePicker
in @react-querybuilder/antd
.Changelog
[v6.5.3] - 2023-10-20
transformQuery
enhancements:
rules
properties are no longer retained unconditionally. The rules
property can be copied or renamed like any other property using the propertyMap
option.propertyMap
keys can now have false
values. Properties matching a propertyMap
key with a value of false
will be removed without further processing (including the rules
property, which would avoid recursion through the hierarchy althogether).omitPath
. When true
, a path
property will not be added to each rule and group in the query hierarchy.paramsKeepPrefix
was not applying to bind variables generated from rules with an operator
of "between", "notBetween", "in", or "notIn".Changelog
[v6.5.2] - 2023-10-19
useValueEditor
hook will now update all values that are arrays (Array.isArray(value)
) to the first element of the array (value[0]
) when operator
is anything except "between", "notBetween", "in", or "notIn". Previously this logic only applied when inputType
was "number". (To bypass this logic, pass { skipHook: true }
.)paramsKeepPrefix
option for formatQuery
, which enables compatibility with SQLite. When used in conjunction with the "parameterized_named"
export format, the params
object keys will maintain the paramPrefix
string as it appears in the sql
string (e.g. { '$param_1': 'val' }
instead of { param_1: 'val' }
).parseMongoDB
now properly handles objects in the form of { fieldName: { $not: { /* ...rule */ } } }
. This problem was particularly evident for $regex
operators that should have generated rules with "doesNot[Contain/BeginWith/EndWith]"
operators, since formatQuery(query, 'mongodb')
produces this structure and parseMongoDB
was not handling the inverse operation.isRuleGroup
will not error when the argument is null
.parseSQL
now recognizes signed numeric values like -12
or +14
.Changelog
[v6.5.1] - 2023-06-26
AntDValueEditor
calls generatePicker
from the correct import."node16"
module resolution.Changelog
[v6.5.0] - 2023-06-13
display: none
to the queryBuilder-dragHandle
class when drag-and-drop is disabled since the components will not be rendered anyway.rule
object will now be provided to fieldSelector
, operatorSelector
, valueSourceSelector
, and valueEditor
components.ruleGroup
object will now be provided to notToggle
components.ruleOrGroup
object will now be provided to dragHandle
components.validator
functions. Previously, the parameter object only included the field
, operator
, valueSource
, and value
properties of the rule.Changelog
[v6.4.1] - 2023-05-23
startsWith
and endsWith
(properties of jsonLogicAdditionalOperators
) now check the type of the first parameter before calling the respective methods. This avoids errors like "Uncaught TypeError: Cannot read properties of null (reading 'startsWith')" when a field in the object being evaluated is null
.