GeezerVison is showing github.com — src: add cjs_module_lexer_version base64_version · nodejs/node@cc7bf1f
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +// This is an auto generated file, please do not edit. | | 2 | +// Refer to tools/dep_updaters/update-base64.sh | | 3 | +#ifndef SRC_BASE64_VERSION_H_ | | 4 | +#define SRC_BASE64_VERSION_H_ | | 5 | +#define BASE64_VERSION "0.5.0" | | 6 | +#endif // SRC_BASE64_VERSION_H_ |
Collapse file Copy file name to clipboard +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +// This is an auto generated file, please do not edit. | | 2 | +// Refer to tools/dep_updaters/update-cjs-module-lexer.sh | | 3 | +#ifndef SRC_CJS_MODULE_LEXER_VERSION_H_ | | 4 | +#define SRC_CJS_MODULE_LEXER_VERSION_H_ | | 5 | +#define CJS_MODULE_LEXER_VERSION "1.2.2" | | 6 | +#endif // SRC_CJS_MODULE_LEXER_VERSION_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/node_metadata.cc +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | #include "acorn_version.h" | 3 | 3 | #include "ada.h" | 4 | 4 | #include "ares.h" | | 5 | +#include "base64_version.h" | 5 | 6 | #include "brotli/encode.h" | | 7 | +#include "cjs_module_lexer_version.h" | 6 | 8 | #include "llhttp.h" | 7 | 9 | #include "nghttp2/nghttp2ver.h" | 8 | 10 | #include "node.h" | @@ -97,8 +99,10 @@ Metadata::Versions::Versions() { | 97 | 99 | #ifndef NODE_SHARED_BUILTIN_UNDICI_UNDICI_PATH | 98 | 100 | undici = UNDICI_VERSION; | 99 | 101 | #endif | 100 | | - acorn = ACORN_VERSION; | 101 | 102 |
| | 103 | + acorn = ACORN_VERSION; | | 104 | + cjs_module_lexer = CJS_MODULE_LEXER_VERSION; | | 105 | + base64 = BASE64_VERSION; | 102 | 106 | uvwasi = UVWASI_VERSION_STRING; | 103 | 107 |
| 104 | 108 | #if HAVE_OPENSSL | |
Collapse file Copy file name to clipboardExpand all lines: src/node_metadata.h +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,9 @@ namespace node { | 48 | 48 | V(acorn) \ | 49 | 49 | V(simdutf) \ | 50 | 50 | V(ada) \ | 51 | | - NODE_VERSIONS_KEY_UNDICI(V) | | 51 | + NODE_VERSIONS_KEY_UNDICI(V) \ | | 52 | + V(cjs_module_lexer) \ | | 53 | + V(base64) | 52 | 54 |
| 53 | 55 | #if HAVE_OPENSSL | 54 | 56 | #define NODE_VERSIONS_KEY_CRYPTO(V) V(openssl) | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-process-versions.js +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,6 +4,7 @@ const assert = require('assert'); | 4 | 4 |
| 5 | 5 | // Import of pure js (non-shared) deps for comparison | 6 | 6 | const acorn = require('../../deps/acorn/acorn/package.json'); | | 7 | +const cjs_module_lexer = require('../../deps/cjs-module-lexer/package.json'); | 7 | 8 |
| 8 | 9 | const expected_keys = [ | 9 | 10 | 'ares', | @@ -19,6 +20,8 @@ const expected_keys = [ | 19 | 20 | 'acorn', | 20 | 21 | 'simdutf', | 21 | 22 | 'ada', | | 23 | + 'cjs_module_lexer', | | 24 | + 'base64', | 22 | 25 | ]; | 23 | 26 |
| 24 | 27 | const hasUndici = process.config.variables.node_builtin_shareable_builtins.includes('deps/undici/undici.js'); | @@ -69,6 +72,7 @@ assert.match( | 69 | 72 | /^\d+\.\d+\.\d+(?:\.\d+)?-node\.\d+(?: \(candidate\))?$/ | 70 | 73 | ); | 71 | 74 | assert.match(process.versions.modules, /^\d+$/); | | 75 | +assert.match(process.versions.cjs_module_lexer, commonTemplate); | 72 | 76 |
| 73 | 77 | if (common.hasCrypto) { | 74 | 78 | const versionRegex = common.hasOpenSSL3 ? | @@ -97,3 +101,5 @@ if (hasUndici) { | 97 | 101 |
| 98 | 102 | const expectedAcornVersion = acorn.version; | 99 | 103 | assert.strictEqual(process.versions.acorn, expectedAcornVersion); | | 104 | +const expectedCjsModuleLexerVersion = cjs_module_lexer.version; | | 105 | +assert.strictEqual(process.versions.cjs_module_lexer, expectedCjsModuleLexerVersion); |
Collapse file Copy file name to clipboardExpand all lines: tools/dep_updaters/update-base64.sh +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -71,6 +71,16 @@ echo "$ git add -A deps/base64/base64 src/base64_version.h" | 71 | 71 | echo "$ git commit -m \"deps: update base64 to $NEW_VERSION\"" | 72 | 72 | echo "" | 73 | 73 |
| | 74 | +# update the base64_version.h | | 75 | +cat > "$BASE_DIR/src/base64_version.h" << EOL | | 76 | +// This is an auto generated file, please do not edit. | | 77 | +// Refer to tools/dep_updaters/update-base64.sh | | 78 | +#ifndef SRC_BASE64_VERSION_H_ | | 79 | +#define SRC_BASE64_VERSION_H_ | | 80 | +#define BASE64_VERSION "$NEW_VERSION" | | 81 | +#endif // SRC_BASE64_VERSION_H_ | | 82 | +EOL | | 83 | + | 74 | 84 | # The last line of the script should always print the new version, | 75 | 85 | # as we need to add it to $GITHUB_ENV variable. | 76 | 86 | echo "NEW_VERSION=$NEW_VERSION" |
Collapse file Copy file name to clipboardExpand all lines: tools/dep_updaters/update-cjs-module-lexer.sh +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -58,6 +58,16 @@ echo "$ git add -A deps/cjs-module-lexer src/cjs_module_lexer_version.h" | 58 | 58 | echo "$ git commit -m \"deps: update cjs-module-lexer to $NEW_VERSION\"" | 59 | 59 | echo "" | 60 | 60 |
| | 61 | +# update cjs_module_lexer_version.h | | 62 | +cat > "$BASE_DIR/src/cjs_module_lexer_version.h" << EOL | | 63 | +// This is an auto generated file, please do not edit. | | 64 | +// Refer to tools/dep_updaters/update-cjs-module-lexer.sh | | 65 | +#ifndef SRC_CJS_MODULE_LEXER_VERSION_H_ | | 66 | +#define SRC_CJS_MODULE_LEXER_VERSION_H_ | | 67 | +#define CJS_MODULE_LEXER_VERSION "$NEW_VERSION" | | 68 | +#endif // SRC_CJS_MODULE_LEXER_VERSION_H_ | | 69 | +EOL | | 70 | + | 61 | 71 | # The last line of the script should always print the new version, | 62 | 72 | # as we need to add it to $GITHUB_ENV variable. | 63 | 73 | echo "NEW_VERSION=$NEW_VERSION" |
|