Skip to content

Commit 8b9e334

Browse files
committed
Merge branch 'main' of https://github.com/NotVivek12/node
2 parents cd5904f + 5ec963a commit 8b9e334

File tree

91 files changed

+2854
-8788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2854
-8788
lines changed

.github/workflows/test-shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
--arg ccache '(import <nixpkgs> {}).sccache' \
199199
--arg devTools '[]' \
200200
--arg benchmarkTools '[]' \
201-
${{ endsWith(matrix.system, '-darwin') && '--arg withAmaro false --arg withSQLite false --arg extraConfigFlags ''["--without-inspector" "--without-node-options"]'' \' || '\' }}
201+
${{ endsWith(matrix.system, '-darwin') && '--arg withAmaro false --arg withLief false --arg withSQLite false --arg extraConfigFlags ''["--without-inspector" "--without-node-options"]'' \' || '\' }}
202202
--run '
203203
make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9 --skip-tests=$CI_SKIP_TESTS"
204204
'

.github/workflows/tools.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- amaro
2020
- brotli
2121
- c-ares
22-
- cjs-module-lexer
22+
- merve
2323
- corepack
2424
- googletest
2525
- gyp-next
@@ -105,11 +105,11 @@ jobs:
105105
cat temp-output
106106
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
107107
rm temp-output
108-
- id: cjs-module-lexer
108+
- id: merve
109109
subsystem: deps
110110
label: dependencies
111111
run: |
112-
./tools/dep_updaters/update-cjs-module-lexer.sh > temp-output
112+
./tools/dep_updaters/update-merve.sh > temp-output
113113
cat temp-output
114114
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
115115
rm temp-output

LICENSE

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,26 @@ The externally maintained libraries used by Node.js are:
104104
SOFTWARE.
105105
"""
106106

107-
- cjs-module-lexer, located at deps/cjs-module-lexer, is licensed as follows:
107+
- merve, located at deps/merve, is licensed as follows:
108108
"""
109-
MIT License
110-
-----------
111-
112-
Copyright (C) 2018-2020 Guy Bedford
109+
Copyright 2026 Yagiz Nizipli
113110

114-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
111+
Permission is hereby granted, free of charge, to any person obtaining a copy of
112+
this software and associated documentation files (the "Software"), to deal in
113+
the Software without restriction, including without limitation the rights to
114+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
115+
the Software, and to permit persons to whom the Software is furnished to do so,
116+
subject to the following conditions:
115117

116-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
118+
The above copyright notice and this permission notice shall be included in all
119+
copies or substantial portions of the Software.
117120

118-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
121+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
122+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
123+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
124+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
125+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
126+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
119127
"""
120128

121129
- ittapi, located at deps/v8/third_party/ittapi, is licensed as follows:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,7 @@ ifeq ($(SKIP_SHARED_DEPS), 1)
12391239
$(RM) -r $(TARNAME)/deps/histogram
12401240
$(RM) -r $(TARNAME)/deps/icu-small
12411241
$(RM) -r $(TARNAME)/deps/icu-tmp
1242+
$(RM) -r $(TARNAME)/deps/LIEF
12421243
$(RM) -r $(TARNAME)/deps/llhttp
12431244
$(RM) -r $(TARNAME)/deps/nbytes
12441245
$(RM) -r $(TARNAME)/deps/nghttp2

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Reset this number to 0 on major V8 upgrades.
4040
# Increment by one for each non-official patch applied to deps/v8.
41-
'v8_embedder_string': '-node.10',
41+
'v8_embedder_string': '-node.11',
4242

4343
##### V8 defaults for Node.js #####
4444

configure.py

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@
5858
maglev_enabled_architectures = ('x64', 'arm', 'arm64', 's390x')
5959

6060
# builtins may be removed later if they have been disabled by options
61-
shareable_builtins = {'cjs_module_lexer/lexer': 'deps/cjs-module-lexer/lexer.js',
62-
'cjs_module_lexer/dist/lexer': 'deps/cjs-module-lexer/dist/lexer.js',
63-
'undici/undici': 'deps/undici/undici.js',
61+
shareable_builtins = {'undici/undici': 'deps/undici/undici.js',
6462
'amaro/dist/index': 'deps/amaro/dist/index.js'
6563
}
6664

@@ -357,6 +355,28 @@
357355
dest='shared_libuv_libpath',
358356
help='a directory to search for the shared libuv DLL')
359357

358+
shared_optgroup.add_argument('--shared-lief',
359+
action='store_true',
360+
dest='shared_lief',
361+
default=None,
362+
help='link to a shared lief DLL instead of static linking')
363+
364+
shared_optgroup.add_argument('--shared-lief-includes',
365+
action='store',
366+
dest='shared_lief_includes',
367+
help='directory containing lief header files')
368+
369+
shared_optgroup.add_argument('--shared-lief-libname',
370+
action='store',
371+
dest='shared_lief_libname',
372+
default='LIEF',
373+
help='alternative lib name to link to [default: %(default)s]')
374+
375+
shared_optgroup.add_argument('--shared-lief-libpath',
376+
action='store',
377+
dest='shared_lief_libpath',
378+
help='a directory to search for the shared lief DLL')
379+
360380
shared_optgroup.add_argument('--shared-nbytes',
361381
action='store_true',
362382
dest='shared_nbytes',
@@ -556,7 +576,6 @@
556576
dest='shared_simdutf_libpath',
557577
help='a directory to search for the shared simdutf DLL')
558578

559-
560579
shared_optgroup.add_argument('--shared-ada',
561580
action='store_true',
562581
dest='shared_ada',
@@ -579,6 +598,28 @@
579598
dest='shared_ada_libpath',
580599
help='a directory to search for the shared ada DLL')
581600

601+
shared_optgroup.add_argument('--shared-merve',
602+
action='store_true',
603+
dest='shared_merve',
604+
default=None,
605+
help='link to a shared merve DLL instead of static linking')
606+
607+
shared_optgroup.add_argument('--shared-merve-includes',
608+
action='store',
609+
dest='shared_merve_includes',
610+
help='directory containing merve header files')
611+
612+
shared_optgroup.add_argument('--shared-merve-libname',
613+
action='store',
614+
dest='shared_merve_libname',
615+
default='merve',
616+
help='alternative lib name to link to [default: %(default)s]')
617+
618+
shared_optgroup.add_argument('--shared-merve-libpath',
619+
action='store',
620+
dest='shared_merve_libpath',
621+
help='a directory to search for the shared merve DLL')
622+
582623
shared_optgroup.add_argument('--shared-brotli',
583624
action='store_true',
584625
dest='shared_brotli',
@@ -2101,6 +2142,14 @@ def without_ssl_error(option):
21012142

21022143
o['variables']['openssl_version'] = get_openssl_version(o)
21032144

2145+
def configure_lief(o):
2146+
if options.without_lief:
2147+
if options.shared_lief:
2148+
error('--without-lief is incompatible with --shared-lief')
2149+
return
2150+
2151+
configure_library('lief', o, pkgname='LIEF')
2152+
21042153
def configure_sqlite(o):
21052154
o['variables']['node_use_sqlite'] = b(not options.without_sqlite)
21062155
if options.without_sqlite:
@@ -2558,10 +2607,12 @@ def make_bin_override():
25582607
configure_library('cares', output, pkgname='libcares')
25592608
configure_library('gtest', output)
25602609
configure_library('hdr_histogram', output)
2610+
configure_library('merve', output)
25612611
configure_library('nbytes', output)
25622612
configure_library('nghttp2', output, pkgname='libnghttp2')
25632613
configure_library('nghttp3', output, pkgname='libnghttp3')
25642614
configure_library('ngtcp2', output, pkgname='libngtcp2')
2615+
configure_lief(output);
25652616
configure_sqlite(output);
25662617
configure_library('temporal_capi', output)
25672618
configure_library('uvwasi', output)

deps/cjs-module-lexer/LICENSE

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)