From 3fa73d5f1f902209c684fef7d138b0fbbd63f85d Mon Sep 17 00:00:00 2001 From: Jiaxiao Zhou Date: Wed, 24 Jan 2024 16:46:29 -0800 Subject: [PATCH] nit: add version to wasi:keyvalue package (#36) * add a version to wasi:keyvalue package Signed-off-by: Jiaxiao Zhou (Mossaka) --- imports.md | 20 ++++++++++---------- keyvalue-handle-watch.md | 24 ++++++++++++------------ wit/world.wit | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/imports.md b/imports.md index d8affb7..91fe0bc 100644 --- a/imports.md +++ b/imports.md @@ -13,11 +13,11 @@ do

  • interface wasi:io/error@0.2.0-rc-2023-11-10
  • interface wasi:io/poll@0.2.0-rc-2023-11-10
  • interface wasi:io/streams@0.2.0-rc-2023-11-10
  • -
  • interface wasi:keyvalue/wasi-keyvalue-error
  • -
  • interface wasi:keyvalue/types
  • -
  • interface wasi:keyvalue/eventual
  • -
  • interface wasi:keyvalue/atomic
  • -
  • interface wasi:keyvalue/eventual-batch
  • +
  • interface wasi:keyvalue/wasi-keyvalue-error@0.1.0
  • +
  • interface wasi:keyvalue/types@0.1.0
  • +
  • interface wasi:keyvalue/eventual@0.1.0
  • +
  • interface wasi:keyvalue/atomic@0.1.0
  • +
  • interface wasi:keyvalue/eventual-batch@0.1.0
  • @@ -422,7 +422,7 @@ is ready for reading, before performing the splice.

    -

    Import interface wasi:keyvalue/wasi-keyvalue-error

    +

    Import interface wasi:keyvalue/wasi-keyvalue-error@0.1.0


    Types

    resource error

    @@ -451,7 +451,7 @@ Soon: switch to resource error { ... } -

    Import interface wasi:keyvalue/types

    +

    Import interface wasi:keyvalue/types@0.1.0

    A generic keyvalue interface for WASI.


    Types

    @@ -590,7 +590,7 @@ If the size is unknown or unavailable, this function returns an Err(error)
    • result<u64, own<error>>
    -

    Import interface wasi:keyvalue/eventual

    +

    Import interface wasi:keyvalue/eventual@0.1.0

    A keyvalue interface that provides eventually consistent CRUD operations.

    A CRUD operation is an operation that acts on a single key-value pair.

    The value in the key-value pair is defined as a u8 byte array and the intention @@ -683,7 +683,7 @@ not exist in the bucket, it returns Ok(false).

    • result<bool, own<error>>
    -

    Import interface wasi:keyvalue/atomic

    +

    Import interface wasi:keyvalue/atomic@0.1.0

    A keyvalue interface that provides atomic operations.

    Atomic operations are single, indivisible operations. When a fault causes an atomic operation to fail, it will appear to the invoker of the atomic @@ -737,7 +737,7 @@ and was replaced with the new value.

    • result<bool, own<error>>
    -

    Import interface wasi:keyvalue/eventual-batch

    +

    Import interface wasi:keyvalue/eventual-batch@0.1.0

    A keyvalue interface that provides eventually consistent batch operations.

    A batch operation is an operation that operates on multiple keys at once.

    Batch operations are useful for reducing network round-trip time. For example, diff --git a/keyvalue-handle-watch.md b/keyvalue-handle-watch.md index 7832961..0c712b8 100644 --- a/keyvalue-handle-watch.md +++ b/keyvalue-handle-watch.md @@ -5,16 +5,16 @@

  • interface wasi:io/error@0.2.0-rc-2023-11-10
  • interface wasi:io/poll@0.2.0-rc-2023-11-10
  • interface wasi:io/streams@0.2.0-rc-2023-11-10
  • -
  • interface wasi:keyvalue/wasi-keyvalue-error
  • -
  • interface wasi:keyvalue/types
  • -
  • interface wasi:keyvalue/eventual
  • -
  • interface wasi:keyvalue/atomic
  • -
  • interface wasi:keyvalue/eventual-batch
  • +
  • interface wasi:keyvalue/wasi-keyvalue-error@0.1.0
  • +
  • interface wasi:keyvalue/types@0.1.0
  • +
  • interface wasi:keyvalue/eventual@0.1.0
  • +
  • interface wasi:keyvalue/atomic@0.1.0
  • +
  • interface wasi:keyvalue/eventual-batch@0.1.0
  • Exports:
  • @@ -419,7 +419,7 @@ is ready for reading, before performing the splice.

    -

    Import interface wasi:keyvalue/wasi-keyvalue-error

    +

    Import interface wasi:keyvalue/wasi-keyvalue-error@0.1.0


    Types

    resource error

    @@ -448,7 +448,7 @@ Soon: switch to resource error { ... }
    • string
    -

    Import interface wasi:keyvalue/types

    +

    Import interface wasi:keyvalue/types@0.1.0

    A generic keyvalue interface for WASI.


    Types

    @@ -587,7 +587,7 @@ If the size is unknown or unavailable, this function returns an Err(error)
    • result<u64, own<error>>
    -

    Import interface wasi:keyvalue/eventual

    +

    Import interface wasi:keyvalue/eventual@0.1.0

    A keyvalue interface that provides eventually consistent CRUD operations.

    A CRUD operation is an operation that acts on a single key-value pair.

    The value in the key-value pair is defined as a u8 byte array and the intention @@ -680,7 +680,7 @@ not exist in the bucket, it returns Ok(false).

    • result<bool, own<error>>
    -

    Import interface wasi:keyvalue/atomic

    +

    Import interface wasi:keyvalue/atomic@0.1.0

    A keyvalue interface that provides atomic operations.

    Atomic operations are single, indivisible operations. When a fault causes an atomic operation to fail, it will appear to the invoker of the atomic @@ -734,7 +734,7 @@ and was replaced with the new value.

    • result<bool, own<error>>
    -

    Import interface wasi:keyvalue/eventual-batch

    +

    Import interface wasi:keyvalue/eventual-batch@0.1.0

    A keyvalue interface that provides eventually consistent batch operations.

    A batch operation is an operation that operates on multiple keys at once.

    Batch operations are useful for reducing network round-trip time. For example, @@ -841,7 +841,7 @@ deleted while others might fail.

    -

    Export interface wasi:keyvalue/handle-watch

    +

    Export interface wasi:keyvalue/handle-watch@0.1.0


    Types

    type bucket

    diff --git a/wit/world.wit b/wit/world.wit index fc922b6..ea64fe5 100644 --- a/wit/world.wit +++ b/wit/world.wit @@ -1,4 +1,4 @@ -package wasi:keyvalue; +package wasi:keyvalue@0.1.0; /// The `wasi:keyvalue/imports` world provides common APIs for interacting /// with key-value stores. Components targeting this world will be able to