@goplasmatic/datalogic 4.0.13 → 4.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -172,21 +172,29 @@ rule.evaluate('{"age": 16}'); // "false"
|
|
|
172
172
|
|
|
173
173
|
## Supported Operators
|
|
174
174
|
|
|
175
|
-
This library supports all standard JSONLogic
|
|
175
|
+
This library supports 59 built-in operators covering all standard JSONLogic plus extended functionality:
|
|
176
176
|
|
|
177
|
-
**Logical:** `and`, `or`, `!`,
|
|
177
|
+
**Logical:** `and`, `or`, `!`, `!!`
|
|
178
178
|
|
|
179
179
|
**Comparison:** `==`, `===`, `!=`, `!==`, `<`, `<=`, `>`, `>=`
|
|
180
180
|
|
|
181
|
-
**Arithmetic:** `+`, `-`, `*`, `/`, `%`, `min`, `max`
|
|
181
|
+
**Arithmetic:** `+`, `-`, `*`, `/`, `%`, `min`, `max`, `abs`, `ceil`, `floor`
|
|
182
182
|
|
|
183
|
-
**
|
|
183
|
+
**Control Flow:** `if`, `?:`, `??` (coalesce)
|
|
184
184
|
|
|
185
|
-
**
|
|
185
|
+
**Array:** `map`, `filter`, `reduce`, `all`, `some`, `none`, `merge`, `in`, `sort`, `slice`
|
|
186
186
|
|
|
187
|
-
**
|
|
187
|
+
**String:** `cat`, `substr`, `starts_with`, `ends_with`, `upper`, `lower`, `trim`, `split`, `length`
|
|
188
188
|
|
|
189
|
-
**
|
|
189
|
+
**Data Access:** `var`, `val`, `exists`, `missing`, `missing_some`
|
|
190
|
+
|
|
191
|
+
**Date/Time:** `now`, `datetime`, `timestamp`, `parse_date`, `format_date`, `date_diff`
|
|
192
|
+
|
|
193
|
+
**Error Handling:** `try`, `throw`
|
|
194
|
+
|
|
195
|
+
**Type Operations:** `type`
|
|
196
|
+
|
|
197
|
+
**Special:** `preserve` (structure preservation for templating)
|
|
190
198
|
|
|
191
199
|
For the complete list and documentation, see the [main repository](https://github.com/GoPlasmatic/datalogic-rs).
|
|
192
200
|
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|