json-rules-engine icon indicating copy to clipboard operation
json-rules-engine copied to clipboard

A rules engine expressed in JSON

Results 80 json-rules-engine issues
Sort by recently updated
recently updated
newest added

This - changes a test to use the correct setter method to change a Rule's conditions - adds a test that shows that Rule.conditions is not the right setter -...

[Rule.conditions](https://github.com/CacheControl/json-rules-engine/blob/0a01da6b6bf5a67a71be412054e33a195b5a6a96/types/index.d.ts#L177) is described as being a setter, and is also [used as such](https://github.com/CacheControl/json-rules-engine/blob/0a01da6b6bf5a67a71be412054e33a195b5a6a96/test/engine.test.js#L96) in one of the tests. But doing this and then running the engine leads to a `RuleResult`...

I see that latest version is 7 on npm but the CHANGELOG file here only goes until 6. How can we upgrade to v7?

This library will no longer work in browser `jsonpath-plus` serves ESM when being used in the browser, however, this package only supports commonJS, so we get into a situation where...

The operator class has an `evaluate` method. It's helpful to be able to call it explicitly to test custom operators so I'm updating the type definition to include it.

High severity security flaw in JSONPath Plus allows Remote Code Execution - please update dependency ![Image](https://github.com/user-attachments/assets/d063a602-6b3b-4eab-b101-d5d96dc0c6c6)

![Image](https://github.com/user-attachments/assets/5239d7b6-f7db-4dd4-84fa-ec2a08ee93a1)

To avoid mistakes it would be great to have operator autocomplete in types. We could either just use a union type and then allow also for any string to account...

Add Testing for examples

Migrate JSON Rules engine to Typescript