← Back to Pull requests

chore(deps): bump github.com/expr-lang/expr from 1.17.8 to 1.18.0 #5226

Merged
dependabot[bot] merged 2 files (6 lines) on Nov 25, 2026 08:40 UTC
View on GitHub
dependabot[bot] dependabot[bot] commented on Nov 25, 2026 00:43 UTC
Author

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(&quot;$env&quot;)</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(&quot;$env&quot;) 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 compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 rebase will rebase this PR

  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it

  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency

  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • </details>

    Diff: 6 lines (+3 / -3) across 2 files Reviewer: kostis-codefresh Review duration: 477m
    All Vouch review confidence checks passed
    Residual risk 0.02 = Change Risk (0.16) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.16 · 6 lines diff across 2 files
    0.16
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.91 · 5 substantive comment(s)
    0.91
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    89%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.116
    Real PR Conversation Timeline
    7 items
    coderabbitai[bot] coderabbitai[bot] commented on Nov 25, 2026 00:43 UTC
    Bot

    <!-- 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 the reviews.review_status to false in 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 -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

  • <!-- 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>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </dd>
    </dl>
    </details>

    <!-- tips_end -->

    github-actions[bot] github-actions[bot] commented on Nov 25, 2026 01:26 UTC
    Bot

    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=

    github-actions[bot] github-actions[bot] commented on Nov 25, 2026 01:26 UTC
    Bot

    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[bot] codecov[bot] commented on Nov 25, 2026 01:26 UTC
    Bot

    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>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    kostis-codefresh kostis-codefresh approved these changes on Nov 25, 2026 08:40 UTC
    Approved Reviewer
    Assignees
    dependabot[bot] dependabot[bot]
    Labels
    risk: low confidence: 89.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 16.1% (LOW) · Higher = larger blast radius
    16.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 89.7% · Lower = rushed or shallow review
    89.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2% · Safe to merge
    2%