TomFrost / Jexl

Javascript Expression Language: Powerful context-based expression parser and evaluator
MIT License
573 stars 93 forks source link

compare #47

Closed k2s closed 5 years ago

k2s commented 5 years ago

I believe this happend due to StandardJS suggestions.

version 1.1.4 was comparing string variables and number variables with == and !=

version 2.0.1 breaks this by using === and !==

When looking at how `'2'<=2 is trueworks you should revert back to use==and!=`.

TomFrost commented 5 years ago

Ouch, great catch! This is an artifact of running standard with the --fix flag -- this will be reverted asap.

TomFrost commented 5 years ago

This is fixed in Jexl 2.0.2, published minutes ago.