serilog-expressions icon indicating copy to clipboard operation
serilog-expressions copied to clipboard

Make the `rest()` function aware of `@p.X` and `@p['X']` (breaking change)

Open nblumhardt opened this issue 1 year ago • 0 comments

Fixes #107

The existing behavior was intended to allow @p.X to be an escape hatch so that the reference to X is invisible to rest(). This turns out to be confusing in actual use.

The new ways to hide a property reference from rest() are:

let p = @p in p.X

or

@p[concat('X', '')]

etc.

Major version bump because this is likely to affect a few templates in use.

nblumhardt avatar Nov 16 '23 22:11 nblumhardt