@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 operators plus extended functionality:
175
+ This library supports 59 built-in operators covering all standard JSONLogic plus extended functionality:
176
176
 
177
- **Logical:** `and`, `or`, `!`, `!!`, `if`, `?:`
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
- **Array:** `map`, `filter`, `reduce`, `all`, `some`, `none`, `merge`, `in`
183
+ **Control Flow:** `if`, `?:`, `??` (coalesce)
184
184
 
185
- **String:** `cat`, `substr`, `startsWith`, `endsWith`
185
+ **Array:** `map`, `filter`, `reduce`, `all`, `some`, `none`, `merge`, `in`, `sort`, `slice`
186
186
 
187
- **Data Access:** `var`, `missing`, `missing_some`
187
+ **String:** `cat`, `substr`, `starts_with`, `ends_with`, `upper`, `lower`, `trim`, `split`, `length`
188
188
 
189
- **Date/Time:** Date comparison and manipulation operators
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goplasmatic/datalogic",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "description": "High-performance JSONLogic engine for JavaScript/TypeScript - WebAssembly powered",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
Binary file