Skip to content

v1.18.1

Latest

Choose a tag to compare

@antonmedv antonmedv released this 22 Nov 13:09
· 1 commit to master since this release
399159a

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.