Skip to content

Commit cc56ad4

Browse files
author
Pat Hickey
committed
update uses of io, clocks, random, and cli to @0.2.0
1 parent 1c9c675 commit cc56ad4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

wit/proxy.wit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ package wasi:http@0.2.0-rc-2024-01-16;
66
/// outgoing HTTP requests.
77
world proxy {
88
/// HTTP proxies have access to time and randomness.
9-
include wasi:clocks/imports@0.2.0-rc-2023-11-10;
10-
import wasi:random/random@0.2.0-rc-2023-11-10;
9+
include wasi:clocks/imports@0.2.0;
10+
import wasi:random/random@0.2.0;
1111

1212
/// Proxies have standard output and error streams which are expected to
1313
/// terminate in a developer-facing console provided by the host.
14-
import wasi:cli/stdout@0.2.0-rc-2024-01-16;
15-
import wasi:cli/stderr@0.2.0-rc-2024-01-16;
14+
import wasi:cli/stdout@0.2.0;
15+
import wasi:cli/stderr@0.2.0;
1616

1717
/// TODO: this is a temporary workaround until component tooling is able to
1818
/// gracefully handle the absence of stdin. Hosts must return an eof stream
1919
/// for this import, which is what wasi-libc + tooling will do automatically
2020
/// when this import is properly removed.
21-
import wasi:cli/stdin@0.2.0-rc-2024-01-16;
21+
import wasi:cli/stdin@0.2.0;
2222

2323
/// This is the default handler to use when user code simply wants to make an
2424
/// HTTP request (e.g., via `fetch()`).

wit/types.wit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/// HTTP Requests and Responses, both incoming and outgoing, as well as
33
/// their headers, trailers, and bodies.
44
interface types {
5-
use wasi:clocks/monotonic-clock@0.2.0-rc-2023-11-10.{duration};
6-
use wasi:io/streams@0.2.0-rc-2023-11-10.{input-stream, output-stream};
7-
use wasi:io/error@0.2.0-rc-2023-11-10.{error as io-error};
8-
use wasi:io/poll@0.2.0-rc-2023-11-10.{pollable};
5+
use wasi:clocks/monotonic-clock@0.2.0.{duration};
6+
use wasi:io/streams@0.2.0.{input-stream, output-stream};
7+
use wasi:io/error@0.2.0.{error as io-error};
8+
use wasi:io/poll@0.2.0.{pollable};
99

1010
/// This type corresponds to HTTP standard Methods.
1111
variant method {

0 commit comments

Comments
 (0)