Skip to content

Commit 37a747a

Browse files
authored
Version 1.26.0 (#113)
1 parent 07214c2 commit 37a747a

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22

33
build:
4-
os: ubuntu-22.04
4+
os: ubuntu-24.04
55
tools:
66
python: "3.11"
77
jobs:

ada_url/ada.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
1+
/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
22
/* begin file src/ada.cpp */
33
#include "ada.h"
44
/* begin file src/checkers.cpp */
@@ -9511,12 +9511,14 @@ bool is_label_valid(const std::u32string_view label) {
95119511
for (size_t i = 0; i <= last_non_nsm_char; i++) {
95129512
const direction d = find_direction(label[i]);
95139513

9514+
// NOLINTBEGIN(bugprone-assignment-in-if-condition)
95149515
// In an RTL label, if an EN is present, no AN may be present, and vice
95159516
// versa.
95169517
if ((d == direction::EN && ((has_en = true) && has_an)) ||
95179518
(d == direction::AN && ((has_an = true) && has_en))) {
95189519
return false;
95199520
}
9521+
// NOLINTEND(bugprone-assignment-in-if-condition)
95209522

95219523
if (!(d == direction::R || d == direction::AL || d == direction::AN ||
95229524
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[],
1090810910
}
1090910911
ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
1091010912
" bytes");
10913+
// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
1091110914
out.append(input.data(), std::distance(input.begin(), pointer));
1091210915
ada_log("percent_encode processing ", std::distance(pointer, input.end()),
1091310916
" bytes");
@@ -10942,6 +10945,7 @@ bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
1094210945
std::string percent_encode(const std::string_view input,
1094310946
const uint8_t character_set[], size_t index) {
1094410947
std::string out;
10948+
// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
1094510949
out.append(input.data(), index);
1094610950
auto pointer = input.begin() + index;
1094710951
for (; pointer != input.end(); pointer++) {
@@ -12008,6 +12012,7 @@ ada_warn_unused std::string to_string(ada::state state) {
1200812012

1200912013
#include <numeric>
1201012014
#include <algorithm>
12015+
#include <iterator>
1201112016
#include <ranges>
1201212017
#include <string>
1201312018
#include <string_view>
@@ -12570,6 +12575,7 @@ ada_really_inline void url::parse_path(std::string_view input) {
1257012575
if (has_search()) {
1257112576
answer.append(",\n");
1257212577
answer.append("\t\"query\":\"");
12578+
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
1257312579
helpers::encode_json(query.value(), back);
1257412580
answer.append("\"");
1257512581
}
@@ -13316,6 +13322,7 @@ result_type parse_url_impl(std::string_view user_input,
1331613322

1331713323
// If c is U+002F (/), then set state to relative slash state.
1331813324
if ((input_position != input_size) &&
13325+
// NOLINTNEXTLINE(bugprone-branch-clone)
1331913326
(url_data[input_position] == '/')) {
1332013327
ada_log(
1332113328
"RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
@@ -13848,6 +13855,7 @@ template url_aggregator parse_url<url_aggregator>(
1384813855
/* end file src/parser.cpp */
1384913856
/* begin file src/url_components.cpp */
1385013857

13858+
#include <iterator>
1385113859
#include <string>
1385213860

1385313861
namespace ada {
@@ -13897,6 +13905,7 @@ namespace ada {
1389713905
/* end file src/url_components.cpp */
1389813906
/* begin file src/url_aggregator.cpp */
1389913907

13908+
#include <iterator>
1390013909
#include <ranges>
1390113910
#include <string>
1390213911
#include <string_view>

ada_url/ada.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
1+
/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
22
/* begin file include/ada.h */
33
/**
44
* @file ada.h
@@ -947,7 +947,7 @@ constexpr uint8_t WWW_FORM_URLENCODED_PERCENT_ENCODE[32] = {
947947
// 50 51 52 53 54 55 56 57
948948
0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
949949
// 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,
951951
// 60 61 62 63 64 65 66 67
952952
0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
953953
// 68 69 6A 6B 6C 6D 6E 6F
@@ -6641,6 +6641,7 @@ inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
66416641
out.protocol_end = uint32_t(get_protocol().size());
66426642

66436643
// Trailing index is always the next character of the current one.
6644+
// NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores)
66446645
size_t running_index = out.protocol_end;
66456646

66466647
if (host.has_value()) {
@@ -10514,14 +10515,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
1051410515
#ifndef ADA_ADA_VERSION_H
1051510516
#define ADA_ADA_VERSION_H
1051610517

10517-
#define ADA_VERSION "3.2.6"
10518+
#define ADA_VERSION "3.2.7"
1051810519

1051910520
namespace ada {
1052010521

1052110522
enum {
1052210523
ADA_VERSION_MAJOR = 3,
1052310524
ADA_VERSION_MINOR = 2,
10524-
ADA_VERSION_REVISION = 6,
10525+
ADA_VERSION_REVISION = 7,
1052510526
};
1052610527

1052710528
} // namespace ada

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ada-url"
7-
version = "1.25.0"
7+
version = "1.26.0"
88
authors = [
99
{name = "Bo Bayles", email = "[email protected]"},
1010
]

0 commit comments

Comments
 (0)