ada-url 1.25.0__cp311-cp311-musllinux_1_2_x86_64.whl → 1.27.0__cp311-cp311-musllinux_1_2_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ada-url might be problematic. Click here for more details.

Binary file
ada_url/ada.cpp CHANGED
@@ -1,4 +1,4 @@
1
- /* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
1
+ /* auto-generated on 2025-09-23 12:57:35 -0400. Do not edit! */
2
2
  /* begin file src/ada.cpp */
3
3
  #include "ada.h"
4
4
  /* begin file src/checkers.cpp */
@@ -9511,12 +9511,14 @@ bool is_label_valid(const std::u32string_view label) {
9511
9511
  for (size_t i = 0; i <= last_non_nsm_char; i++) {
9512
9512
  const direction d = find_direction(label[i]);
9513
9513
 
9514
+ // NOLINTBEGIN(bugprone-assignment-in-if-condition)
9514
9515
  // In an RTL label, if an EN is present, no AN may be present, and vice
9515
9516
  // versa.
9516
9517
  if ((d == direction::EN && ((has_en = true) && has_an)) ||
9517
9518
  (d == direction::AN && ((has_an = true) && has_en))) {
9518
9519
  return false;
9519
9520
  }
9521
+ // NOLINTEND(bugprone-assignment-in-if-condition)
9520
9522
 
9521
9523
  if (!(d == direction::R || d == direction::AL || d == direction::AN ||
9522
9524
  d == direction::EN || d == direction::ES || d == direction::CS ||
@@ -10908,6 +10910,7 @@ bool percent_encode(const std::string_view input, const uint8_t character_set[],
10908
10910
  }
10909
10911
  ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
10910
10912
  " bytes");
10913
+ // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
10911
10914
  out.append(input.data(), std::distance(input.begin(), pointer));
10912
10915
  ada_log("percent_encode processing ", std::distance(pointer, input.end()),
10913
10916
  " bytes");
@@ -10942,6 +10945,7 @@ bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
10942
10945
  std::string percent_encode(const std::string_view input,
10943
10946
  const uint8_t character_set[], size_t index) {
10944
10947
  std::string out;
10948
+ // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
10945
10949
  out.append(input.data(), index);
10946
10950
  auto pointer = input.begin() + index;
10947
10951
  for (; pointer != input.end(); pointer++) {
@@ -12008,6 +12012,7 @@ ada_warn_unused std::string to_string(ada::state state) {
12008
12012
 
12009
12013
  #include <numeric>
12010
12014
  #include <algorithm>
12015
+ #include <iterator>
12011
12016
  #include <ranges>
12012
12017
  #include <string>
12013
12018
  #include <string_view>
@@ -12570,6 +12575,7 @@ ada_really_inline void url::parse_path(std::string_view input) {
12570
12575
  if (has_search()) {
12571
12576
  answer.append(",\n");
12572
12577
  answer.append("\t\"query\":\"");
12578
+ // NOLINTNEXTLINE(bugprone-unchecked-optional-access)
12573
12579
  helpers::encode_json(query.value(), back);
12574
12580
  answer.append("\"");
12575
12581
  }
@@ -13316,6 +13322,7 @@ result_type parse_url_impl(std::string_view user_input,
13316
13322
 
13317
13323
  // If c is U+002F (/), then set state to relative slash state.
13318
13324
  if ((input_position != input_size) &&
13325
+ // NOLINTNEXTLINE(bugprone-branch-clone)
13319
13326
  (url_data[input_position] == '/')) {
13320
13327
  ada_log(
13321
13328
  "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
@@ -13848,6 +13855,7 @@ template url_aggregator parse_url<url_aggregator>(
13848
13855
  /* end file src/parser.cpp */
13849
13856
  /* begin file src/url_components.cpp */
13850
13857
 
13858
+ #include <iterator>
13851
13859
  #include <string>
13852
13860
 
13853
13861
  namespace ada {
@@ -13897,6 +13905,7 @@ namespace ada {
13897
13905
  /* end file src/url_components.cpp */
13898
13906
  /* begin file src/url_aggregator.cpp */
13899
13907
 
13908
+ #include <iterator>
13900
13909
  #include <ranges>
13901
13910
  #include <string>
13902
13911
  #include <string_view>
@@ -15832,7 +15841,11 @@ tl::expected<std::string, errors> url_pattern_init::process_search(
15832
15841
  if (value.starts_with("?")) {
15833
15842
  value.remove_prefix(1);
15834
15843
  }
15835
- ADA_ASSERT_TRUE(!value.starts_with("?"));
15844
+ // We cannot assert that the value is no longer starting with a single
15845
+ // question mark because technically it can start. The question is whether or
15846
+ // not we should remove the first question mark. Ref:
15847
+ // https://github.com/ada-url/ada/pull/992 The spec is not clear on this.
15848
+
15836
15849
  // If type is "pattern" then return strippedValue.
15837
15850
  if (type == process_type::pattern) {
15838
15851
  return std::string(value);
@@ -16273,7 +16286,10 @@ tl::expected<std::string, errors> canonicalize_search(std::string_view input) {
16273
16286
  url->set_search(input);
16274
16287
  if (url->has_search()) {
16275
16288
  const auto search = url->get_search();
16276
- return std::string(search.substr(1));
16289
+ if (!search.empty()) {
16290
+ return std::string(search.substr(1));
16291
+ }
16292
+ return "";
16277
16293
  }
16278
16294
  return tl::unexpected(errors::type_error);
16279
16295
  }
@@ -16293,7 +16309,10 @@ tl::expected<std::string, errors> canonicalize_hash(std::string_view input) {
16293
16309
  // Return dummyURL's fragment.
16294
16310
  if (url->has_hash()) {
16295
16311
  const auto hash = url->get_hash();
16296
- return std::string(hash.substr(1));
16312
+ if (!hash.empty()) {
16313
+ return std::string(hash.substr(1));
16314
+ }
16315
+ return "";
16297
16316
  }
16298
16317
  return tl::unexpected(errors::type_error);
16299
16318
  }
ada_url/ada.h CHANGED
@@ -1,4 +1,4 @@
1
- /* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
1
+ /* auto-generated on 2025-09-23 12:57:35 -0400. Do not edit! */
2
2
  /* begin file include/ada.h */
3
3
  /**
4
4
  * @file ada.h
@@ -947,7 +947,7 @@ constexpr uint8_t WWW_FORM_URLENCODED_PERCENT_ENCODE[32] = {
947
947
  // 50 51 52 53 54 55 56 57
948
948
  0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
949
949
  // 58 59 5A 5B 5C 5D 5E 5F
950
- 0x00 | 0x00 | 0x00 | 0x08 | 0x00 | 0x20 | 0x40 | 0x00,
950
+ 0x00 | 0x00 | 0x00 | 0x08 | 0x10 | 0x20 | 0x40 | 0x00,
951
951
  // 60 61 62 63 64 65 66 67
952
952
  0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
953
953
  // 68 69 6A 6B 6C 6D 6E 6F
@@ -6641,6 +6641,7 @@ inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
6641
6641
  out.protocol_end = uint32_t(get_protocol().size());
6642
6642
 
6643
6643
  // Trailing index is always the next character of the current one.
6644
+ // NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores)
6644
6645
  size_t running_index = out.protocol_end;
6645
6646
 
6646
6647
  if (host.has_value()) {
@@ -10514,14 +10515,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
10514
10515
  #ifndef ADA_ADA_VERSION_H
10515
10516
  #define ADA_ADA_VERSION_H
10516
10517
 
10517
- #define ADA_VERSION "3.2.6"
10518
+ #define ADA_VERSION "3.3.0"
10518
10519
 
10519
10520
  namespace ada {
10520
10521
 
10521
10522
  enum {
10522
10523
  ADA_VERSION_MAJOR = 3,
10523
- ADA_VERSION_MINOR = 2,
10524
- ADA_VERSION_REVISION = 6,
10524
+ ADA_VERSION_MINOR = 3,
10525
+ ADA_VERSION_REVISION = 0,
10525
10526
  };
10526
10527
 
10527
10528
  } // namespace ada
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ada-url
3
- Version: 1.25.0
3
+ Version: 1.27.0
4
4
  Summary: URL parser and manipulator based on the WHAT WG URL standard
5
5
  Author-email: Bo Bayles <bo@bbayles.com>
6
6
  License: Apache 2.0
@@ -1,16 +1,16 @@
1
+ ada_url-1.27.0.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
2
+ ada_url-1.27.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
3
+ ada_url-1.27.0.dist-info/METADATA,sha256=-2knqxS8NeE4YeKUmoTCSkX-6rBTXdFIQjsTlRBNSuo,4824
4
+ ada_url-1.27.0.dist-info/RECORD,,
5
+ ada_url-1.27.0.dist-info/licenses/LICENSE,sha256=9D0P_RQ1VlnPOXk6EgYFdtrLIXu1d2jtwnDnMS67qEQ,1060
1
6
  docs/conf.py,sha256=cn270pOmLLUH2msNwTcHCa1uo1un0qR1_pz8WSuoRi8,636
2
- ada_url.libs/libgcc_s-a0b57c20.so.1,sha256=XPAr2giQZFaQKDEig3i_sQM7zfbaGkuhwmZ9ryvu-Vk,148041
3
7
  ada_url.libs/libstdc++-0d31ccbe.so.6.0.32,sha256=QyUTnI2umnGgPmNJ-6F_BVIAJnq6-70cNoEWpma6EFQ,3494521
4
- ada_url-1.25.0.dist-info/METADATA,sha256=-hXzLKXCzsfy24oSHq15qt4d8A4WWyKewKypISp5_u8,4824
5
- ada_url-1.25.0.dist-info/RECORD,,
6
- ada_url-1.25.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
7
- ada_url-1.25.0.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
8
- ada_url-1.25.0.dist-info/licenses/LICENSE,sha256=9D0P_RQ1VlnPOXk6EgYFdtrLIXu1d2jtwnDnMS67qEQ,1060
9
- ada_url/__init__.py,sha256=spKYm9if-a8MLSbi5BuqiGerwUOBangUbev4XG3jEGA,563
10
- ada_url/ada_build.py,sha256=jpg4zcFSkprqDlE4c6Vvo0zB0IGTCeaNs5NAO2nT7KE,925
11
- ada_url/ada.h,sha256=yKRmOcoSNIujf0xz-NHpwCICRn6rCdqULfYW0XaMJ_Q,384414
8
+ ada_url.libs/libgcc_s-a0b57c20.so.1,sha256=XPAr2giQZFaQKDEig3i_sQM7zfbaGkuhwmZ9ryvu-Vk,148041
9
+ ada_url/ada_c.h,sha256=lkVK8vQs1woICCDOp_S9aw2_Y4Y7THRiTFBrkCYKnFI,7349
12
10
  ada_url/ada_adapter.py,sha256=37WOSXf1b67xCIKvdhFOEXVC_59R1ExRwpbUg3XyQRw,21594
11
+ ada_url/ada_build.py,sha256=jpg4zcFSkprqDlE4c6Vvo0zB0IGTCeaNs5NAO2nT7KE,925
12
+ ada_url/ada.cpp,sha256=HjIldDlhmYUQyHyapZVy7UQc-J1-GS5LkNB1TCt0uU8,960366
13
+ ada_url/_ada_wrapper.abi3.so,sha256=ZcF9W5bDSdNWeSdP5i5cN20aiamTfpngdvx7lSNozXo,4279953
14
+ ada_url/ada.h,sha256=X2DycIt6b_Tt4bqkWyrSq8YTwttEgwmfzoZTsMsEIro,384470
13
15
  ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- ada_url/_ada_wrapper.abi3.so,sha256=Ag4mL8gTgCOsdqT5elTVF0EZtVrX2wqbxHlh1eJgTzo,4279953
15
- ada_url/ada.cpp,sha256=DYoq-LkiukGznsi4K67xHiQtYFBswD8s4VwkeyPYM1c,959611
16
- ada_url/ada_c.h,sha256=lkVK8vQs1woICCDOp_S9aw2_Y4Y7THRiTFBrkCYKnFI,7349
16
+ ada_url/__init__.py,sha256=spKYm9if-a8MLSbi5BuqiGerwUOBangUbev4XG3jEGA,563