Update dependency addressable to v2.9.2

This MR contains the following updates:

Package Update Change Pending MyDiffEnd
addressable (changelog) patch 2.9.0 → 2.9.2 2.10.0 https://my.diffend.io/gems/addressable/2.9.0/2.9.2

MR created with the help of gitlab-org/frontend/renovate-gitlab-bot


Release Notes

sporkmonger/addressable (addressable)

v2.9.2

Compare Source

Addressable::URI
  • fixes Addressable::URI returning stale values after a component was changed: e.g. after host=, #site, #normalized_site, #normalized_authority and #normalize could still use the old host, and after scheme=, #normalized_port could keep a port that's the new scheme's default (#​613)
  • fixes Addressable::URI#normalized_query reusing the result of an earlier call with different flags: e.g. after normalized_query(:sorted), normalized_query and #normalize gave a sorted query, and after normalized_query, normalized_query(:sorted) gave an unsorted one (#​608)
  • fixes Addressable::URI#clone sharing component strings with the original: e.g. appending to the clone's #host also changed the original's host, but not its cached normalized values; #dup already made a separate copy (#​617)
  • fixes the "instance variable @​validation_deferred not initialized" warning that 2.9.1 gave for every new Addressable::URI on Ruby before 3.0 with warnings enabled, and a "shadowing outer local variable" warning from Addressable::Template on Ruby 2.4 and 2.5 (#​637)
Addressable::Template
  • fixes Addressable::Template#expand and #partial_expand changing the arrays given as values: e.g. [1, :a] became ["1", "a"]; a frozen array raised FrozenError, and an object that responds to to_ary raised TypeError (#​605)
Addressable::IDNA
  • fixes the pure-Ruby Addressable::IDNA.to_unicode raising ZeroDivisionError on some malformed labels, e.g. xn--rp3=, which also made Addressable::URI#display_uri raise, because the Punycode decoder treated punctuation as digits; such labels are now returned unchanged (#​614)
  • speeds up the pure-Ruby Addressable::IDNA.to_unicode, which became up to 25 times slower in 2.9.1 on long labels with many non-ASCII characters; Punycode encoding no longer takes quadratic time (#​645)
  • fixes the "character class has duplicated range" warnings that 2.9.1 gave when Addressable::IDNA was loaded with warnings enabled (#​636)

v2.9.1

Compare Source

Addressable::URI
  • fixes denial of service in Addressable::URI.normalize_path, which took quadratic time on paths with many dot segments; URI#normalize, #join, #== and #=== were affected (GHSA-qq38-m9mg-xjj5)
  • fixes Addressable::URI.normalize_path keeping segments that a .. should have removed after a .. above the root, e.g. /../../public/x/../../secret normalized to /public/x/secret instead of /secret (GHSA-8gmh-2hhj-2hv9)
  • fixes Addressable::URI.normalize_path treating a raw line feed as a segment boundary, e.g. joining ..\n/secret onto /public/ gave /\n/secret
  • deprecates Addressable::URI::RULE_2A, RULE_2B_2C, RULE_2D and RULE_PREFIXED_PARENT, which are no longer used; they will be removed in 2.10.0
  • fixes Addressable::URI#route_from and #route_to raising InvalidURIError when the route's first segment contains a colon (e.g. /a:b from /a); the route is now ./a:b (#​625)
  • fixes Addressable::URI#display_uri raising InvalidURIError for URIs without a host, such as abc or mailto:user@example.com; relative URIs are also no longer displayed with an empty authority (e.g. /path/to was displayed as ///path/to) (#​610)
  • fixes Addressable::URI#origin= raising InvalidURIError for an origin with an empty port (e.g. http://example.com:), which is the same as no port (#​627)
Addressable::Template
  • fixes denial of service in Addressable::Template#match and #extract, which still backtracked exponentially in 2.9.0 for exploded /, ., ;, ? and & expressions (e.g. {/path*}) on regex engines without match memoization, such as JRuby, TruffleRuby and MRI before 3.2; match results are unchanged (GHSA-j82w-28jv-3pmj)
  • fixes denial of service in Addressable::Template#match and #extract, which backtracked polynomially or exponentially on the same regex engines for expressions with several variables (e.g. {/owner,repo,ref}, or {+a,b,c} with many variables), for ; expressions, and for adjacent expressions (e.g. {+a}{+b}{+c} or {+a}{b}); match results are unchanged (GHSA-9f42-57jx-vpp3)
  • fixes denial of service in Addressable::Template#match and #extract, which backtracked polynomially for expressions with several exploded variables (e.g. {+a*,b*}), including on MRI 3.2; match results are unchanged (GHSA-4w5q-wg7v-w6gp)
  • fixes Addressable::Template#match and #extract raising Addressable::URI::InvalidURIError for a string that isn't a valid URI; they now return nil, as for any other URI that doesn't match (#​621)
Addressable::IDNA
  • fixes Addressable::IDNA.to_unicode in the pure-Ruby backend decoding Punycode labels that aren't valid A-labels: labels that decode to only ASCII characters (e.g. xn--google- decoded to google) and labels that don't convert back to themselves; such a label is now returned unchanged, as with libidn, so Addressable::URI#display_uri no longer shows a host that differs from #normalized_host (GHSA-9crm-g4mf-wc5j)
  • fixes Addressable::IDNA.to_unicode decoding Punycode labels with characters that change how a host displays without being visible themselves, such as bidi overrides and isolates (e.g. U+202E and U+2066), zero width characters and control characters; such a label is now returned unchanged, so Addressable::URI#display_uri no longer shows them. The pure-Ruby backend also no longer decodes labels with other characters that nameprep prohibits, as with libidn (GHSA-539f-xcgw-2gjg)
  • fixes Addressable::IDNA.to_unicode raising in the pure-Ruby backend for Punycode labels that are too long, overflow the decoder, or decode past U+10FFFF; the label is now returned unchanged, as with libidn, so Addressable::URI#display_uri no longer raises for such hosts (#​620)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Mend Renovate CLI.

Edited by GitLab Dependency Bot

Merge request reports

Loading
Loading