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
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-rules-engine - npm Package Versions

13
9

6.4.1

Diff

cachecontrol
published 6.4.0 •

cachecontrol
published 6.3.1 •

cachecontrol
published 6.3.0 •

cachecontrol
published 6.2.0 •

cachecontrol
published 6.1.2 •

cachecontrol
published 6.1.1 •

cachecontrol
published 6.1.0 •

Changelog

Source

6.1.0 / 2021-06-03

  • engine.removeRule() now supports removing rules by name
    • Added engine.updateRule(rule)
cachecontrol
published 6.0.1 •

Changelog

Source

6.0.1 / 2021-03-09

  • Updates Typescript types to include failureEvents in EngineResult.
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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc