Loading
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
Addressable::URI
- fixes
Addressable::URIreturning stale values after a component was changed: e.g. afterhost=,#site,#normalized_site,#normalized_authorityand#normalizecould still use the old host, and afterscheme=,#normalized_portcould keep a port that's the new scheme's default (#613) - fixes
Addressable::URI#normalized_queryreusing the result of an earlier call with different flags: e.g. afternormalized_query(:sorted),normalized_queryand#normalizegave a sorted query, and afternormalized_query,normalized_query(:sorted)gave an unsorted one (#608) - fixes
Addressable::URI#clonesharing component strings with the original: e.g. appending to the clone's#hostalso changed the original's host, but not its cached normalized values;#dupalready made a separate copy (#617) - fixes the "instance variable @validation_deferred not initialized" warning
that 2.9.1 gave for every new
Addressable::URIon Ruby before 3.0 with warnings enabled, and a "shadowing outer local variable" warning fromAddressable::Templateon Ruby 2.4 and 2.5 (#637)
Addressable::Template
- fixes
Addressable::Template#expandand#partial_expandchanging the arrays given as values: e.g.[1, :a]became["1", "a"]; a frozen array raisedFrozenError, and an object that responds toto_aryraisedTypeError(#605)
Addressable::IDNA
- fixes the pure-Ruby
Addressable::IDNA.to_unicoderaisingZeroDivisionErroron some malformed labels, e.g.xn--rp3=, which also madeAddressable::URI#display_uriraise, 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::IDNAwas loaded with warnings enabled (#636)
v2.9.1
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_pathkeeping segments that a..should have removed after a..above the root, e.g./../../public/x/../../secretnormalized to/public/x/secretinstead of/secret(GHSA-8gmh-2hhj-2hv9) - fixes
Addressable::URI.normalize_pathtreating a raw line feed as a segment boundary, e.g. joining..\n/secretonto/public/gave/\n/secret - deprecates
Addressable::URI::RULE_2A,RULE_2B_2C,RULE_2DandRULE_PREFIXED_PARENT, which are no longer used; they will be removed in 2.10.0 - fixes
Addressable::URI#route_fromand#route_toraisingInvalidURIErrorwhen the route's first segment contains a colon (e.g./a:bfrom/a); the route is now./a:b(#625) - fixes
Addressable::URI#display_uriraisingInvalidURIErrorfor URIs without a host, such asabcormailto:user@example.com; relative URIs are also no longer displayed with an empty authority (e.g./path/towas displayed as///path/to) (#610) - fixes
Addressable::URI#origin=raisingInvalidURIErrorfor 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#matchand#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#matchand#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#matchand#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#matchand#extractraisingAddressable::URI::InvalidURIErrorfor a string that isn't a valid URI; they now returnnil, as for any other URI that doesn't match (#621)
Addressable::IDNA
- fixes
Addressable::IDNA.to_unicodein 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 togoogle) and labels that don't convert back to themselves; such a label is now returned unchanged, as with libidn, soAddressable::URI#display_urino longer shows a host that differs from#normalized_host(GHSA-9crm-g4mf-wc5j) - fixes
Addressable::IDNA.to_unicodedecoding 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, soAddressable::URI#display_urino 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_unicoderaising 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, soAddressable::URI#display_urino longer raises for such hosts (#620)
Configuration
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
- 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