deps: update cjs-module-lexer to 2.1.0
Some checks are pending
Coverage Linux (without intl) / coverage-linux-without-intl (push) Waiting to run
Coverage Linux / coverage-linux (push) Waiting to run
Coverage Windows / coverage-windows (push) Waiting to run
Test and upload documentation to artifacts / build-docs (push) Waiting to run
Linters / lint-addon-docs (push) Waiting to run
Linters / lint-cpp (push) Waiting to run
Linters / format-cpp (push) Waiting to run
Linters / lint-js-and-md (push) Waiting to run
Linters / lint-py (push) Waiting to run
Linters / lint-yaml (push) Waiting to run
Linters / lint-sh (push) Waiting to run
Linters / lint-codeowners (push) Waiting to run
Linters / lint-pr-url (push) Waiting to run
Linters / lint-readme (push) Waiting to run
Notify on Push / Notify on Force Push on `main` (push) Waiting to run
Notify on Push / Notify on Push on `main` that lacks metadata (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run

PR-URL: https://github.com/nodejs/node/pull/57180
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Node.js GitHub Bot 2025-02-24 19:53:37 -05:00 committed by GitHub
parent 9e103b09a4
commit 9fd90d9df7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 59 additions and 10 deletions

View File

@ -456,6 +456,25 @@ If you need to build lib/lexer.wat (optional) you must first install
[wabt](https://github.com/WebAssembly/wabt) as a sibling folder to this
project. The wat file is then build by running `make lib/lexer.wat`
### Creating a Release
These are the steps to create and publish a release. You will need docker
installed as well as having installed [wabt](https://github.com/WebAssembly/wabt)
as outlined above:
- [ ] Figure out if the release should be semver patch, minor or major based on the changes since
the last release and determine the new version.
- [ ] Update the package.json version, and run a full build and test
- npm install
- npm run build
- npm run test
- [ ] Commit and tag the changes, pushing up to main and the tag
- For example
- `git tag -a 1.4.2 -m "1.4.2"`
- `git push origin tag 1.4.2`
- [ ] Create the GitHub release
- [ ] Run npm publish from an account with access (asking somebody with access
the nodejs-foundation account is an option if you don't have access.
### License
MIT

File diff suppressed because one or more lines are too long

View File

@ -456,6 +456,25 @@ If you need to build lib/lexer.wat (optional) you must first install
[wabt](https://github.com/WebAssembly/wabt) as a sibling folder to this
project. The wat file is then build by running `make lib/lexer.wat`
### Creating a Release
These are the steps to create and publish a release. You will need docker
installed as well as having installed [wabt](https://github.com/WebAssembly/wabt)
as outlined above:
- [ ] Figure out if the release should be semver patch, minor or major based on the changes since
the last release and determine the new version.
- [ ] Update the package.json version, and run a full build and test
- npm install
- npm run build
- npm run test
- [ ] Commit and tag the changes, pushing up to main and the tag
- For example
- `git tag -a 1.4.2 -m "1.4.2"`
- `git push origin tag 1.4.2`
- [ ] Create the GitHub release
- [ ] Run npm publish from an account with access (asking somebody with access
the nodejs-foundation account is an option if you don't have access.
### License
MIT

View File

@ -1,10 +1,21 @@
# These flags depend on the system and may be overridden
WASM_CC := clang
WASM_CFLAGS := --sysroot=/usr/share/wasi-sysroot
WASM_LDFLAGS := -nostartfiles
# These are project-specific and are expected to be kept intact
WASM_TARGET := -target wasm32-unknown-wasi
WASM_EXTRA_CFLAGS := -I include-wasm/ -Wno-logical-op-parentheses -Wno-parentheses -Oz
WASM_EXTRA_LDFLAGS := -Wl,-z,stack-size=13312,--no-entry,--compress-relocations,--strip-all
WASM_EXTRA_LDFLAGS += -Wl,--export=__heap_base,--export=parseCJS,--export=sa
WASM_EXTRA_LDFLAGS += -Wl,--export=e,--export=re,--export=es,--export=ee
WASM_EXTRA_LDFLAGS += -Wl,--export=rre,--export=ree,--export=res,--export=ru,--export=us,--export=ue
lib/lexer.wasm: include-wasm/cjs-module-lexer.h src/lexer.c
@mkdir -p lib
clang --sysroot=/usr/share/wasi-sysroot -target wasm32-unknown-wasi src/lexer.c -I include-wasm -o lib/lexer.wasm -nostartfiles \
-Wl,-z,stack-size=13312,--no-entry,--compress-relocations,--strip-all,--export=__heap_base,\
--export=parseCJS,--export=sa,--export=e,--export=re,--export=es,--export=ee,--export=rre,--export=ree,--export=res,--export=ru,--export=us,--export=ue \
-Wno-logical-op-parentheses -Wno-parentheses \
-Oz
$(WASM_CC) $(WASM_CFLAGS) $(WASM_TARGET) $(WASM_EXTRA_CFLAGS) \
src/lexer.c -o lib/lexer.wasm \
$(WASM_LDFLAGS) $(WASM_EXTRA_LDFLAGS)
optimize: lib/lexer.wasm
${WASM_OPT} -Oz lib/lexer.wasm -o lib/lexer.wasm

View File

@ -1,12 +1,12 @@
{
"name": "cjs-module-lexer",
"version": "2.0.0",
"version": "2.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cjs-module-lexer",
"version": "2.0.0",
"version": "2.1.0",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.5.5",

View File

@ -1,6 +1,6 @@
{
"name": "cjs-module-lexer",
"version": "2.0.0",
"version": "2.1.0",
"description": "Lexes CommonJS modules, returning their named exports metadata",
"main": "lexer.js",
"exports": {

View File

@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-cjs-module-lexer.sh
#ifndef SRC_CJS_MODULE_LEXER_VERSION_H_
#define SRC_CJS_MODULE_LEXER_VERSION_H_
#define CJS_MODULE_LEXER_VERSION "2.0.0"
#define CJS_MODULE_LEXER_VERSION "2.1.0"
#endif // SRC_CJS_MODULE_LEXER_VERSION_H_