chore(deps): bump github.com/expr-lang/expr from 1.17.8 to 1.18.0 #5226
<!-- coderabbit-ai-generated:v1 -->
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: skip review by coderabbit.ai -->
[!IMPORTANT]
## Review skipped
> Bot user detected.
> To trigger a single review, invoke the @coderabbitai review command.> <details>
<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>
<dl>
<dd>
<br>
> - Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID: ab698777-2e89-413d-bf1a-60a809b039a2> </dd>
</dl>
</details>
> You can disable this status message by setting thereviews.review_statustofalsein the CodeRabbit configuration file.
> Use the checkbox below for a quick retry:
- [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review
<!-- end of auto-generated comment: skip review by coderabbit.ai -->
<!-- autopilot:start -->
<!-- autopilot:end -->
<!-- tips_start -->
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
<details>
<summary><strong>Share</strong></summary>
<dl>
<dd>
<br>
</dd>
</dl>
</details>
<!-- tips_end -->
 Quality Gate passed
Issues
 0 New issues
 0 Accepted issues
Measures
 0 Security Hotspots
 0.0% Coverage on New Code
 0.0% Duplication on New Code
<!-- sqra-placement-anchor -->
See analysis details on SonarQube Cloud
Published E2E Test Results
4 files 4 suites 4h 28m 21s ⏱️
150 tests 139 ✅ 7 💤 4 ❌
606 runs 572 ✅ 28 💤 6 ❌
For more details on these failures, see this check.
Results for commit 7aa9c141.
[test-results]:data:application/gzip;base64,H4sIACk5BmsC/02MSQ7CMBAEvxL5zGEm8ZLwGeQtkkUW5NgnxN8ZK47hWNXqerM5LP5g947fOnbkkBq4HHUK+0aIEgFJ0ZjKjAIuehzZ2qKG6aee4UVKNTHrsNTqKXyMeyRTMjFvpSlBVriSQvXNnMV+vEQttst/0O7rGhIBU1pPFjkqg8IbMw1acuFB81k6D0AMoxtNzz5fgShZeQgBAAA=
Published Unit Test Results
2 677 tests 2 677 ✅ 3m 30s ⏱️
131 suites 0 💤
1 files 0 ❌
Results for commit 7aa9c141.
[test-results]:data:application/gzip;base64,H4sIADA5BmsC/2WMyQ6DIBRFf8Ww7gIQQfsz5jElpCoNw6rpvxe0A22X59zcc0PWLSaic0dOHYrZpQP6ijoHSM5vRVCCiyhjqjPlQrxwjlmpP3dx1+Len9mCW76ECcGHpwl5a6qVfqKH+jR3bpI7t0Xl19WlAkgATIowIiQZjJRTD5wNBgOzXBuMC+NRj5Ki+wMm0NBOCwEAAA==
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 85.30%. Comparing base (
40088cc) to head (7aa9c14).<details><summary>Additional details and impacted files</summary>
@@ Coverage Diff @@
## master #5226 +/- ##
==========================================
- Coverage 85.34% 85.30% -0.05%
==========================================
Files 167 167
Lines 19606 19606
==========================================
- Hits 16732 16724 -8
- Misses 2021 2025 +4
- Partials 853 857 +4
| Flag | Coverage Δ | |
|---|---|---|
| e2e | 53.15% <ø> (-0.08%) | :arrow_down: |
| unit-tests | 81.79% <ø> (ø) | |
Flags with carried forward coverage won't be shown. Click here to find out more.
</details>
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
Already in Argo CD https://github.com/argoproj/argo-cd/pull/31257
kostis-codefresh
dependabot[bot]
Bumps github.com/expr-lang/expr from 1.17.8 to 1.18.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/expr-lang/expr/releases">github.com/expr-lang/expr's releases</a>.</em></p>
<blockquote>
<h2>v1.18.0</h2>
<p><strong>Expr</strong> is an expression language designed to deliver dynamic configurations with unparalleled accuracy,
safety, and speed.</p>
<pre lang="go"><code>program, err := expr.Compile(
let foo = bar(); baz(foo, foo))</code></pre>
<p><strong>In this release:</strong></p>
<ul>
<li><strong>Security</strong>: limit expression nesting depth to prevent a fatal stack overflow on deeply nested input (<a href="https://redirect.github.com/expr-lang/expr/issues/1003">#1003</a>)</li>
<li><strong>Security</strong>: enforce <code>MemoryBudget</code> for string concatenation and string-producing builtins (<a href="https://redirect.github.com/expr-lang/expr/issues/1003">#1003</a>)</li>
<li><strong>New feature</strong>: added <code>merge()</code> builtin for combining maps (<a href="https://redirect.github.com/expr-lang/expr/issues/947">#947</a>)</li>
<li><strong>New feature</strong>: added <code>log2()</code> builtin (<a href="https://redirect.github.com/expr-lang/expr/issues/981">#981</a>)</li>
<li><strong>New feature</strong>: support <code>DisableBuiltin("$env")</code> to hide the <code>$env</code> variable (<a href="https://redirect.github.com/expr-lang/expr/issues/949">#949</a>)</li>
<li><strong>New feature</strong>: allow field access on concrete types behind interface values (<a href="https://redirect.github.com/expr-lang/expr/issues/952">#952</a>)</li>
<li><strong>New feature</strong>: support optional chaining on slice expressions, e.g. <code>foo?.[0:1]</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/945">#945</a>)</li>
<li><strong>Fixed</strong>: <code>DisableBuiltin</code> and <code>DisableAllBuiltins</code> now apply to predicate builtins such as <code>all</code>, <code>filter</code> and <code>map</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/1005">#1005</a>)</li>
<li><strong>Fixed</strong>: compile-time panic on field access after the <code>filter(...)[0]</code> optimization (<a href="https://redirect.github.com/expr-lang/expr/issues/1004">#1004</a>)</li>
<li><strong>Fixed</strong>: panic in <code>ConstantNode.String</code> on NaN and infinite floats (<a href="https://redirect.github.com/expr-lang/expr/issues/974">#974</a>)</li>
<li><strong>Fixed</strong>: evaluate the third argument of <code>reduce</code> and <code>sortBy</code> in the enclosing scope (<a href="https://redirect.github.com/expr-lang/expr/issues/1002">#1002</a>)</li>
<li><strong>Fixed</strong>: add <code>sum([...])</code> elements left to right, matching unoptimized results (<a href="https://redirect.github.com/expr-lang/expr/issues/999">#999</a>)</li>
<li><strong>Fixed</strong>: resolve embedded-interface fields in <code>get()</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/977">#977</a>)</li>
<li><strong>Fixed</strong>: reject pointer-to-map environment with a clear error (<a href="https://redirect.github.com/expr-lang/expr/issues/987">#987</a>)</li>
<li><strong>Fixed</strong>: check struct field name is a string in <code>Fetch</code> and <code>get()</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/973">#973</a>)</li>
<li><strong>Fixed</strong>: reject non-comparable keys in <code>fromPairs()</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/964">#964</a>)</li>
<li><strong>Fixed</strong>: reject negative count in <code>take()</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/965">#965</a>)</li>
<li><strong>Fixed</strong>: pop stale bool from stack in <code>emitLoopBackwards</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/954">#954</a>)</li>
<li><strong>Fixed</strong>: clear error when fetching a field from a string at runtime (<a href="https://redirect.github.com/expr-lang/expr/issues/963">#963</a>)</li>
<li><strong>Fixed</strong>: handle non-comparable <code>groupBy</code> keys (<a href="https://redirect.github.com/expr-lang/expr/issues/940">#940</a>)</li>
<li><strong>Fixed</strong>: reject unexported struct fields at runtime (<a href="https://redirect.github.com/expr-lang/expr/issues/935">#935</a>)</li>
<li><strong>Fixed</strong>: wrap <code>LoadLocation</code> error in <code>date()</code> (<a href="https://redirect.github.com/expr-lang/expr/issues/931">#931</a>)</li>
<li><strong>Docs</strong>: map literal key types (<a href="https://redirect.github.com/expr-lang/expr/issues/998">#998</a>), <code>WithContext</code> signature requirements (<a href="https://redirect.github.com/expr-lang/expr/issues/997">#997</a>), <code>min</code> and <code>max</code> arguments (<a href="https://redirect.github.com/expr-lang/expr/issues/985">#985</a>)</li>
</ul>
<p><strong>Upgrade notes:</strong></p>
<ul>
<li><strong>Memory budget</strong>: string concatenation and builtins such as <code>repeat</code>, <code>replace</code>, <code>join</code>, <code>split</code>, <code>toJSON</code> and <code>toBase64</code> now count against <code>MemoryBudget</code>. Programs that build very large strings (over about 1 MB with the default budget) may now fail with <code>memory budget exceeded</code>. Raise the limit with <code>expr.MemoryBudget(...)</code> if needed.</li>
<li><strong>Custom <code>Safe</code> builtins</strong>: <code>builtin.Function.Safe</code> and <code>vm.SafeFunction</code> now receive the remaining memory budget as their first argument: <code>func(budget uint, args ...any) (any, uint, error)</code>. Add a <code>_ uint</code> parameter to existing implementations.</li>
<li><strong><code>DisableAllBuiltins()</code></strong> now also disables predicate builtins (<code>all</code>, <code>any</code>, <code>none</code>, <code>one</code>, <code>filter</code>, <code>map</code>, <code>count</code>, <code>sum</code>, <code>find</code>, <code>findIndex</code>, <code>findLast</code>, <code>findLastIndex</code>, <code>groupBy</code>, <code>sortBy</code>, <code>reduce</code>). Re-enable the ones you need with <code>expr.EnableBuiltin(...)</code>.</li>
<li><strong>Nesting limit</strong>: expressions nested more than 10,000 levels deep are rejected at compile time.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/expr-lang/expr/commit/dc3f3a4c622fbec30d79380ed89f9ed4d036557c"><code>dc3f3a4</code></a> feat(builtin): add merge() for combining maps (<a href="https://redirect.github.com/expr-lang/expr/issues/947">#947</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/8cf9fe521ac140af6826e468d78455d254a58024"><code>8cf9fe5</code></a> fix(builtin): reject negative count in take (<a href="https://redirect.github.com/expr-lang/expr/issues/965">#965</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/02f9314abff46ebcb3359f243c62aabebb5e2da9"><code>02f9314</code></a> docs: explain min and max arguments (<a href="https://redirect.github.com/expr-lang/expr/issues/985">#985</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/105b8deafd763e71df233516b08a374aac4bc725"><code>105b8de</code></a> docs: explain WithContext signature requirements (<a href="https://redirect.github.com/expr-lang/expr/issues/997">#997</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/179baf8b0115bcc293b70d4c631e56cf136d05fa"><code>179baf8</code></a> docs: explain map literal key types (<a href="https://redirect.github.com/expr-lang/expr/issues/998">#998</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/d9228537d8a2f168ef93ffdadeb50624125463fe"><code>d922853</code></a> feat: add log2 builtin (<a href="https://redirect.github.com/expr-lang/expr/issues/981">#981</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/60ff29b0117c06caf4bbdd7ab8437678cadda659"><code>60ff29b</code></a> feat: support DisableBuiltin("$env") to hide the $env variable (<a href="https://redirect.github.com/expr-lang/expr/issues/949">#949</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/17809ba8a85c9d716da023c9c8b5a12cc3bf7320"><code>17809ba</code></a> fix(builtin): resolve embedded-interface fields in get() (<a href="https://redirect.github.com/expr-lang/expr/issues/977">#977</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/75b0f470dc48a444ae9a296b5f09170557748868"><code>75b0f47</code></a> fix(parser): support optional chaining on slice expressions (<a href="https://redirect.github.com/expr-lang/expr/issues/945">#945</a>)</li>
<li><a href="https://github.com/expr-lang/expr/commit/bf2f9b126af99041ed9380c6fa34d40869aaaed8"><code>bf2f9b1</code></a> fix(conf): reject pointer-to-map environment with a clear error (<a href="https://redirect.github.com/expr-lang/expr/issues/987">#987</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/expr-lang/expr/compare/v1.17.8...v1.18.0">compare view</a></li>
</ul>
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)</details>