Skip to content

Releases: expr-lang/expr

v1.10.5

24 Jan 18:57
Compare
Choose a tag to compare
  • Fixed call typed to exclude named functions.
  • Fixed type check for in operator with any on rhs.

v1.10.4

23 Jan 20:29
Compare
Choose a tag to compare
  • Fixed checker to correctly expect type cast with As*() modifiers.

v1.10.3

22 Jan 18:47
Compare
Choose a tag to compare
  • Fixed nil type check.

v1.10.2

21 Jan 12:44
Compare
Choose a tag to compare
  • Added more typed call signatures.
  • Fixed: correctly check error type of func return types.
  • Fixed: use CallTyped for methods as well.

v1.10.1

20 Jan 20:51
Compare
Choose a tag to compare
  • Fixed: CallFastTyped kind detection.
  • Fixed type checker: allow to use any as key in maps.
  • Fixed: put operator check after env is set (#309).

v1.10.0

19 Jan 10:33
154081e
Compare
Choose a tag to compare

Expr – expression language and expression evaluation for Go.

out, err := expr.Eval(`all(Tweets, {.Len <= 240})`, tweets)

In this release

  • Performance improved up to 50%-100%.
  • Added native support for times and duration.

v1.9.0

11 Aug 08:49
16bee8c
Compare
Choose a tag to compare
  • Fixed handling of space(s) in between operator 05a8d87.
  • Fixed double dot range for invalid input (#164).
  • Added nil safe operator (#173).
  • Fixed acceptWord checks the rune after word (#184).
  • Added ability to return errors from custom functions. (#159).
  • Added codegen for expr envs (#193).
  • Fixed io/fs.FileName replace to os.FileName (#194).
  • Fixed exprgen shouldn't generate methods for aliases (#196).
  • Added support for ConstantNode in checker (#197).
  • Many documentation improvements.

v1.8.9

09 Sep 20:08
Compare
Choose a tag to compare

7dd2fd3 Fix compiler fold optimization of "integer divide by zero"

v1.8.8

19 May 07:35
Compare
Choose a tag to compare

f716d23 Fixed docgen for ambiguous fields on nested structs.

v1.8.7

18 May 18:02
Compare
Choose a tag to compare

ec30886 Fixed docgen for ambiguous fields in embedded structs