Skip to content

Commit 08fbcf7

Browse files
authored
Updates for ada 3.1.2 / version 1.19.0 (#103)
1 parent c3b9793 commit 08fbcf7

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

ada_url/ada.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-02-23 20:08:55 -0500. Do not edit! */
1+
/* auto-generated on 2025-02-25 13:08:18 -0500. Do not edit! */
22
/* begin file src/ada.cpp */
33
#include "ada.h"
44
/* begin file src/checkers.cpp */

ada_url/ada.h

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-02-23 20:08:55 -0500. Do not edit! */
1+
/* auto-generated on 2025-02-25 13:08:18 -0500. Do not edit! */
22
/* begin file include/ada.h */
33
/**
44
* @file ada.h
@@ -290,7 +290,8 @@ bool valid_name_code_point(char32_t input, bool first);
290290
ADA_DISABLE_GCC_WARNING("-Wreturn-type") \
291291
ADA_DISABLE_GCC_WARNING("-Wshadow") \
292292
ADA_DISABLE_GCC_WARNING("-Wunused-parameter") \
293-
ADA_DISABLE_GCC_WARNING("-Wunused-variable")
293+
ADA_DISABLE_GCC_WARNING("-Wunused-variable") \
294+
ADA_DISABLE_GCC_WARNING("-Wsign-compare")
294295
#define ADA_PRAGMA(P) _Pragma(#P)
295296
#define ADA_DISABLE_GCC_WARNING(WARNING) \
296297
ADA_PRAGMA(GCC diagnostic ignored WARNING)
@@ -9226,34 +9227,32 @@ result<std::optional<url_pattern_result>> url_pattern<regex_provider>::match(
92269227
// https://github.com/cloudflare/workerd/blob/8620d14012513a6ce04d079e401d3becac3c67bd/src/workerd/jsg/url.c%2B%2B#L2038
92279228
protocol = url->get_protocol().substr(0, url->get_protocol().size() - 1);
92289229
// Set username to url’s username.
9229-
username = std::move(url->get_username());
9230+
username = url->get_username();
92309231
// Set password to url’s password.
9231-
password = std::move(url->get_password());
9232+
password = url->get_password();
92329233
// Set hostname to url’s host, serialized, or the empty string if the value
92339234
// is null.
9234-
hostname = std::move(url->get_hostname());
9235+
hostname = url->get_hostname();
92359236
// Set port to url’s port, serialized, or the empty string if the value is
92369237
// null.
9237-
port = std::move(url->get_port());
9238+
port = url->get_port();
92389239
// Set pathname to the result of URL path serializing url.
9239-
pathname = std::move(url->get_pathname());
9240+
pathname = url->get_pathname();
92409241
// Set search to url’s query or the empty string if the value is null.
92419242
// IMPORTANT: Not documented on the URLPattern spec, but search prefix '?'
92429243
// is removed. Similar work was done on workerd:
92439244
// https://github.com/cloudflare/workerd/blob/8620d14012513a6ce04d079e401d3becac3c67bd/src/workerd/jsg/url.c%2B%2B#L2232
92449245
if (url->has_search()) {
92459246
auto view = url->get_search();
9246-
search =
9247-
view.starts_with("?") ? url->get_search().substr(1) : std::move(view);
9247+
search = view.starts_with("?") ? url->get_search().substr(1) : view;
92489248
}
92499249
// Set hash to url’s fragment or the empty string if the value is null.
92509250
// IMPORTANT: Not documented on the URLPattern spec, but hash prefix '#' is
92519251
// removed. Similar work was done on workerd:
92529252
// https://github.com/cloudflare/workerd/blob/8620d14012513a6ce04d079e401d3becac3c67bd/src/workerd/jsg/url.c%2B%2B#L2242
92539253
if (url->has_hash()) {
92549254
auto view = url->get_hash();
9255-
hash =
9256-
view.starts_with("#") ? url->get_hash().substr(1) : std::move(view);
9255+
hash = view.starts_with("#") ? url->get_hash().substr(1) : view;
92579256
}
92589257
}
92599258

@@ -10479,14 +10478,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
1047910478
#ifndef ADA_ADA_VERSION_H
1048010479
#define ADA_ADA_VERSION_H
1048110480

10482-
#define ADA_VERSION "3.1.1"
10481+
#define ADA_VERSION "3.1.2"
1048310482

1048410483
namespace ada {
1048510484

1048610485
enum {
1048710486
ADA_VERSION_MAJOR = 3,
1048810487
ADA_VERSION_MINOR = 1,
10489-
ADA_VERSION_REVISION = 1,
10488+
ADA_VERSION_REVISION = 2,
1049010489
};
1049110490

1049210491
} // namespace ada

pyproject.toml

+1-1
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.18.0"
7+
version = "1.19.0"
88
authors = [
99
{name = "Bo Bayles", email = "[email protected]"},
1010
]

0 commit comments

Comments
 (0)