Skip to content

build(deps-dev): bump addressable from 2.9.2 to 2.10.0 - #1339

Merged
amatsuda merged 1 commit into
mainfrom
dependabot/bundler/addressable-2.10.0
Nov 23, 2026
Merged

amatsuda merged 1 commit into
mainfrom
dependabot/bundler/addressable-2.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps addressable from 2.9.2 to 2.10.0.

Changelog

Sourced from addressable's changelog.

Addressable 2.10.0

Breaking changes

  • 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 -W:deprecated (#706)
  • Addressable::URI::RULE_2A, RULE_2B_2C, RULE_2D and RULE_PREFIXED_PARENT, deprecated in 2.9.1, are removed (#669)
  • Addressable::URI setters, .new and #merge raise for false instead of treating it as nil (#667)
  • Addressable::URI#port= and .new raise InvalidURIError for a port with a line break, such as "8080\nx" (#663)
  • Addressable::URI setters, .new and .parse raise InvalidURIError for a port above 65535 in a URI whose scheme has a default port, such as http://example.com:70000/, and for a port above the largest integer Ruby stores without a bignum, 2**62 - 1 on 64-bit platforms, in any URI (#711)
  • Addressable::URI#origin= raises InvalidURIError 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: https://user:pass@example.com raises instead of setting the host to user (#616, [GHSA-cwmp-x65r-27fv])
  • Addressable::URI.parse, .new and the host setters raise InvalidURIError for brackets in a host that don't enclose an IPv6 address or IPvFuture literal, such as http://[127.0.0.1]/ or http://example[.]com/, which they accepted ([GHSA-c7j3-jq7p-v3pr])
  • Addressable::URI#host=, #authority=, .new and .parse raise InvalidURIError for a colon in a host outside the brackets of an IP literal, such as example.com:8080 or http://a:b:80/, which they accepted ([GHSA-w5p3-7836-69vh])
  • Addressable::URI#user=, #password=, #userinfo=, #authority=, .new and .parse raise InvalidURIError for /, ?, #, [, ] or \ in the user or password, or : in the user, which they accepted: uri.password = "#secret" raises, and a password with these characters has to be pct-encoded first ([GHSA-qrq6-rcpx-pmm6])
  • The strings a frozen Addressable::URI holds are frozen, so changing one, as in uri.host << "x", raises FrozenError (#668)
  • Addressable::Template#expand, #partial_expand, #match, #extract and #to_regexp raise InvalidTemplateError for a template that doesn't match the RFC 6570 grammar, which expansion kept as text and matching read as literal text (#660, #693, #697)
  • Addressable::Template reads a prefix modifier outside 1 to 9999 or with a leading zero, such as {var:0}, {var:05} or {var:10000}, as malformed: #expand, #partial_expand, #match, #extract and #to_regexp raise InvalidTemplateError where they used to expand or match it, and #variables ignores the expression (#618, #693, #697)
  • Addressable::Template reads the operators RFC 6570 reserves, =, ,, !, @ and |, as malformed: #expand, #partial_expand, #match, #extract and #to_regexp raise InvalidTemplateOperatorError where expansion used to treat {!var} like {var}, and #variables ignores the expression (#660, #693, #697)
  • Addressable::Template#expand and #partial_expand raise InvalidTemplateValueError for a prefix modifier on a list or associative array (#660)
  • With the native backend, Addressable::IDNA.punycode_encode and .punycode_decode raise IDN::Punycode::PunycodeError for a string with a NUL, where they converted only the text before it: punycode_encode("a\u0000b") gave "a-" ([GHSA-mrrj-5mhw-rcf2])
  • The pure-Ruby Addressable::IDNA.to_ascii raises Addressable::IDNA::InvalidLabel for a label that breaks the bidi rule of RFC 3454, such as exampleא, where it returned an A-label, as idn-ruby raises IDN::Idna::IdnaError; Addressable::URI#normalize keeps such a host pct-encoded: http://example%D7%90.test/ gives itself, not http://xn--example-c5i.test/ ([GHSA-fccw-gx6q-mh6c])
  • Addressable::Template#match and #extract only read a pair in a ;, ? or & 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: {?q} on ?admin=true gives nil, not {"q" => nil, "admin" => "true"} ([GHSA-q5vw-6v74-fg2g])
  • A processor's match pattern for a ;, ? or & variable that isn't exploded matches only the variable's value, as documented, so Addressable::Template#match and #extract no longer match a pattern that includes the name, such as page=\d+ ([GHSA-q5vw-6v74-fg2g])
  • The pure-Ruby Addressable::IDNA.to_ascii raises Addressable::IDNA::InvalidLabel for a label made only of characters nameprep maps to nothing, such as U+200B ZERO WIDTH SPACE in "\u200B.example", where it returned an A-label, as idn-ruby raises IDN::Idna::IdnaError (#703, #714)

Changed output

  • Addressable::URI#normalize, #==, #===, .normalized_encode, the pure-Ruby Addressable::IDNA.to_ascii and Addressable::Template#expand, #match and #extract leave a run of more than 30 combining marks as it is instead of normalizing it, so they take linear time on any Ruby: e followed by 31 U+0301 keeps the e and all 31 marks, not é and 30 ([GHSA-v6hg-69pc-4f3f])
  • Addressable::URI.heuristic_parse("localhost:3000") gives http://localhost:3000, not localhost:3000 with a localhost scheme (#691)
  • Addressable::URI#route_from and #route_to give ./, not ../, for a route that would climb above the root (#648)
  • Addressable::URI#query_values reads + as a space in query names too, and for uppercase HTTP and HTTPS: ?a+b=c gives {"a b" => "c"}, not {"a+b" => "c"} (#607)
  • Addressable::URI#request_uri percent-encodes control characters and spaces: /a b?q=1 gives /a%20b?q=1, not /a b?q=1 ([GHSA-qg8x-qm93-fw27])
  • Addressable::URI#normalize and .normalized_encode keep U+037E GREEK QUESTION MARK pct-encoded instead of turning it into a ; delimiter: /a%CD%BEb gives /a%CD%BEb, not /a;b (#712)
  • Addressable::URI#normalize keeps U+037E GREEK QUESTION MARK in a query: ?a=%CD%BE gives ?a=%CD%BE, not ?a=%3B (#712)
  • Addressable::Template#expand treats an empty list or associative array as undefined and leaves out nil members: {?list} with [] gives nothing, not ?list= (#611)
  • Addressable::Template#expand keeps pct-encoded triplets in reserved and fragment expansion: {+id} with admin%2F gives admin%2F, not admin%252F (#656)
  • Addressable::Template#expand gives ;a=, not ;a, for {;a} with [""] (#689)
  • Addressable::Template#expand gives ;a;a=y, not ;a=;a=y, for {;a*} with ["", "y"] (#688)
  • Addressable::Template#expand pct-encodes non-ASCII literals: café/{var} gives caf%C3%A9/value, not café/value (#676)
  • Addressable::Template#match and #extract read a label value that contains . when the expression is set off by delimiters: /f{.ext} on /f.tar.gz gives {"ext" => "tar.gz"}, not nil, so code that tries several templates may pick a different one (#692)
  • Addressable::Template#match and #extract keep the empty members of an exploded value: {/segments*} on /a/b/ gives {"segments" => ["a", "b", ""]}, not {"segments" => ["a", "b"]}, and on / gives {"segments" => [""]}, not {"segments" => []} (#700)
  • Addressable::Template#match and #extract give a variable that's repeated in an expression its first value: {+v1,v2,v1} on a,b,c gives {"v1" => "a", "v2" => "b"}, not {"v1" => "", "v2" => "a"} ([GHSA-xj9m-f88p-5j38])
  • Addressable::Template#match and #extract give a value that more than one variable of a /, ., +, # or default expression could take to the first of them, leaving a later variable undefined when nothing is left for it: {/a,b*} on /x/y/z gives {"a" => "x", "b" => ["y", "z"]}, not {"a" => "", "b" => ["x", "y", "z"]} (#715)
  • The pure-Ruby Addressable::IDNA.to_ascii and .to_unicode keep trailing empty labels, as idn-ruby does: bücher.example. gives xn--bcher-kva.example., not xn--bcher-kva.example (#609)
  • The pure-Ruby Addressable::IDNA.to_ascii treats U+3002 and U+FF61 as label separators, as idn-ruby does: bücher。example gives xn--bcher-kva.example, not xn--bcherexample-dlb0569n ([GHSA-x378-rg7m-2c49])
  • Addressable::IDNA.to_unicode and Addressable::URI#display_uri 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: xn--mn,chen-n2a gives xn--mn,chen-n2a, not mün,chen (#716)

Addressable::URI

  • Fix #normalize, #normalized_host, #origin and #== turning a pct-encoded or fullwidth colon in the host into the port delimiter: http://example.com%3A8080/ normalizes to itself, not http://example.com:8080/ ([GHSA-w5p3-7836-69vh])
  • Fix #normalize and #normalized_host decoding a host twice: http://127%252E0%252E0%252E1/ normalizes to http://127%252e0%252e0%252e1/, not http://127.0.0.1/ ([GHSA-w5p3-7836-69vh])

... (truncated)

Commits
  • a12466a Revving version and changelog for 2.10.0 (#725)
  • a8091e5 Skip the regexp timing specs on the macOS Intel runner (#724)
  • 3ac28a7 Show the undefined variable in the README's extract example (#723)
  • 0b48642 Credit GHSA-cwmp-x65r-27fv in the origin= changelog entry (#722)
  • 8025e4e Skip the template regexp timing specs on JRuby on Windows (#721)
  • aede313 Build committed template regexps faster (#719)
  • 0219401 Decode pct-encoded bytes into a binary copy in URI.unencode (#720)
  • 153a1b7 Fix CI on Ruby 2.3 to 2.6 and keep TruffleRuby within its time limit (#718)
  • aed6f93 Merge commit from fork
  • de9e404 Merge commit from fork
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)

Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.9.2 to 2.10.0.
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](sporkmonger/addressable@addressable-2.9.2...addressable-2.10.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-version: 2.10.0
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Nov 23, 2026
@amatsuda
amatsuda merged commit d66c207 into main Nov 23, 2026
4 checks passed
@amatsuda
amatsuda deleted the dependabot/bundler/addressable-2.10.0 branch November 23, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant