Skip to content

Releases: json-logic/json-logic-engine

v5.0.0

26 May 15:26
e9779e5
Compare
Choose a tag to compare

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: false is 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.
  • all is false when the input is empty.
  • The length operator 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