Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: 2

build:
os: ubuntu-22.04
os: ubuntu-lts-latest
tools:
python: "3.11"
jobs:
pre_install:
- g++ --version
- make requirements
- make package
- python -m pip install -e .
Expand Down
11 changes: 10 additions & 1 deletion ada_url/ada.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
/* begin file src/ada.cpp */
#include "ada.h"
/* begin file src/checkers.cpp */
Expand Down Expand Up @@ -9511,12 +9511,14 @@ bool is_label_valid(const std::u32string_view label) {
for (size_t i = 0; i <= last_non_nsm_char; i++) {
const direction d = find_direction(label[i]);

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

if (!(d == direction::R || d == direction::AL || d == direction::AN ||
d == direction::EN || d == direction::ES || d == direction::CS ||
Expand Down Expand Up @@ -10908,6 +10910,7 @@ bool percent_encode(const std::string_view input, const uint8_t character_set[],
}
ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
" bytes");
// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
out.append(input.data(), std::distance(input.begin(), pointer));
ada_log("percent_encode processing ", std::distance(pointer, input.end()),
" bytes");
Expand Down Expand Up @@ -10942,6 +10945,7 @@ bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
std::string percent_encode(const std::string_view input,
const uint8_t character_set[], size_t index) {
std::string out;
// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
out.append(input.data(), index);
auto pointer = input.begin() + index;
for (; pointer != input.end(); pointer++) {
Expand Down Expand Up @@ -12008,6 +12012,7 @@ ada_warn_unused std::string to_string(ada::state state) {

#include <numeric>
#include <algorithm>
#include <iterator>
#include <ranges>
#include <string>
#include <string_view>
Expand Down Expand Up @@ -12570,6 +12575,7 @@ ada_really_inline void url::parse_path(std::string_view input) {
if (has_search()) {
answer.append(",\n");
answer.append("\t\"query\":\"");
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
helpers::encode_json(query.value(), back);
answer.append("\"");
}
Expand Down Expand Up @@ -13316,6 +13322,7 @@ result_type parse_url_impl(std::string_view user_input,

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

#include <iterator>
#include <string>

namespace ada {
Expand Down Expand Up @@ -13897,6 +13905,7 @@ namespace ada {
/* end file src/url_components.cpp */
/* begin file src/url_aggregator.cpp */

#include <iterator>
#include <ranges>
#include <string>
#include <string_view>
Expand Down
9 changes: 5 additions & 4 deletions ada_url/ada.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
/* begin file include/ada.h */
/**
* @file ada.h
Expand Down Expand Up @@ -947,7 +947,7 @@ constexpr uint8_t WWW_FORM_URLENCODED_PERCENT_ENCODE[32] = {
// 50 51 52 53 54 55 56 57
0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
// 58 59 5A 5B 5C 5D 5E 5F
0x00 | 0x00 | 0x00 | 0x08 | 0x00 | 0x20 | 0x40 | 0x00,
0x00 | 0x00 | 0x00 | 0x08 | 0x10 | 0x20 | 0x40 | 0x00,
// 60 61 62 63 64 65 66 67
0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
// 68 69 6A 6B 6C 6D 6E 6F
Expand Down Expand Up @@ -6641,6 +6641,7 @@ inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
out.protocol_end = uint32_t(get_protocol().size());

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

if (host.has_value()) {
Expand Down Expand Up @@ -10514,14 +10515,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
#ifndef ADA_ADA_VERSION_H
#define ADA_ADA_VERSION_H

#define ADA_VERSION "3.2.6"
#define ADA_VERSION "3.2.7"

namespace ada {

enum {
ADA_VERSION_MAJOR = 3,
ADA_VERSION_MINOR = 2,
ADA_VERSION_REVISION = 6,
ADA_VERSION_REVISION = 7,
};

} // namespace ada
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ada-url"
version = "1.25.0"
version = "1.26.0"
authors = [
{name = "Bo Bayles", email = "bo@bbayles.com"},
]
Expand Down
Loading