Skip to content

v1.6.4

Choose a tag to compare

@github-actions github-actions released this 17 Jun 06:52

Changelog

New Features

  • JSONPath-style $.path template support: field_expr now supports mixing Lua functions with $.path JSON path references. Before Lua execution, the system safely substitutes each $.path expression based on its runtime type: numbers and booleans are inlined as literals, strings are automatically quoted and escaped, and missing paths resolve to nil.

    Example:

  return "Balance: " .. string.format("%.2f", $.data.wallets[0].balance)

If $.data.wallets[0].balance resolves to the number 100.5, the substituted code becomes:

  return "Balance: " .. string.format("%.2f", 100.5)

Bug Fixes

  • Fix field_expr path extraction: non-path characters (), :, etc.) now correctly terminate $.path references
  • Fix Lua 5.4 return value handling: function calls used as statements no longer discard return values in script_exec wrapper

Full Changelog: v1.6.3...v1.6.4