From 87ff048566298e7f3401e27b663f266ac4f963b1 Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Fri, 6 Dec 2024 16:13:47 +0100 Subject: [PATCH] Use golem:api/host@1.1.0 --- examples/c/c-default/wit/component-name.wit | 2 +- examples/c/c-example-http/wit/component-name.wit | 2 +- examples/go/go-default-minimal/go.sum | 4 ++-- examples/go/go-default/go.sum | 4 ++-- examples/go/go-default/wit/component-name.wit | 2 +- examples/go/go-multi-rpc/README.md | 8 ++++---- .../component/wit/component.wit | 2 +- .../component-one/wit/component-one.wit | 2 +- .../pack-ns_component-three/component-three.wit | 2 +- .../deps/pack-ns_component-two/component-two.wit | 2 +- .../component-three/wit/component-three.wit | 2 +- .../component-two/wit/component-two.wit | 2 +- .../pack-ns_component-three/component-three.wit | 2 +- examples/go/go-multi-rpc/go.sum | 4 ++-- examples/js/js-default-minimal/rollup.config.mjs | 16 ++++++++-------- examples/js/js-default/rollup.config.mjs | 16 ++++++++-------- examples/js/js-default/wit/main.wit | 2 +- examples/js/js-example-fetch/rollup.config.mjs | 16 ++++++++-------- examples/js/js-example-fetch/wit/main.wit | 2 +- .../python/python-default/wit/component-name.wit | 2 +- examples/ts/ts-default-minimal/rollup.config.mjs | 16 ++++++++-------- examples/ts/ts-default/rollup.config.mjs | 16 ++++++++-------- examples/ts/ts-default/wit/main.wit | 2 +- examples/ts/ts-example-fetch/rollup.config.mjs | 16 ++++++++-------- examples/ts/ts-example-fetch/wit/main.wit | 2 +- examples/ts/ts-multi-rpc/README.md | 2 +- .../component/wit/main.wit.template | 2 +- .../src/components/component-one/main.ts | 2 +- .../wit/deps/pack-ns_component-three/main.wit | 2 +- .../wit/deps/pack-ns_component-two/main.wit | 2 +- .../src/components/component-one/wit/main.wit | 2 +- .../src/components/component-three/wit/main.wit | 2 +- .../src/components/component-two/main.ts | 2 +- .../wit/deps/pack-ns_component-three/main.wit | 2 +- .../src/components/component-two/wit/main.wit | 2 +- examples/zig/zig-default/wit/component-name.wit | 2 +- src/lib.rs | 1 + 37 files changed, 85 insertions(+), 84 deletions(-) diff --git a/examples/c/c-default/wit/component-name.wit b/examples/c/c-default/wit/component-name.wit index 0cfdb45..f66441a 100644 --- a/examples/c/c-default/wit/component-name.wit +++ b/examples/c/c-default/wit/component-name.wit @@ -8,7 +8,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/examples/c/c-example-http/wit/component-name.wit b/examples/c/c-example-http/wit/component-name.wit index 6a62103..b5bbd1f 100644 --- a/examples/c/c-example-http/wit/component-name.wit +++ b/examples/c/c-example-http/wit/component-name.wit @@ -9,7 +9,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/examples/go/go-default-minimal/go.sum b/examples/go/go-default-minimal/go.sum index 63a3b41..9dd8eef 100644 --- a/examples/go/go-default-minimal/go.sum +++ b/examples/go/go-default-minimal/go.sum @@ -1,2 +1,2 @@ -github.com/golemcloud/golem-go v0.7.0 h1:8zpNeAtEDJsJllqHUmjji/lyplSJ0kI3v7vN97/N8zs= -github.com/golemcloud/golem-go v0.7.0/go.mod h1:VLL22qVo5R2+jGLO43tLPpPjf2WrA6B7GQoqXKnSODo= +github.com/golemcloud/golem-go v1.1.0 h1:By+OBuRu4c3WTuf2OKh71yY7rgOyLXzUgr7Y+98BjGk= +github.com/golemcloud/golem-go v1.1.0/go.mod h1:VLL22qVo5R2+jGLO43tLPpPjf2WrA6B7GQoqXKnSODo= diff --git a/examples/go/go-default/go.sum b/examples/go/go-default/go.sum index 63a3b41..9dd8eef 100644 --- a/examples/go/go-default/go.sum +++ b/examples/go/go-default/go.sum @@ -1,2 +1,2 @@ -github.com/golemcloud/golem-go v0.7.0 h1:8zpNeAtEDJsJllqHUmjji/lyplSJ0kI3v7vN97/N8zs= -github.com/golemcloud/golem-go v0.7.0/go.mod h1:VLL22qVo5R2+jGLO43tLPpPjf2WrA6B7GQoqXKnSODo= +github.com/golemcloud/golem-go v1.1.0 h1:By+OBuRu4c3WTuf2OKh71yY7rgOyLXzUgr7Y+98BjGk= +github.com/golemcloud/golem-go v1.1.0/go.mod h1:VLL22qVo5R2+jGLO43tLPpPjf2WrA6B7GQoqXKnSODo= diff --git a/examples/go/go-default/wit/component-name.wit b/examples/go/go-default/wit/component-name.wit index 9c5377c..65721e9 100644 --- a/examples/go/go-default/wit/component-name.wit +++ b/examples/go/go-default/wit/component-name.wit @@ -8,7 +8,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/examples/go/go-multi-rpc/README.md b/examples/go/go-multi-rpc/README.md index 45fadf8..73a084f 100644 --- a/examples/go/go-multi-rpc/README.md +++ b/examples/go/go-multi-rpc/README.md @@ -44,7 +44,7 @@ In the example 3 simple counter components are defined, which can be familiar fr - **component one** delegates the add call to **component two** and **three** too, - and **component two** delegates to **component three**. -In both cases the _current worker name_ will be used as _target worker name_ too. +In both cases the _current worker name_ will be used as _target worker name_ too. Apart from _worker name_, remote calls also require the **target components' deployed ID**. For this the example uses environment variables, and uses the `lib/cfg` subpackage (which is shared between the components) to extract it. @@ -92,7 +92,7 @@ After adding a new component the `build` command will also include it. ## Using Worker to Worker RPC calls -### Under the hood +### Under the hood Under the hood the _magefile_ commands below (and for build) use generic `golem-cli stubgen` subcommands: - `golem-cli stubgen build` for creating remote call _stub WIT_ definitions and _WASM components_ for the stubs @@ -142,7 +142,7 @@ interface component-one-api { world component-one { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies @@ -176,7 +176,7 @@ import ( func (i *Impl) Add(value uint64) { std.Init(std.Packages{Os: true, NetHttp: true}) - + componentTwo := binding.NewComponentTwoApi(binding.GolemRpc0_1_0_TypesUri{Value: "uri"}) defer componentTwo.Drop() componentTwo.BlockingAdd(value) diff --git a/examples/go/go-multi-rpc/component-template/component/wit/component.wit b/examples/go/go-multi-rpc/component-template/component/wit/component.wit index 1e7b6cf..8346aa4 100644 --- a/examples/go/go-multi-rpc/component-template/component/wit/component.wit +++ b/examples/go/go-multi-rpc/component-template/component/wit/component.wit @@ -9,7 +9,7 @@ interface comp-name-api { world comp-name { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/components/component-one/wit/component-one.wit b/examples/go/go-multi-rpc/components/component-one/wit/component-one.wit index d9befa1..e12ba38 100644 --- a/examples/go/go-multi-rpc/components/component-one/wit/component-one.wit +++ b/examples/go/go-multi-rpc/components/component-one/wit/component-one.wit @@ -9,7 +9,7 @@ interface component-one-api { world component-one { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-three/component-three.wit b/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-three/component-three.wit index 7bd3d9c..afa68e9 100644 --- a/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-three/component-three.wit +++ b/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-three/component-three.wit @@ -9,7 +9,7 @@ interface component-three-api { world component-three { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-two/component-two.wit b/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-two/component-two.wit index bb81e6d..906a02a 100644 --- a/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-two/component-two.wit +++ b/examples/go/go-multi-rpc/components/component-one/wit/deps/pack-ns_component-two/component-two.wit @@ -9,7 +9,7 @@ interface component-two-api { world component-two { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/components/component-three/wit/component-three.wit b/examples/go/go-multi-rpc/components/component-three/wit/component-three.wit index 7bd3d9c..afa68e9 100644 --- a/examples/go/go-multi-rpc/components/component-three/wit/component-three.wit +++ b/examples/go/go-multi-rpc/components/component-three/wit/component-three.wit @@ -9,7 +9,7 @@ interface component-three-api { world component-three { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/components/component-two/wit/component-two.wit b/examples/go/go-multi-rpc/components/component-two/wit/component-two.wit index 6ed354b..19cb60c 100644 --- a/examples/go/go-multi-rpc/components/component-two/wit/component-two.wit +++ b/examples/go/go-multi-rpc/components/component-two/wit/component-two.wit @@ -9,7 +9,7 @@ interface component-two-api { world component-two { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/components/component-two/wit/deps/pack-ns_component-three/component-three.wit b/examples/go/go-multi-rpc/components/component-two/wit/deps/pack-ns_component-three/component-three.wit index 7bd3d9c..afa68e9 100644 --- a/examples/go/go-multi-rpc/components/component-two/wit/deps/pack-ns_component-three/component-three.wit +++ b/examples/go/go-multi-rpc/components/component-two/wit/deps/pack-ns_component-three/component-three.wit @@ -9,7 +9,7 @@ interface component-three-api { world component-three { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/go/go-multi-rpc/go.sum b/examples/go/go-multi-rpc/go.sum index 95966ad..6c84d28 100644 --- a/examples/go/go-multi-rpc/go.sum +++ b/examples/go/go-multi-rpc/go.sum @@ -1,5 +1,5 @@ -github.com/golemcloud/golem-go v0.7.0 h1:8zpNeAtEDJsJllqHUmjji/lyplSJ0kI3v7vN97/N8zs= -github.com/golemcloud/golem-go v0.7.0/go.mod h1:VLL22qVo5R2+jGLO43tLPpPjf2WrA6B7GQoqXKnSODo= +github.com/golemcloud/golem-go v1.1.0 h1:By+OBuRu4c3WTuf2OKh71yY7rgOyLXzUgr7Y+98BjGk= +github.com/golemcloud/golem-go v1.1.0/go.mod h1:VLL22qVo5R2+jGLO43tLPpPjf2WrA6B7GQoqXKnSODo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg= diff --git a/examples/js/js-default-minimal/rollup.config.mjs b/examples/js/js-default-minimal/rollup.config.mjs index 156d854..5225a1f 100644 --- a/examples/js/js-default-minimal/rollup.config.mjs +++ b/examples/js/js-default-minimal/rollup.config.mjs @@ -1,11 +1,11 @@ import resolve from "@rollup/plugin-node-resolve"; export default { - input: 'src/main.js', - output: { - file: 'out/main.js', - format: 'esm' - }, - external: ["golem:api/host@0.2.0"], - plugins: [resolve()], -}; \ No newline at end of file + input: "src/main.js", + output: { + file: "out/main.js", + format: "esm", + }, + external: ["golem:api/host@1.1.0"], + plugins: [resolve()], +}; diff --git a/examples/js/js-default/rollup.config.mjs b/examples/js/js-default/rollup.config.mjs index 156d854..5225a1f 100644 --- a/examples/js/js-default/rollup.config.mjs +++ b/examples/js/js-default/rollup.config.mjs @@ -1,11 +1,11 @@ import resolve from "@rollup/plugin-node-resolve"; export default { - input: 'src/main.js', - output: { - file: 'out/main.js', - format: 'esm' - }, - external: ["golem:api/host@0.2.0"], - plugins: [resolve()], -}; \ No newline at end of file + input: "src/main.js", + output: { + file: "out/main.js", + format: "esm", + }, + external: ["golem:api/host@1.1.0"], + plugins: [resolve()], +}; diff --git a/examples/js/js-default/wit/main.wit b/examples/js/js-default/wit/main.wit index 0dfef32..1271341 100644 --- a/examples/js/js-default/wit/main.wit +++ b/examples/js/js-default/wit/main.wit @@ -8,7 +8,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/examples/js/js-example-fetch/rollup.config.mjs b/examples/js/js-example-fetch/rollup.config.mjs index 156d854..5225a1f 100644 --- a/examples/js/js-example-fetch/rollup.config.mjs +++ b/examples/js/js-example-fetch/rollup.config.mjs @@ -1,11 +1,11 @@ import resolve from "@rollup/plugin-node-resolve"; export default { - input: 'src/main.js', - output: { - file: 'out/main.js', - format: 'esm' - }, - external: ["golem:api/host@0.2.0"], - plugins: [resolve()], -}; \ No newline at end of file + input: "src/main.js", + output: { + file: "out/main.js", + format: "esm", + }, + external: ["golem:api/host@1.1.0"], + plugins: [resolve()], +}; diff --git a/examples/js/js-example-fetch/wit/main.wit b/examples/js/js-example-fetch/wit/main.wit index 24d7fd6..6444823 100644 --- a/examples/js/js-example-fetch/wit/main.wit +++ b/examples/js/js-example-fetch/wit/main.wit @@ -8,6 +8,6 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; export api; } diff --git a/examples/python/python-default/wit/component-name.wit b/examples/python/python-default/wit/component-name.wit index 0cfdb45..f66441a 100644 --- a/examples/python/python-default/wit/component-name.wit +++ b/examples/python/python-default/wit/component-name.wit @@ -8,7 +8,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/examples/ts/ts-default-minimal/rollup.config.mjs b/examples/ts/ts-default-minimal/rollup.config.mjs index e1cb34a..c421b4c 100644 --- a/examples/ts/ts-default-minimal/rollup.config.mjs +++ b/examples/ts/ts-default-minimal/rollup.config.mjs @@ -2,11 +2,11 @@ import typescript from "rollup-plugin-typescript2"; import resolve from "@rollup/plugin-node-resolve"; export default { - input: 'src/main.ts', - output: { - file: 'out/main.js', - format: 'esm' - }, - external: ["golem:api/host@0.2.0"], - plugins: [resolve(), typescript()], -}; \ No newline at end of file + input: "src/main.ts", + output: { + file: "out/main.js", + format: "esm", + }, + external: ["golem:api/host@1.1.0"], + plugins: [resolve(), typescript()], +}; diff --git a/examples/ts/ts-default/rollup.config.mjs b/examples/ts/ts-default/rollup.config.mjs index e1cb34a..c421b4c 100644 --- a/examples/ts/ts-default/rollup.config.mjs +++ b/examples/ts/ts-default/rollup.config.mjs @@ -2,11 +2,11 @@ import typescript from "rollup-plugin-typescript2"; import resolve from "@rollup/plugin-node-resolve"; export default { - input: 'src/main.ts', - output: { - file: 'out/main.js', - format: 'esm' - }, - external: ["golem:api/host@0.2.0"], - plugins: [resolve(), typescript()], -}; \ No newline at end of file + input: "src/main.ts", + output: { + file: "out/main.js", + format: "esm", + }, + external: ["golem:api/host@1.1.0"], + plugins: [resolve(), typescript()], +}; diff --git a/examples/ts/ts-default/wit/main.wit b/examples/ts/ts-default/wit/main.wit index 0dfef32..1271341 100644 --- a/examples/ts/ts-default/wit/main.wit +++ b/examples/ts/ts-default/wit/main.wit @@ -8,7 +8,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/examples/ts/ts-example-fetch/rollup.config.mjs b/examples/ts/ts-example-fetch/rollup.config.mjs index e1cb34a..c421b4c 100644 --- a/examples/ts/ts-example-fetch/rollup.config.mjs +++ b/examples/ts/ts-example-fetch/rollup.config.mjs @@ -2,11 +2,11 @@ import typescript from "rollup-plugin-typescript2"; import resolve from "@rollup/plugin-node-resolve"; export default { - input: 'src/main.ts', - output: { - file: 'out/main.js', - format: 'esm' - }, - external: ["golem:api/host@0.2.0"], - plugins: [resolve(), typescript()], -}; \ No newline at end of file + input: "src/main.ts", + output: { + file: "out/main.js", + format: "esm", + }, + external: ["golem:api/host@1.1.0"], + plugins: [resolve(), typescript()], +}; diff --git a/examples/ts/ts-example-fetch/wit/main.wit b/examples/ts/ts-example-fetch/wit/main.wit index 24d7fd6..6444823 100644 --- a/examples/ts/ts-example-fetch/wit/main.wit +++ b/examples/ts/ts-example-fetch/wit/main.wit @@ -8,6 +8,6 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; export api; } diff --git a/examples/ts/ts-multi-rpc/README.md b/examples/ts/ts-multi-rpc/README.md index ac8dbe7..5ae8cb8 100644 --- a/examples/ts/ts-multi-rpc/README.md +++ b/examples/ts/ts-multi-rpc/README.md @@ -156,7 +156,7 @@ interface component-one-api { world component-one { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/component-template/component/wit/main.wit.template b/examples/ts/ts-multi-rpc/component-template/component/wit/main.wit.template index e07e294..d199b67 100644 --- a/examples/ts/ts-multi-rpc/component-template/component/wit/main.wit.template +++ b/examples/ts/ts-multi-rpc/component-template/component/wit/main.wit.template @@ -9,7 +9,7 @@ interface comp-name-api { world comp-name { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/src/components/component-one/main.ts b/examples/ts/ts-multi-rpc/src/components/component-one/main.ts index e3a3eee..e704389 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-one/main.ts +++ b/examples/ts/ts-multi-rpc/src/components/component-one/main.ts @@ -2,7 +2,7 @@ import { ComponentOneApi } from "./generated/component-one"; import { ComponentTwoApi } from "pack-ns:component-two-stub/stub-component-two"; import { ComponentThreeApi } from "pack-ns:component-three-stub/stub-component-three"; import * as cfg from "../../lib/cfg"; -import { getSelfMetadata } from "golem:api/host@0.2.0"; +import { getSelfMetadata } from "golem:api/host@1.1.0"; let state = BigInt(0); diff --git a/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-three/main.wit b/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-three/main.wit index f0f45ad..f6183b8 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-three/main.wit +++ b/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-three/main.wit @@ -9,7 +9,7 @@ interface component-three-api { world component-three { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-two/main.wit b/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-two/main.wit index f708ae6..dd8b3ac 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-two/main.wit +++ b/examples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-two/main.wit @@ -9,7 +9,7 @@ interface component-two-api { world component-two { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/src/components/component-one/wit/main.wit b/examples/ts/ts-multi-rpc/src/components/component-one/wit/main.wit index 97b0271..b427b56 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-one/wit/main.wit +++ b/examples/ts/ts-multi-rpc/src/components/component-one/wit/main.wit @@ -9,7 +9,7 @@ interface component-one-api { world component-one { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/src/components/component-three/wit/main.wit b/examples/ts/ts-multi-rpc/src/components/component-three/wit/main.wit index f0f45ad..f6183b8 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-three/wit/main.wit +++ b/examples/ts/ts-multi-rpc/src/components/component-three/wit/main.wit @@ -9,7 +9,7 @@ interface component-three-api { world component-three { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/src/components/component-two/main.ts b/examples/ts/ts-multi-rpc/src/components/component-two/main.ts index 1ca535e..880c6d4 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-two/main.ts +++ b/examples/ts/ts-multi-rpc/src/components/component-two/main.ts @@ -1,7 +1,7 @@ import { ComponentTwoApi } from "./generated/component-two"; import { ComponentThreeApi } from "pack-ns:component-three-stub/stub-component-three"; import * as cfg from "../../lib/cfg"; -import { getSelfMetadata } from "golem:api/host@0.2.0"; +import { getSelfMetadata } from "golem:api/host@1.1.0"; let state = BigInt(0); diff --git a/examples/ts/ts-multi-rpc/src/components/component-two/wit/deps/pack-ns_component-three/main.wit b/examples/ts/ts-multi-rpc/src/components/component-two/wit/deps/pack-ns_component-three/main.wit index f0f45ad..f6183b8 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-two/wit/deps/pack-ns_component-three/main.wit +++ b/examples/ts/ts-multi-rpc/src/components/component-two/wit/deps/pack-ns_component-three/main.wit @@ -9,7 +9,7 @@ interface component-three-api { world component-three { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/ts/ts-multi-rpc/src/components/component-two/wit/main.wit b/examples/ts/ts-multi-rpc/src/components/component-two/wit/main.wit index f708ae6..dd8b3ac 100644 --- a/examples/ts/ts-multi-rpc/src/components/component-two/wit/main.wit +++ b/examples/ts/ts-multi-rpc/src/components/component-two/wit/main.wit @@ -9,7 +9,7 @@ interface component-two-api { world component-two { // Golem dependencies - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; // WASI dependencies diff --git a/examples/zig/zig-default/wit/component-name.wit b/examples/zig/zig-default/wit/component-name.wit index a812387..98ed474 100644 --- a/examples/zig/zig-default/wit/component-name.wit +++ b/examples/zig/zig-default/wit/component-name.wit @@ -6,7 +6,7 @@ interface api { } world component-name { - import golem:api/host@0.2.0; + import golem:api/host@1.1.0; import golem:rpc/types@0.1.0; import wasi:blobstore/blobstore; diff --git a/src/lib.rs b/src/lib.rs index 4cf30ac..1530bff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -267,6 +267,7 @@ fn parse_example( let mut wit_deps: Vec = vec![]; if metadata.requires_golem_host_wit.unwrap_or(false) { wit_deps.push(Path::new("golem").to_path_buf()); + wit_deps.push(Path::new("golem-1.1").to_path_buf()); wit_deps.push(Path::new("wasm-rpc").to_path_buf()); } if metadata.requires_wasi.unwrap_or(false) {