From 874054f46906cb10223f6bc4809b8287b72574a6 Mon Sep 17 00:00:00 2001 From: Mike Roth Date: Tue, 10 Jan 2023 11:49:57 -0600 Subject: [PATCH] deps: add simdutf version to metadata PR-URL: https://github.com/nodejs/node/pull/46145 Reviewed-By: Yagiz Nizipli Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- src/node_metadata.cc | 3 +++ src/node_metadata.h | 1 + test/parallel/test-process-versions.js | 1 + 3 files changed, 5 insertions(+) diff --git a/src/node_metadata.cc b/src/node_metadata.cc index fefad37c894fd6..ed28871c385532 100644 --- a/src/node_metadata.cc +++ b/src/node_metadata.cc @@ -5,6 +5,7 @@ #include "llhttp.h" #include "nghttp2/nghttp2ver.h" #include "node.h" +#include "simdutf.h" #include "undici_version.h" #include "util.h" #include "uv.h" @@ -112,6 +113,8 @@ Metadata::Versions::Versions() { ngtcp2 = NGTCP2_VERSION; nghttp3 = NGHTTP3_VERSION; #endif + + simdutf = SIMDUTF_VERSION; } Metadata::Release::Release() : name(NODE_RELEASE) { diff --git a/src/node_metadata.h b/src/node_metadata.h index 6c29c0ebdd7c01..2a924141d6edba 100644 --- a/src/node_metadata.h +++ b/src/node_metadata.h @@ -46,6 +46,7 @@ namespace node { V(llhttp) \ V(uvwasi) \ V(acorn) \ + V(simdutf) \ NODE_VERSIONS_KEY_UNDICI(V) #if HAVE_OPENSSL diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index 54722cbf59ab66..d5775b5f99cbb1 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -18,6 +18,7 @@ const expected_keys = [ 'llhttp', 'uvwasi', 'acorn', + 'simdutf', ]; const hasUndici = process.config.variables.node_builtin_shareable_builtins.includes('deps/undici/undici.js');