Skip to content

Commit

Permalink
Add Switch.version.zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 31, 2024
1 parent 432d708 commit 7edd81f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-apples-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nx.js/runtime": patch
---

Add `Switch.version.zstd`
1 change: 1 addition & 0 deletions packages/runtime/src/switch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface Versions {
readonly wasm3: string;
readonly webp: string;
readonly zlib: string;
readonly zstd: string;
}

export interface Vibration {
Expand Down
2 changes: 2 additions & 0 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,8 @@ int main(int argc, char *argv[]) {
JS_SetPropertyStr(ctx, version_obj, "webp", JS_NewString(ctx, version_str));
JS_SetPropertyStr(ctx, version_obj, "zlib",
JS_NewString(ctx, zlibVersion()));
JS_SetPropertyStr(ctx, version_obj, "zstd",
JS_NewString(ctx, ZSTD_versionString()));
JS_SetPropertyStr(ctx, nx_ctx->init_obj, "version", version_obj);

// `Switch.entrypoint`
Expand Down

0 comments on commit 7edd81f

Please sign in to comment.