Skip to content

Commit 7d6c27e

Browse files
anonrigMylesBorins
authored andcommitted
deps: add ada as a dependency
PR-URL: #46410 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
1 parent 89aa161 commit 7d6c27e

File tree

10 files changed

+7027
-1
lines changed

10 files changed

+7027
-1
lines changed

.github/workflows/tools.yml

+10
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ jobs:
144144
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
145145
./tools/dep_updaters/update-simdutf.sh "$NEW_VERSION"
146146
fi
147+
- id: ada
148+
subsystem: deps
149+
label: dependencies
150+
run: |
151+
NEW_VERSION=$(gh api repos/ada-url/ada/releases/latest -q '.tag_name|ltrimstr("v")')
152+
CURRENT_VERSION=$(grep "#define ADA_VERSION" ./deps/ada/ada.h | sed -n "s/^.*VERSION \(.*\)/\1/p")
153+
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
154+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
155+
./tools/dep_updaters/update-ada.sh "$NEW_VERSION"
156+
fi
147157
steps:
148158
- uses: actions/checkout@v3
149159
with:

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,28 @@ The externally maintained libraries used by Node.js are:
13381338
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13391339
"""
13401340

1341+
- ada, located at deps/ada, is licensed as follows:
1342+
"""
1343+
Copyright 2023 Ada authors
1344+
1345+
Permission is hereby granted, free of charge, to any person obtaining a copy of
1346+
this software and associated documentation files (the "Software"), to deal in
1347+
the Software without restriction, including without limitation the rights to
1348+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1349+
the Software, and to permit persons to whom the Software is furnished to do so,
1350+
subject to the following conditions:
1351+
1352+
The above copyright notice and this permission notice shall be included in all
1353+
copies or substantial portions of the Software.
1354+
1355+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1356+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1357+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1358+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1359+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1360+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1361+
"""
1362+
13411363
- npm, located at deps/npm, is licensed as follows:
13421364
"""
13431365
The npm application

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ with-code-cache test-code-cache:
170170

171171
out/Makefile: config.gypi common.gypi node.gyp \
172172
deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
173-
deps/simdutf/simdutf.gyp \
173+
deps/simdutf/simdutf.gyp deps/ada/ada.gyp \
174174
tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \
175175
tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
176176
$(PYTHON) tools/gyp_node.py -f make

deps/ada/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ada
2+
3+
This project implements WHATWG URL specification in a performant way.
4+
5+
The source is pulled from: https://github.com/ada-url/ada
6+
7+
Active development occurs in the default branch (currently named `main`).
8+
9+
## Updating
10+
11+
See [tools/dep_updaters/README.md#ada](../../tools/dep_updaters/README.md#ada)
12+
for instructions.

0 commit comments

Comments
 (0)