Skip to content

Commit b2ec704

Browse files
committed
build,deps: replace cjs-module-lexer with merve
1 parent 98d2331 commit b2ec704

Some content is hidden

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

44 files changed

+2175
-8561
lines changed

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+
- commonjs-lexer, located at deps/commonjs-lexer, 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:

configure.py

Lines changed: 24 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

@@ -556,7 +554,6 @@
556554
dest='shared_simdutf_libpath',
557555
help='a directory to search for the shared simdutf DLL')
558556

559-
560557
shared_optgroup.add_argument('--shared-ada',
561558
action='store_true',
562559
dest='shared_ada',
@@ -579,6 +576,28 @@
579576
dest='shared_ada_libpath',
580577
help='a directory to search for the shared ada DLL')
581578

579+
shared_optgroup.add_argument('--shared-merve',
580+
action='store_true',
581+
dest='shared_merve',
582+
default=None,
583+
help='link to a shared merve DLL instead of static linking')
584+
585+
shared_optgroup.add_argument('--shared-merve-includes',
586+
action='store',
587+
dest='shared_merve_includes',
588+
help='directory containing merve header files')
589+
590+
shared_optgroup.add_argument('--shared-merve-libname',
591+
action='store',
592+
dest='shared_merve_libname',
593+
default='merve',
594+
help='alternative lib name to link to [default: %(default)s]')
595+
596+
shared_optgroup.add_argument('--shared-merve-libpath',
597+
action='store',
598+
dest='shared_merve_libpath',
599+
help='a directory to search for the shared merve DLL')
600+
582601
shared_optgroup.add_argument('--shared-brotli',
583602
action='store_true',
584603
dest='shared_brotli',
@@ -2482,6 +2501,7 @@ def make_bin_override():
24822501
configure_library('cares', output, pkgname='libcares')
24832502
configure_library('gtest', output)
24842503
configure_library('hdr_histogram', output)
2504+
configure_library('merve', output)
24852505
configure_library('nbytes', output)
24862506
configure_library('nghttp2', output, pkgname='libnghttp2')
24872507
configure_library('nghttp3', output, pkgname='libnghttp3')

deps/cjs-module-lexer/LICENSE

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

0 commit comments

Comments
 (0)