Loading...
If you used this before v1.8 | Use this instead | Already-stored expressions |
|---|---|---|
getVariableValue('abc.def') | getVariable('abc.def') | Rewritten automatically during upgrade |
parseVariables('bare.dot.path') (no $(...)) | parseVariables('$(bare.dot.path)') | Rewritten automatically during upgrade |
$(...) variable reference syntax itself, assignment and update operators, and every operator you'd expect in an expression) carries forward unchanged. This wasn't a small tweak: the underlying parser was fully replaced, but as a deliberate superset of what came before, with these two exceptions.Note
The migration only rewrites the specific expression storage locations it's designed to handle. If you have an expression stored somewhere unusual that this migration doesn't reach, it will keep using the old syntax silently rather than erroring, see "If you get stuck" below for how to notice this.
getVariableValue(...) call, it will fail outright rather than silently doing the wrong thing, see below. A bare, unwrapped path passed to parseVariables(...), on the other hand, won't error; it just won't resolve, which is easier to miss.getVariableValue fails: replace it with getVariable, using the exact same arguments: getVariableValue('abc.def') becomes getVariable('abc.def').parseVariables isn't resolving a value you expect it to: check whether the argument is wrapped in $(...). parseVariables('abc.def') needs to become parseVariables('$(abc.def)'). What you see | What to try |
|---|---|
An expression throws an error mentioning an unsupported function called getVariableValue. | Replace it with getVariable, using the same arguments: this alias was removed in v1.8. |
parseVariables(...) returns the literal text you passed in instead of a resolved value. | Wrap the argument in $(...): a bare dot-path is no longer treated as an implicit variable reference. |
An expression that worked before upgrading now behaves differently, and it's not one of the two patterns above. | This is unexpected: the rebuilt parser is meant to be a superset of the old one otherwise. Check the expression for getVariableValue or an unwrapped parseVariables argument first, since those are the two known changes; if neither applies, this may be worth reporting rather than working around. |
Was this helpful?
0 of 0 users found this page helpful