File tree Expand file tree Collapse file tree 7 files changed +53
-2
lines changed Expand file tree Collapse file tree 7 files changed +53
-2
lines changed 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_
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_
Original file line number Diff line number Diff line change 22#include " acorn_version.h"
33#include " ada.h"
44#include " ares.h"
5+ #include " base64_version.h"
56#include " brotli/encode.h"
7+ #include " cjs_module_lexer_version.h"
68#include " llhttp.h"
79#include " nghttp2/nghttp2ver.h"
810#include " node.h"
@@ -97,8 +99,10 @@ Metadata::Versions::Versions() {
9799#ifndef NODE_SHARED_BUILTIN_UNDICI_UNDICI_PATH
98100 undici = UNDICI_VERSION;
99101#endif
100- acorn = ACORN_VERSION;
101102
103+ acorn = ACORN_VERSION;
104+ cjs_module_lexer = CJS_MODULE_LEXER_VERSION;
105+ base64 = BASE64_VERSION;
102106 uvwasi = UVWASI_VERSION_STRING;
103107
104108#if HAVE_OPENSSL
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ namespace node {
4848 V (acorn) \
4949 V (simdutf) \
5050 V (ada) \
51- NODE_VERSIONS_KEY_UNDICI (V)
51+ NODE_VERSIONS_KEY_UNDICI (V) \
52+ V (cjs_module_lexer) \
53+ V (base64)
5254
5355#if HAVE_OPENSSL
5456#define NODE_VERSIONS_KEY_CRYPTO (V ) V(openssl)
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const assert = require('assert');
44
55// Import of pure js (non-shared) deps for comparison
66const acorn = require ( '../../deps/acorn/acorn/package.json' ) ;
7+ const cjs_module_lexer = require ( '../../deps/cjs-module-lexer/package.json' ) ;
78
89const expected_keys = [
910 'ares' ,
@@ -19,6 +20,8 @@ const expected_keys = [
1920 'acorn' ,
2021 'simdutf' ,
2122 'ada' ,
23+ 'cjs_module_lexer' ,
24+ 'base64' ,
2225] ;
2326
2427const hasUndici = process . config . variables . node_builtin_shareable_builtins . includes ( 'deps/undici/undici.js' ) ;
@@ -69,6 +72,7 @@ assert.match(
6972 / ^ \d + \. \d + \. \d + (?: \. \d + ) ? - n o d e \. \d + (?: \( c a n d i d a t e \) ) ? $ /
7073) ;
7174assert . match ( process . versions . modules , / ^ \d + $ / ) ;
75+ assert . match ( process . versions . cjs_module_lexer , commonTemplate ) ;
7276
7377if ( common . hasCrypto ) {
7478 const versionRegex = common . hasOpenSSL3 ?
@@ -97,3 +101,5 @@ if (hasUndici) {
97101
98102const expectedAcornVersion = acorn . version ;
99103assert . strictEqual ( process . versions . acorn , expectedAcornVersion ) ;
104+ const expectedCjsModuleLexerVersion = cjs_module_lexer . version ;
105+ assert . strictEqual ( process . versions . cjs_module_lexer , expectedCjsModuleLexerVersion ) ;
Original file line number Diff line number Diff line change 22set -e
33# Shell script to update base64 in the source tree to a specific version
44
5+ update_base64_version (){
6+ FILE_PATH=" $BASE_DIR /src/base64_version.h"
7+ echo " // This is an auto generated file, please do not edit." > " $FILE_PATH "
8+ echo " // Refer to tools/dep_updaters/update-base64.sh" >> " $FILE_PATH "
9+ echo " #ifndef SRC_BASE64_VERSION_H_" >> " $FILE_PATH "
10+ echo " #define SRC_BASE64_VERSION_H_" >> " $FILE_PATH "
11+ echo " #define BASE64_VERSION \" $1 \" " >> " $FILE_PATH "
12+ echo " #endif // SRC_BASE64_VERSION_H_" >> " $FILE_PATH "
13+ }
14+
515BASE_DIR=$( cd " $( dirname " $0 " ) /../.." && pwd)
616DEPS_DIR=" $BASE_DIR /deps"
717
@@ -59,6 +69,9 @@ echo "$ git add -A deps/base64/base64"
5969echo " $ git commit -m \" deps: update base64 to $NEW_VERSION \" "
6070echo " "
6171
72+ # update the base64_version.h
73+ update_base64_version " $NEW_VERSION "
74+
6275# The last line of the script should always print the new version,
6376# as we need to add it to $GITHUB_ENV variable.
6477echo " NEW_VERSION=$NEW_VERSION "
Original file line number Diff line number Diff line change 22set -e
33# Shell script to update cjs-module-lexer in the source tree to a specific version
44
5+ # update cjs_module_lexer_version.h
6+ update_cjs_module_lexer_version (){
7+ FILE_PATH=" $BASE_DIR /src/cjs_module_lexer_version.h"
8+ echo " // This is an auto generated file, please do not edit." > " $FILE_PATH "
9+ echo " // Refer to tools/dep_updaters/update-cjs-module-lexer.sh" >> " $FILE_PATH "
10+ echo " #ifndef SRC_CJS_MODULE_LEXER_VERSION_H_" >> " $FILE_PATH "
11+ echo " #define SRC_CJS_MODULE_LEXER_VERSION_H_" >> " $FILE_PATH "
12+ echo " #define CJS_MODULE_LEXER_VERSION \" $1 \" " >> " $FILE_PATH "
13+ echo " #endif // SRC_CJS_MODULE_LEXER_VERSION_H_" >> " $FILE_PATH "
14+ }
15+
516BASE_DIR=$( cd " $( dirname " $0 " ) /../.." && pwd)
617
718DEPS_DIR=" $BASE_DIR /deps"
@@ -58,6 +69,9 @@ echo "$ git add -A deps/cjs-module-lexer"
5869echo " $ git commit -m \" deps: update cjs-module-lexer to $NEW_VERSION \" "
5970echo " "
6071
72+ # update cjs_module_lexer_version.h
73+ update_cjs_module_lexer_version " $NEW_VERSION "
74+
6175# The last line of the script should always print the new version,
6276# as we need to add it to $GITHUB_ENV variable.
6377echo " NEW_VERSION=$NEW_VERSION "
You can’t perform that action at this time.
0 commit comments