diff --git a/.changeset/great-stingrays-sparkle.md b/.changeset/great-stingrays-sparkle.md new file mode 100644 index 00000000..247ae8a7 --- /dev/null +++ b/.changeset/great-stingrays-sparkle.md @@ -0,0 +1,5 @@ +--- +'nxjs-runtime': patch +--- + +Add `Switch.version.wasm3` diff --git a/packages/runtime/src/switch.ts b/packages/runtime/src/switch.ts index 5acce2e2..8c2971bb 100644 --- a/packages/runtime/src/switch.ts +++ b/packages/runtime/src/switch.ts @@ -370,6 +370,7 @@ export interface Versions { png: string; quickjs: string; turbojpeg: string; + wasm3: string; webp: string; } diff --git a/source/main.c b/source/main.c index 059dbc9b..fcc54024 100644 --- a/source/main.c +++ b/source/main.c @@ -478,6 +478,7 @@ int main(int argc, char *argv[]) JS_SetPropertyStr(ctx, version_obj, "png", JS_NewString(ctx, PNG_LIBPNG_VER_STRING)); JS_SetPropertyStr(ctx, version_obj, "quickjs", JS_NewString(ctx, QUICKJS_VERSION)); JS_SetPropertyStr(ctx, version_obj, "turbojpeg", JS_NewString(ctx, LIBTURBOJPEG_VERSION)); + JS_SetPropertyStr(ctx, version_obj, "wasm3", JS_NewString(ctx, M3_VERSION)); const int webp_version = WebPGetDecoderVersion(); char webp_version_str[12]; snprintf(webp_version_str, 12, "%d.%d.%d", (webp_version >> 16) & 0xFF, (webp_version >> 8) & 0xFF, webp_version & 0xFF);