← Back to Pull requests

Bump addressable from 2.9.1 to 2.10.0 #80

Open
dependabot[bot] opened this pull request with 8 lines diff across 1 files
View on GitHub
dependabot[bot] dependabot[bot] commented on Dec 02, 2026 06:40 UTC
Author

Bumps addressable from 2.9.1 to 2.10.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md">addressable's changelog</a>.</em></p>
<blockquote>
<h2>Addressable 2.10.0 <!-- raw HTML omitted --></h2>
<h3>Breaking changes</h3>
<ul>
<li>Ruby 3.2 and earlier and JRuby 9.4 are no longer supported, and loading Addressable on them gives a deprecation warning when deprecation warnings are turned on, as with <code>-W:deprecated</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/706">#706</a>)</li>
<li><code>Addressable::URI::RULE_2A</code>, <code>RULE_2B_2C</code>, <code>RULE_2D</code> and <code>RULE_PREFIXED_PARENT</code>, deprecated in 2.9.1, are removed (<a href="https://redirect.github.com/sporkmonger/addressable/issues/669">#669</a>)</li>
<li><code>Addressable::URI</code> setters, <code>.new</code> and <code>#merge</code> raise for <code>false</code> instead of treating it as <code>nil</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/667">#667</a>)</li>
<li><code>Addressable::URI#port=</code> and <code>.new</code> raise <code>InvalidURIError</code> for a port with a line break, such as <code>&quot;8080\nx&quot;</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/663">#663</a>)</li>
<li><code>Addressable::URI</code> setters, <code>.new</code> and <code>.parse</code> raise <code>InvalidURIError</code> for a port above 65535 in a URI whose scheme has a default port, such as <code>http://example.com:70000/</code>, and for a port above the largest integer Ruby stores without a bignum, 2*62 - 1 on 64-bit platforms, in any URI (<a href="https://redirect.github.com/sporkmonger/addressable/issues/711">#711</a>)</li>
<li><code>Addressable::URI#origin=</code> raises <code>InvalidURIError</code> for a string with a path, query or fragment, which it dropped, and for one with userinfo that has a colon, from which it took the host: <code>https://user:pass@example.com</code> raises instead of setting the host to <code>user</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/616">#616</a>, [GHSA-cwmp-x65r-27fv])</li>
<li><code>Addressable::URI.parse</code>, <code>.new</code> and the host setters raise <code>InvalidURIError</code> for brackets in a host that don't enclose an IPv6 address or IPvFuture literal, such as <code>http://[127.0.0.1]/</code> or <code>http://example[.]com/</code>, which they accepted ([GHSA-c7j3-jq7p-v3pr])</li>
<li><code>Addressable::URI#host=</code>, <code>#authority=</code>, <code>.new</code> and <code>.parse</code> raise <code>InvalidURIError</code> for a colon in a host outside the brackets of an IP literal, such as <code>example.com:8080</code> or <code>http://a:b:80/</code>, which they accepted ([GHSA-w5p3-7836-69vh])</li>
<li><code>Addressable::URI#user=</code>, <code>#password=</code>, <code>#userinfo=</code>, <code>#authority=</code>, <code>.new</code> and <code>.parse</code> raise <code>InvalidURIError</code> for <code>/</code>, <code>?</code>, <code>#</code>, <code>[</code>, <code>]</code> or <code>\</code> in the user or password, or <code>:</code> in the user, which they accepted: <code>uri.password = &quot;#secret&quot;</code> raises, and a password with these characters has to be pct-encoded first ([GHSA-qrq6-rcpx-pmm6])</li>
<li>The strings a frozen <code>Addressable::URI</code> holds are frozen, so changing one, as in <code>uri.host &lt;&lt; &quot;x&quot;</code>, raises <code>FrozenError</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/668">#668</a>)</li>
<li><code>Addressable::Template#expand</code>, <code>#partial_expand</code>, <code>#match</code>, <code>#extract</code> and <code>#to_regexp</code> raise <code>InvalidTemplateError</code> for a template that doesn't match the RFC 6570 grammar, which expansion kept as text and matching read as literal text (<a href="https://redirect.github.com/sporkmonger/addressable/issues/660">#660</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/693">#693</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/697">#697</a>)</li>
<li><code>Addressable::Template</code> reads a prefix modifier outside 1 to 9999 or with a leading zero, such as <code>{var:0}</code>, <code>{var:05}</code> or <code>{var:10000}</code>, as malformed: <code>#expand</code>, <code>#partial_expand</code>, <code>#match</code>, <code>#extract</code> and <code>#to_regexp</code> raise <code>InvalidTemplateError</code> where they used to expand or match it, and <code>#variables</code> ignores the expression (<a href="https://redirect.github.com/sporkmonger/addressable/issues/618">#618</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/693">#693</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/697">#697</a>)</li>
<li><code>Addressable::Template</code> reads the operators RFC 6570 reserves, <code>=</code>, <code>,</code>, <code>!</code>, <code>@</code> and <code>|</code>, as malformed: <code>#expand</code>, <code>#partial_expand</code>, <code>#match</code>, <code>#extract</code> and <code>#to_regexp</code> raise <code>InvalidTemplateOperatorError</code> where expansion used to treat <code>{!var}</code> like <code>{var}</code>, and <code>#variables</code> ignores the expression (<a href="https://redirect.github.com/sporkmonger/addressable/issues/660">#660</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/693">#693</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/697">#697</a>)</li>
<li><code>Addressable::Template#expand</code> and <code>#partial_expand</code> raise <code>InvalidTemplateValueError</code> for a prefix modifier on a list or associative array (<a href="https://redirect.github.com/sporkmonger/addressable/issues/660">#660</a>)</li>
<li>With the native backend, <code>Addressable::IDNA.punycode_encode</code> and <code>.punycode_decode</code> raise <code>IDN::Punycode::PunycodeError</code> for a string with a NUL, where they converted only the text before it: <code>punycode_encode(&quot;a\u0000b&quot;)</code> gave <code>&quot;a-&quot;</code> ([GHSA-mrrj-5mhw-rcf2])</li>
<li>The pure-Ruby <code>Addressable::IDNA.to_ascii</code> raises <code>Addressable::IDNA::InvalidLabel</code> for a label that breaks the bidi rule of RFC 3454, such as <code>exampleא</code>, where it returned an A-label, as <code>idn-ruby</code> raises <code>IDN::Idna::IdnaError</code>; <code>Addressable::URI#normalize</code> keeps such a host pct-encoded: <code>http://example%D7%90.test/</code> gives itself, not <code>http://xn--example-c5i.test/</code> ([GHSA-fccw-gx6q-mh6c])</li>
<li><code>Addressable::Template#match</code> and <code>#extract</code> only read a pair in a <code>;</code>, <code>?</code> or <code>&amp;</code> expression as the pair of a variable that isn't exploded when the name is one of the expression's variables, and only as many times as the expression has the name, and otherwise don't match: <code>{?q}</code> on <code>?admin=true</code> gives <code>nil</code>, not <code>{&quot;q&quot; =&gt; nil, &quot;admin&quot; =&gt; &quot;true&quot;}</code> ([GHSA-q5vw-6v74-fg2g])</li>
<li>A processor's <code>match</code> pattern for a <code>;</code>, <code>?</code> or <code>&amp;</code> variable that isn't exploded matches only the variable's value, as documented, so <code>Addressable::Template#match</code> and <code>#extract</code> no longer match a pattern that includes the name, such as <code>page=\d+</code> ([GHSA-q5vw-6v74-fg2g])</li>
<li>The pure-Ruby <code>Addressable::IDNA.to_ascii</code> raises <code>Addressable::IDNA::InvalidLabel</code> for a label made only of characters nameprep maps to nothing, such as U+200B ZERO WIDTH SPACE in <code>&quot;\u200B.example&quot;</code>, where it returned an A-label, as <code>idn-ruby</code> raises <code>IDN::Idna::IdnaError</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/703">#703</a>, <a href="https://redirect.github.com/sporkmonger/addressable/issues/714">#714</a>)</li>
</ul>
<h3>Changed output</h3>
<ul>
<li><code>Addressable::URI#normalize</code>, <code>#==</code>, <code>#===</code>, <code>.normalized_encode</code>, the pure-Ruby <code>Addressable::IDNA.to_ascii</code> and <code>Addressable::Template#expand</code>, <code>#match</code> and <code>#extract</code> leave a run of more than 30 combining marks as it is instead of normalizing it, so they take linear time on any Ruby: <code>e</code> followed by 31 U+0301 keeps the <code>e</code> and all 31 marks, not <code>é</code> and 30 ([GHSA-v6hg-69pc-4f3f])</li>
<li><code>Addressable::URI.heuristic_parse(&quot;localhost:3000&quot;)</code> gives <code>http://localhost:3000</code>, not <code>localhost:3000</code> with a <code>localhost</code> scheme (<a href="https://redirect.github.com/sporkmonger/addressable/issues/691">#691</a>)</li>
<li><code>Addressable::URI#route_from</code> and <code>#route_to</code> give <code>./</code>, not <code>../</code>, for a route that would climb above the root (<a href="https://redirect.github.com/sporkmonger/addressable/issues/648">#648</a>)</li>
<li><code>Addressable::URI#query_values</code> reads <code>+</code> as a space in query names too, and for uppercase <code>HTTP</code> and <code>HTTPS</code>: <code>?a+b=c</code> gives <code>{&quot;a b&quot; =&gt; &quot;c&quot;}</code>, not <code>{&quot;a+b&quot; =&gt; &quot;c&quot;}</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/607">#607</a>)</li>
<li><code>Addressable::URI#request_uri</code> percent-encodes control characters and spaces: <code>/a b?q=1</code> gives <code>/a%20b?q=1</code>, not <code>/a b?q=1</code> ([GHSA-qg8x-qm93-fw27])</li>
<li><code>Addressable::URI#normalize</code> and <code>.normalized_encode</code> keep U+037E GREEK QUESTION MARK pct-encoded instead of turning it into a <code>;</code> delimiter: <code>/a%CD%BEb</code> gives <code>/a%CD%BEb</code>, not <code>/a;b</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/712">#712</a>)</li>
<li><code>Addressable::URI#normalize</code> keeps U+037E GREEK QUESTION MARK in a query: <code>?a=%CD%BE</code> gives <code>?a=%CD%BE</code>, not <code>?a=%3B</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/712">#712</a>)</li>
<li><code>Addressable::Template#expand</code> treats an empty list or associative array as undefined and leaves out <code>nil</code> members: <code>{?list}</code> with <code>[]</code> gives nothing, not <code>?list=</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/611">#611</a>)</li>
<li><code>Addressable::Template#expand</code> keeps pct-encoded triplets in reserved and fragment expansion: <code>{+id}</code> with <code>admin%2F</code> gives <code>admin%2F</code>, not <code>admin%252F</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/656">#656</a>)</li>
<li><code>Addressable::Template#expand</code> gives <code>;a=</code>, not <code>;a</code>, for <code>{;a}</code> with <code>[&quot;&quot;]</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/689">#689</a>)</li>
<li><code>Addressable::Template#expand</code> gives <code>;a;a=y</code>, not <code>;a=;a=y</code>, for <code>{;a
}</code> with <code>[&quot;&quot;, &quot;y&quot;]</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/688">#688</a>)</li>
<li><code>Addressable::Template#expand</code> pct-encodes non-ASCII literals: <code>café/{var}</code> gives <code>caf%C3%A9/value</code>, not <code>café/value</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/676">#676</a>)</li>
<li><code>Addressable::Template#match</code> and <code>#extract</code> read a label value that contains <code>.</code> when the expression is set off by delimiters: <code>/f{.ext}</code> on <code>/f.tar.gz</code> gives <code>{&quot;ext&quot; =&gt; &quot;tar.gz&quot;}</code>, not <code>nil</code>, so code that tries several templates may pick a different one (<a href="https://redirect.github.com/sporkmonger/addressable/issues/692">#692</a>)</li>
<li><code>Addressable::Template#match</code> and <code>#extract</code> keep the empty members of an exploded value: <code>{/segments}</code> on <code>/a/b/</code> gives <code>{&quot;segments&quot; =&gt; [&quot;a&quot;, &quot;b&quot;, &quot;&quot;]}</code>, not <code>{&quot;segments&quot; =&gt; [&quot;a&quot;, &quot;b&quot;]}</code>, and on <code>/</code> gives <code>{&quot;segments&quot; =&gt; [&quot;&quot;]}</code>, not <code>{&quot;segments&quot; =&gt; []}</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/700">#700</a>)</li>
<li><code>Addressable::Template#match</code> and <code>#extract</code> give a variable that's repeated in an expression its first value: <code>{+v1,v2,v1}</code> on <code>a,b,c</code> gives <code>{&quot;v1&quot; =&gt; &quot;a&quot;, &quot;v2&quot; =&gt; &quot;b&quot;}</code>, not <code>{&quot;v1&quot; =&gt; &quot;&quot;, &quot;v2&quot; =&gt; &quot;a&quot;}</code> ([GHSA-xj9m-f88p-5j38])</li>
<li><code>Addressable::Template#match</code> and <code>#extract</code> give a value that more than one variable of a <code>/</code>, <code>.</code>, <code>+</code>, <code>#</code> or default expression could take to the first of them, leaving a later variable undefined when nothing is left for it: <code>{/a,b
}</code> on <code>/x/y/z</code> gives <code>{&quot;a&quot; =&gt; &quot;x&quot;, &quot;b&quot; =&gt; [&quot;y&quot;, &quot;z&quot;]}</code>, not <code>{&quot;a&quot; =&gt; &quot;&quot;, &quot;b&quot; =&gt; [&quot;x&quot;, &quot;y&quot;, &quot;z&quot;]}</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/715">#715</a>)</li>
<li>The pure-Ruby <code>Addressable::IDNA.to_ascii</code> and <code>.to_unicode</code> keep trailing empty labels, as <code>idn-ruby</code> does: <code>bücher.example.</code> gives <code>xn--bcher-kva.example.</code>, not <code>xn--bcher-kva.example</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/609">#609</a>)</li>
<li>The pure-Ruby <code>Addressable::IDNA.to_ascii</code> treats U+3002 and U+FF61 as label separators, as <code>idn-ruby</code> does: <code>bücher。example</code> gives <code>xn--bcher-kva.example</code>, not <code>xn--bcherexample-dlb0569n</code> ([GHSA-x378-rg7m-2c49])</li>
<li><code>Addressable::IDNA.to_unicode</code> and <code>Addressable::URI#display_uri</code> leave an A-label as it is when it decodes to ASCII other than letters, digits and hyphens, or starts or ends with a hyphen: <code>xn--mn,chen-n2a</code> gives <code>xn--mn,chen-n2a</code>, not <code>mün,chen</code> (<a href="https://redirect.github.com/sporkmonger/addressable/issues/716">#716</a>)</li>
</ul>
<h3><code>Addressable::URI</code></h3>
<ul>
<li>Fix <code>#normalize</code>, <code>#normalized_host</code>, <code>#origin</code> and <code>#==</code> turning a pct-encoded or fullwidth colon in the host into the port delimiter: <code>http://example.com%3A8080/</code> normalizes to itself, not <code>http://example.com:8080/</code> ([GHSA-w5p3-7836-69vh])</li>
<li>Fix <code>#normalize</code> and <code>#normalized_host</code> decoding a host twice: <code>http://127%252E0%252E0%252E1/</code> normalizes to <code>http://127%252e0%252e0%252e1/</code>, not <code>http://127.0.0.1/</code> ([GHSA-w5p3-7836-69vh])</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/sporkmonger/addressable/commit/a12466a0e52fe28a721564b5c51f83a092a7719f"><code>a12466a</code></a> Revving version and changelog for 2.10.0 (<a href="https://redirect.github.com/sporkmonger/addressable/issues/725">#725</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/a8091e5401b204057ea4ea005b6774f1cb21373b"><code>a8091e5</code></a> Skip the regexp timing specs on the macOS Intel runner (<a href="https://redirect.github.com/sporkmonger/addressable/issues/724">#724</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/3ac28a7c3815692acd3e305a2597d47516c5e659"><code>3ac28a7</code></a> Show the undefined variable in the README's extract example (<a href="https://redirect.github.com/sporkmonger/addressable/issues/723">#723</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/0b486429da962a81981865b9748a1dc31b7d479d"><code>0b48642</code></a> Credit GHSA-cwmp-x65r-27fv in the origin= changelog entry (<a href="https://redirect.github.com/sporkmonger/addressable/issues/722">#722</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/8025e4eb162a5f77057fd6e8437721a418816cbd"><code>8025e4e</code></a> Skip the template regexp timing specs on JRuby on Windows (<a href="https://redirect.github.com/sporkmonger/addressable/issues/721">#721</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/aede313a49ef454579aa0bc869cbcf78c57ca952"><code>aede313</code></a> Build committed template regexps faster (<a href="https://redirect.github.com/sporkmonger/addressable/issues/719">#719</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/02194010579f0132f827ee1ad6b5679525420446"><code>0219401</code></a> Decode pct-encoded bytes into a binary copy in URI.unencode (<a href="https://redirect.github.com/sporkmonger/addressable/issues/720">#720</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/153a1b7dab79ae4c7ba73bee53080ccf48cf325f"><code>153a1b7</code></a> Fix CI on Ruby 2.3 to 2.6 and keep TruffleRuby within its time limit (<a href="https://redirect.github.com/sporkmonger/addressable/issues/718">#718</a>)</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/aed6f93dd042987f3e168961cd0fe075e2ffba18"><code>aed6f93</code></a> Merge commit from fork</li>
<li><a href="https://github.com/sporkmonger/addressable/commit/de9e4048f65b2fed2ed6a0b020f41dad77fe53f5"><code>de9e404</code></a> Merge commit from fork</li>
<li>Additional commits viewable in <a href="https://github.com/sporkmonger/addressable/compare/addressable-2.9.1...addressable-2.10.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)

  • You can disable automated security fix PRs for this repo from the Security Alerts page.

    </details>

    Diff: 8 lines (+4 / -4) across 1 files Reviewer: None requested Review duration: 6708m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.28) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.28 · 8 lines diff across 1 files
    0.28
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.131
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    1 comments
    "Review active on #80"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    dependabot[bot] dependabot[bot]
    Labels
    risk: low confidence: 44.2% 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: 28.1% (LOW) · Higher = larger blast radius
    28.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: 44.2% · Lower = rushed or shallow review
    44.2%
    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: 15.7% · Safe to merge
    15.7%
    Repository