New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-rules-engine

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-rules-engine - npm Package Versions

1245
9

6.0.0

Diff
cachecontrol
published 6.0.0 •

Changelog

Source

6.0.0 / 2020-12-22

  • BREAKING CHANGES
    • To continue using selectn syntax for condition paths, use the new pathResolver feature. Read more here. Add the following to the engine constructor:
      const pathResolver = (object, path) => {
        return selectn(path)(object)
      }
      const engine = new Engine(rules, { pathResolver })
      
      (fixes #205)
    • Engine and Rule events on('success'), on('failure'), and Rule callbacks onSuccess and onFailure now honor returned promises; any event handler that returns a promise will be waited upon to resolve before engine execution continues. (fixes #235)
    • Private rule.event property renamed. Use rule.getEvent() to avoid breaking changes in the future.
    • The success-events fact used to store successful events has been converted to an internal data structure and will no longer appear in the almanac's facts. (fixes #187)
    • NEW FEATURES
      • Engine constructor now accepts a pathResolver option for resolving condition path properties. Read more here. (fixes #210)
      • Engine.run() now returns three additional data structures:
        • failureEvents, an array of all failed rules events. (fixes #192)
        • results, an array of RuleResults for each successful rule (fixes #216)
        • failureResults, an array of RuleResults for each failed rule
cachecontrol
published 5.3.0 •

Changelog

Source

5.3.0 / 2020-12-02

  • Allow facts to have a value of undefined
cachecontrol
published 6.0.0-alpha-3 •
cachecontrol
published 6.0.0-alpha-2 •
cachecontrol
published 6.0.0-alpha-1 •
cachecontrol
published 5.2.0 •

Changelog

Source

5.2.0 / 2020-11-31

  • No changes; published to correct an accidental publish of untagged alpha
cachecontrol
published 5.0.5-next-major-alpha1.0 •
cachecontrol
published 5.1.0-rc1 •
cachecontrol
published 5.0.4 •

Changelog

Source

5.0.4 / 2020-09-26

  • Upgrade dependencies to latest
cachecontrol
published 5.0.3 •

Changelog

Source

5.0.3 / 2020-01-26

  • Upgrade jsonpath-plus dependency, to fix inconsistent scalar results (#175)