Skip to content

Commit

Permalink
feat(world): rename keyvalue world to imports
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaxiao Zhou (Mossaka) <[email protected]>
  • Loading branch information
Mossaka committed Jan 5, 2024
1 parent 7eef1ef commit a3cd4fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions keyvalue.md → imports.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1><a name="keyvalue">World keyvalue</a></h1>
<p>The <code>wasi:keyvalue/keyvalue</code> world provides common APIs for interacting
<h1><a name="imports">World imports</a></h1>
<p>The <code>wasi:keyvalue/imports</code> world provides common APIs for interacting
with key-value stores. Components targeting this world will be able to
do</p>
<ol>
Expand Down
6 changes: 3 additions & 3 deletions wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package wasi:keyvalue;

/// The `wasi:keyvalue/keyvalue` world provides common APIs for interacting
/// The `wasi:keyvalue/imports` world provides common APIs for interacting
/// with key-value stores. Components targeting this world will be able to
/// do
/// 1. CRUD (create, read, update, delete) operations on key-value stores.
/// 2. Atomic `increment` and CAS (compare-and-swap) operations.
/// 3. Batch operations that can reduce the number of round trips to the network.
world keyvalue {
world imports {
/// The `readwrite` capability allows the component to perform CRUD
/// operations on the key-value store.
import readwrite;
Expand All @@ -21,6 +21,6 @@ world keyvalue {
}

world keyvalue-handle-watch {
include keyvalue;
include imports;
export handle-watch;
}

0 comments on commit a3cd4fa

Please sign in to comment.