ada-url 1.26.0__pp39-pypy39_pp73-macosx_11_0_arm64.whl → 1.27.0__pp39-pypy39_pp73-macosx_11_0_arm64.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-27 12:29:50 -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 */
@@ -15841,7 +15841,11 @@ tl::expected<std::string, errors> url_pattern_init::process_search(
15841
15841
  if (value.starts_with("?")) {
15842
15842
  value.remove_prefix(1);
15843
15843
  }
15844
- 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
+
15845
15849
  // If type is "pattern" then return strippedValue.
15846
15850
  if (type == process_type::pattern) {
15847
15851
  return std::string(value);
@@ -16282,7 +16286,10 @@ tl::expected<std::string, errors> canonicalize_search(std::string_view input) {
16282
16286
  url->set_search(input);
16283
16287
  if (url->has_search()) {
16284
16288
  const auto search = url->get_search();
16285
- return std::string(search.substr(1));
16289
+ if (!search.empty()) {
16290
+ return std::string(search.substr(1));
16291
+ }
16292
+ return "";
16286
16293
  }
16287
16294
  return tl::unexpected(errors::type_error);
16288
16295
  }
@@ -16302,7 +16309,10 @@ tl::expected<std::string, errors> canonicalize_hash(std::string_view input) {
16302
16309
  // Return dummyURL's fragment.
16303
16310
  if (url->has_hash()) {
16304
16311
  const auto hash = url->get_hash();
16305
- return std::string(hash.substr(1));
16312
+ if (!hash.empty()) {
16313
+ return std::string(hash.substr(1));
16314
+ }
16315
+ return "";
16306
16316
  }
16307
16317
  return tl::unexpected(errors::type_error);
16308
16318
  }
ada_url/ada.h CHANGED
@@ -1,4 +1,4 @@
1
- /* auto-generated on 2025-07-27 12:29:50 -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
@@ -10515,14 +10515,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
10515
10515
  #ifndef ADA_ADA_VERSION_H
10516
10516
  #define ADA_ADA_VERSION_H
10517
10517
 
10518
- #define ADA_VERSION "3.2.7"
10518
+ #define ADA_VERSION "3.3.0"
10519
10519
 
10520
10520
  namespace ada {
10521
10521
 
10522
10522
  enum {
10523
10523
  ADA_VERSION_MAJOR = 3,
10524
- ADA_VERSION_MINOR = 2,
10525
- ADA_VERSION_REVISION = 7,
10524
+ ADA_VERSION_MINOR = 3,
10525
+ ADA_VERSION_REVISION = 0,
10526
10526
  };
10527
10527
 
10528
10528
  } // namespace ada
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ada-url
3
- Version: 1.26.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
@@ -0,0 +1,14 @@
1
+ docs/conf.py,sha256=cn270pOmLLUH2msNwTcHCa1uo1un0qR1_pz8WSuoRi8,636
2
+ ada_url-1.27.0.dist-info/RECORD,,
3
+ ada_url-1.27.0.dist-info/WHEEL,sha256=h4p1eftXCEYoGn2DMvSX7RbLbomNEiNCSs2r4gMwxYg,114
4
+ ada_url-1.27.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
5
+ ada_url-1.27.0.dist-info/METADATA,sha256=-2knqxS8NeE4YeKUmoTCSkX-6rBTXdFIQjsTlRBNSuo,4824
6
+ ada_url-1.27.0.dist-info/licenses/LICENSE,sha256=9D0P_RQ1VlnPOXk6EgYFdtrLIXu1d2jtwnDnMS67qEQ,1060
7
+ ada_url/ada_c.h,sha256=lkVK8vQs1woICCDOp_S9aw2_Y4Y7THRiTFBrkCYKnFI,7349
8
+ ada_url/_ada_wrapper.pypy39-pp73-darwin.so,sha256=cLZb3joJlhc2ms8MNbLmIGFFgBE_ECzRVPHeCPRVrdg,585312
9
+ ada_url/__init__.py,sha256=spKYm9if-a8MLSbi5BuqiGerwUOBangUbev4XG3jEGA,563
10
+ ada_url/ada.h,sha256=X2DycIt6b_Tt4bqkWyrSq8YTwttEgwmfzoZTsMsEIro,384470
11
+ ada_url/ada_build.py,sha256=jpg4zcFSkprqDlE4c6Vvo0zB0IGTCeaNs5NAO2nT7KE,925
12
+ ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ ada_url/ada_adapter.py,sha256=37WOSXf1b67xCIKvdhFOEXVC_59R1ExRwpbUg3XyQRw,21594
14
+ ada_url/ada.cpp,sha256=HjIldDlhmYUQyHyapZVy7UQc-J1-GS5LkNB1TCt0uU8,960366
@@ -1,14 +0,0 @@
1
- ada_url-1.26.0.dist-info/RECORD,,
2
- ada_url-1.26.0.dist-info/WHEEL,sha256=h4p1eftXCEYoGn2DMvSX7RbLbomNEiNCSs2r4gMwxYg,114
3
- ada_url-1.26.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
4
- ada_url-1.26.0.dist-info/METADATA,sha256=YYupqiVI3k71M0kFir820fcfwgBxBqvuJmXpooorM3Y,4824
5
- ada_url-1.26.0.dist-info/licenses/LICENSE,sha256=9D0P_RQ1VlnPOXk6EgYFdtrLIXu1d2jtwnDnMS67qEQ,1060
6
- docs/conf.py,sha256=cn270pOmLLUH2msNwTcHCa1uo1un0qR1_pz8WSuoRi8,636
7
- ada_url/ada_c.h,sha256=lkVK8vQs1woICCDOp_S9aw2_Y4Y7THRiTFBrkCYKnFI,7349
8
- ada_url/_ada_wrapper.pypy39-pp73-darwin.so,sha256=zkSeatgoIBqPghoFNFmz8-5ZiegFUQdN-wGdlcV5xuQ,603152
9
- ada_url/__init__.py,sha256=spKYm9if-a8MLSbi5BuqiGerwUOBangUbev4XG3jEGA,563
10
- ada_url/ada.h,sha256=mmt73PB1mteeKAyK45Riu0N5OlB5dCr2zZA4IY-4Jvs,384470
11
- ada_url/ada_build.py,sha256=jpg4zcFSkprqDlE4c6Vvo0zB0IGTCeaNs5NAO2nT7KE,925
12
- ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- ada_url/ada_adapter.py,sha256=37WOSXf1b67xCIKvdhFOEXVC_59R1ExRwpbUg3XyQRw,21594
14
- ada_url/ada.cpp,sha256=crmfvwmcbL3EkbzQ50RFGafzBc6IcoJHzZ8e2uoekLs,960026