This release incorporates a handful of changes over the past few months and various proposals from the JSON Logic Organization discussions.
What this release officially introduces
What this release changes
- traverse: falseis now passed in as- lazy: true, however, this property should be remapped to avoid user rewrites. This conversation ties to this
- Empty Arrays are falsy by default.
- Empty Objects are falsy by default.
- Any structures (Map, Set) are also seen as falsy.
- allis false when the input is empty.
- The lengthoperator is treated like a unary operator, and should be more consistent.
Most users of this library shouldn't need to rewrite anything, but it might change some assumptions about truthiness / falsiness