mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
deps: update cjs-module-lexer to 2.1.0
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
|
[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`
|
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
|
### License
|
||||||
|
|
||||||
MIT
|
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
|
[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`
|
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
|
### License
|
||||||
|
|
||||||
MIT
|
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
|
lib/lexer.wasm: include-wasm/cjs-module-lexer.h src/lexer.c
|
||||||
@mkdir -p lib
|
@mkdir -p lib
|
||||||
clang --sysroot=/usr/share/wasi-sysroot -target wasm32-unknown-wasi src/lexer.c -I include-wasm -o lib/lexer.wasm -nostartfiles \
|
$(WASM_CC) $(WASM_CFLAGS) $(WASM_TARGET) $(WASM_EXTRA_CFLAGS) \
|
||||||
-Wl,-z,stack-size=13312,--no-entry,--compress-relocations,--strip-all,--export=__heap_base,\
|
src/lexer.c -o lib/lexer.wasm \
|
||||||
--export=parseCJS,--export=sa,--export=e,--export=re,--export=es,--export=ee,--export=rre,--export=ree,--export=res,--export=ru,--export=us,--export=ue \
|
$(WASM_LDFLAGS) $(WASM_EXTRA_LDFLAGS)
|
||||||
-Wno-logical-op-parentheses -Wno-parentheses \
|
|
||||||
-Oz
|
|
||||||
|
|
||||||
optimize: lib/lexer.wasm
|
optimize: lib/lexer.wasm
|
||||||
${WASM_OPT} -Oz lib/lexer.wasm -o 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",
|
"name": "cjs-module-lexer",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cjs-module-lexer",
|
"name": "cjs-module-lexer",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.5.5",
|
"@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",
|
"name": "cjs-module-lexer",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"description": "Lexes CommonJS modules, returning their named exports metadata",
|
"description": "Lexes CommonJS modules, returning their named exports metadata",
|
||||||
"main": "lexer.js",
|
"main": "lexer.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@
|
||||||
// Refer to tools/dep_updaters/update-cjs-module-lexer.sh
|
// Refer to tools/dep_updaters/update-cjs-module-lexer.sh
|
||||||
#ifndef SRC_CJS_MODULE_LEXER_VERSION_H_
|
#ifndef SRC_CJS_MODULE_LEXER_VERSION_H_
|
||||||
#define 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_
|
#endif // SRC_CJS_MODULE_LEXER_VERSION_H_
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user