github expr-lang/expr v1.18.1

42 minutes ago

Expr is an expression language designed to deliver dynamic configurations with unparalleled accuracy,
safety, and speed.

program, err := expr.Compile(`let foo = bar(); baz(foo, foo)`)

In this release:

  • Security: type check nested calls of overloaded functions in linear time. Compile time used to grow exponentially with nesting depth, so a short expression such as 42 nested replace calls never finished compiling (GHSA-6h63-3f9q-wq5h, #1010)
  • Security: reverse checks the memory budget before allocating its result (#1006)
  • Performance: uniq no longer compares each element against every kept value; up to 98% faster on lists with many distinct values (#1007)

Upgrading from v1.18.0 requires no changes.

Don't miss a new expr release

NewReleases is sending notifications on new releases.