From 1ef7bfc722de9c60012ab76eb30ef81db57672a3 Mon Sep 17 00:00:00 2001 From: Victor Adossi Date: Wed, 29 Jul 2026 19:49:34 +0900 Subject: [PATCH 1/3] feat(lang/js): add link to Jco book doc on resources This commit adds a link to the Jco book section on resources and how to use them in Wasm guests/hosts. While the Rust section is code-heavy, the JS section links out to avoid becoming inconsistent with the Jco, assuming it has the most up-to-date information. --- .../language-support/using-wit-resources/javascript.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 component-model/src/language-support/using-wit-resources/javascript.md diff --git a/component-model/src/language-support/using-wit-resources/javascript.md b/component-model/src/language-support/using-wit-resources/javascript.md new file mode 100644 index 00000000..bb099441 --- /dev/null +++ b/component-model/src/language-support/using-wit-resources/javascript.md @@ -0,0 +1,8 @@ +# Using WIT Resources (Javascript) + +[Resources](../../design/wit.md#resources) are handles to entities that live outside the component (i.e. in a host, or other component). + +The [Jco Book section on Resources][jco-book-resources] is the best place for up to date information on how to work with resources +for the Javascript toolcahin. + +[jco-book-resources]: https://bytecodealliance.github.io/jco/wit-type-representations.html#resources-resource From fab32dd215ec3eb4a7cd31ec8558b50b886c18f1 Mon Sep 17 00:00:00 2001 From: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com> Date: Thu, 30 Jul 2026 00:09:55 +0900 Subject: [PATCH 2/3] fix(lang/js): fix prose Co-authored-by: Kate Goldenring --- .../src/language-support/using-wit-resources/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component-model/src/language-support/using-wit-resources/javascript.md b/component-model/src/language-support/using-wit-resources/javascript.md index bb099441..c57b9f9f 100644 --- a/component-model/src/language-support/using-wit-resources/javascript.md +++ b/component-model/src/language-support/using-wit-resources/javascript.md @@ -2,7 +2,7 @@ [Resources](../../design/wit.md#resources) are handles to entities that live outside the component (i.e. in a host, or other component). -The [Jco Book section on Resources][jco-book-resources] is the best place for up to date information on how to work with resources +The [Jco book section on resources][jco-book-resources] is the best place for up to date information on how to work with resources for the Javascript toolcahin. [jco-book-resources]: https://bytecodealliance.github.io/jco/wit-type-representations.html#resources-resource From 5bc96eb00207ca544d4fb5d0ade3404c96815427 Mon Sep 17 00:00:00 2001 From: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com> Date: Thu, 30 Jul 2026 00:10:29 +0900 Subject: [PATCH 3/3] fix(lang/js): typo 'toolcahin' -> 'toolchain' Co-authored-by: Kate Goldenring --- .../src/language-support/using-wit-resources/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component-model/src/language-support/using-wit-resources/javascript.md b/component-model/src/language-support/using-wit-resources/javascript.md index c57b9f9f..34a6ade3 100644 --- a/component-model/src/language-support/using-wit-resources/javascript.md +++ b/component-model/src/language-support/using-wit-resources/javascript.md @@ -3,6 +3,6 @@ [Resources](../../design/wit.md#resources) are handles to entities that live outside the component (i.e. in a host, or other component). The [Jco book section on resources][jco-book-resources] is the best place for up to date information on how to work with resources -for the Javascript toolcahin. +for the Javascript toolchain. [jco-book-resources]: https://bytecodealliance.github.io/jco/wit-type-representations.html#resources-resource