mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
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
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:
parent
9e103b09a4
commit
9fd90d9df7
19
deps/cjs-module-lexer/README.md
vendored
19
deps/cjs-module-lexer/README.md
vendored
@ -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
|
||||
|
2
deps/cjs-module-lexer/dist/lexer.mjs
vendored
2
deps/cjs-module-lexer/dist/lexer.mjs
vendored
File diff suppressed because one or more lines are too long
19
deps/cjs-module-lexer/src/README.md
vendored
19
deps/cjs-module-lexer/src/README.md
vendored
@ -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
|
||||
|
21
deps/cjs-module-lexer/src/build/Makefile
vendored
21
deps/cjs-module-lexer/src/build/Makefile
vendored
@ -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
|
||||
|
4
deps/cjs-module-lexer/src/package-lock.json
generated
vendored
4
deps/cjs-module-lexer/src/package-lock.json
generated
vendored
@ -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",
|
||||
|
2
deps/cjs-module-lexer/src/package.json
vendored
2
deps/cjs-module-lexer/src/package.json
vendored
@ -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": {
|
||||
|
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user