File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 29
29
#include < unicode/uversion.h>
30
30
#endif // NODE_HAVE_I18N_SUPPORT
31
31
32
+ // version definitions of pure js deps
33
+ #define UNDICI_VERSION " 5.12.0"
34
+
32
35
namespace node {
33
36
34
37
namespace per_process {
@@ -90,6 +93,7 @@ Metadata::Versions::Versions() {
90
93
std::to_string ((BrotliEncoderVersion () & 0xFFF000 ) >> 12 ) +
91
94
" ." +
92
95
std::to_string (BrotliEncoderVersion () & 0xFFF );
96
+ undici = UNDICI_VERSION;
93
97
94
98
uvwasi = UVWASI_VERSION_STRING;
95
99
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ namespace node {
38
38
V (nghttp2) \
39
39
V (napi) \
40
40
V (llhttp) \
41
- V (uvwasi)
41
+ V (uvwasi) \
42
+ V (undici)
42
43
43
44
#if HAVE_OPENSSL
44
45
#define NODE_VERSIONS_KEY_CRYPTO (V ) V(openssl)
@@ -57,8 +58,8 @@ namespace node {
57
58
#endif // NODE_HAVE_I18N_SUPPORT
58
59
59
60
#ifdef OPENSSL_INFO_QUIC
60
- #define NODE_VERSIONS_KEY_QUIC (V ) \
61
- V (ngtcp2) \
61
+ #define NODE_VERSIONS_KEY_QUIC (V ) \
62
+ V (ngtcp2) \
62
63
V(nghttp3)
63
64
#else
64
65
#define NODE_VERSIONS_KEY_QUIC (V )
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ rm -f deps/undici/undici.js
26
26
" $NODE " " $NPM " install --global-style --no-bin-links --ignore-scripts undici
27
27
cd node_modules/undici
28
28
" $NODE " " $NPM " run build:node
29
+ # get the new version of undici
30
+ UNDICI_VERSION=$( " $NODE " -p " require('./package.json').version" )
31
+ # update this version information in src/node_metadata.cc
32
+ sed -i ' ' " s/UNDICI_VERSION \" [0-9.]*\" /UNDICI_VERSION \" $UNDICI_VERSION \" /" " $ROOT /src/node_metadata.cc"
33
+ # commit these changes
34
+ git add " $ROOT /src/node_metadata.cc"
35
+ git commit -m " src: update undici version to $UNDICI_VERSION "
29
36
)
30
37
31
38
mv undici-tmp/node_modules/undici deps/undici/src
You can’t perform that action at this time.
0 commit comments