NCalc2 icon indicating copy to clipboard operation
NCalc2 copied to clipboard

[REQ] Easily skimmable release history

Open OddMathisenNOV opened this issue 10 months ago • 4 comments

I am making the request to have a more easily available and skimmable changelog history. I tried determining what the breaking changes were from 2.x to 3.0 but was unable to find the release history documenting the changes. Having these readily available makes upgrading a legacy codebase much less cumbersome.

OddMathisenNOV avatar Apr 25 '24 13:04 OddMathisenNOV

Hi, unfortunately no, but we can add changelog.md/releaseNotes.md.

The v3 of NCalc switched to ANTLR4, the grammar was updated. You shouldn't see any breaking changes.

Also the new features were introduced:

  • Added support for positive sign with numbers
  • Added support for numbers with trailing dot
  • Added support for case-insensitive logical operators
  • Added support for using ** as POW alternative

The cache handling logic was improved, CacheCleanInterval property was introduced, you can specify how frequent the cache clean will occur (in previous version the cache is cleaned on each compilation). By default the cache is checked every 1000 compilation.

Bykiev avatar Apr 25 '24 13:04 Bykiev

Ah, I assumed this was on a separate release schedule from NCalc. I see this matches up pretty well with the release notes over at https://github.com/ncalc/ncalc/releases/tag/v3.0.0 If the releases are identical, you could reference the other project release notes in the readme.

OddMathisenNOV avatar Apr 25 '24 13:04 OddMathisenNOV

No, the releases are not synced

Bykiev avatar Apr 25 '24 14:04 Bykiev

I found a different behavior between v2 and v3. This works in v2 and returns false where I receive an expection in v3

string expression = "''==4"; bool result = (bool)new NCalc.Expression(expression, NCalc.EvaluateOptions.IgnoreCase | NCalc.EvaluateOptions.NoCache).Evaluate();

danreg avatar Aug 09 '24 13:08 danreg