From 5a701ac15f1dc2b4d5472622ce5c80677e4ba51c Mon Sep 17 00:00:00 2001 From: Scott Andrews <302992+scothis@users.noreply.github.com> Date: Thu, 8 Oct 2026 15:33:07 +0000 Subject: [PATCH] Bump version from to 0.1.0 Signed-off-by: Scott Andrews <302992+scothis@users.noreply.github.com> --- .github/workflows/bump-version.yaml | 2 +- components/wit-tools/tests/component.rs | 14 ++-- components/wit/worlds.wit | 30 ++++---- wit/loaders.wit | 14 ++-- wit/types.wit | 8 +-- wit/wit.wit | 96 ++++++++++++------------- wit/worlds.wit | 4 +- 7 files changed, 84 insertions(+), 84 deletions(-) diff --git a/.github/workflows/bump-version.yaml b/.github/workflows/bump-version.yaml index 058f124..7c05a18 100644 --- a/.github/workflows/bump-version.yaml +++ b/.github/workflows/bump-version.yaml @@ -7,7 +7,7 @@ on: description: The new version of the interface package and crates, e.g. 0.1.0 or 0.2.0-dev required: true type: string - default: "0.0.0-dev" # the current version, kept current by scripts/bump-version.sh + default: "0.1.0" # the current version, kept current by scripts/bump-version.sh jobs: # bumps the version with read only access, the changes are handed to the pull-request job as a diff --git a/components/wit-tools/tests/component.rs b/components/wit-tools/tests/component.rs index 245b63e..5deb21c 100644 --- a/components/wit-tools/tests/component.rs +++ b/components/wit-tools/tests/component.rs @@ -16,7 +16,7 @@ use wasmtime::{ component::{Component, Instance, Linker, Val}, }; -const WIT_INTERFACE: &str = "componentized:component/wit@0.0.0-dev"; +const WIT_INTERFACE: &str = "componentized:component/wit@0.1.0"; /// The root of the repository, where the Makefile is. fn repo_root() -> &'static Path { @@ -304,11 +304,11 @@ fn summarize_itself() { assert_eq!( strings(field(&summary, "imports")), - vec!["componentized:component/types@0.0.0-dev"] + vec!["componentized:component/types@0.1.0"] ); assert_eq!( strings(field(&summary, "exports")), - vec!["componentized:component/wit@0.0.0-dev"] + vec!["componentized:component/wit@0.1.0"] ); } @@ -333,7 +333,7 @@ fn summarize_parsed() { assert_eq!( strings(field(&summary, "exports")), - vec!["componentized:component/wit@0.0.0-dev"] + vec!["componentized:component/wit@0.1.0"] ); } @@ -396,7 +396,7 @@ fn print_itself() { assert_eq!(printed, expected_print(&own_bytes)); assert!(printed.starts_with("package root:component;\n")); assert_eq!(printed.matches("package root:component").count(), 1); - assert!(printed.contains("package componentized:component@0.0.0-dev {")); + assert!(printed.contains("package componentized:component@0.1.0 {")); } #[test] @@ -480,7 +480,7 @@ fn print_itself_without_additional_packages() { assert_eq!( printed, - "package root:component;\n\nworld root {\n import componentized:component/types@0.0.0-dev;\n\n export componentized:component/wit@0.0.0-dev;\n}\n" + "package root:component;\n\nworld root {\n import componentized:component/types@0.1.0;\n\n export componentized:component/wit@0.1.0;\n}\n" ); } @@ -507,7 +507,7 @@ fn print_itself_selected_packages() { .expect("prints"); // componentized:component is the only other package assert_eq!(printed, all); - assert!(printed.contains("package componentized:component@0.0.0-dev {")); + assert!(printed.contains("package componentized:component@0.1.0 {")); } #[test] diff --git a/components/wit/worlds.wit b/components/wit/worlds.wit index bc83d58..0397e09 100644 --- a/components/wit/worlds.wit +++ b/components/wit/worlds.wit @@ -1,45 +1,45 @@ package componentized:components; world wit-tools { - export componentized:component/wit@0.0.0-dev; + export componentized:component/wit@0.1.0; } world filesystem-loader { import wasi:filesystem/types@0.3.0; import wasi:filesystem/preopens@0.3.0; - import componentized:component/types@0.0.0-dev; - export componentized:component/path-loader@0.0.0-dev; + import componentized:component/types@0.1.0; + export componentized:component/path-loader@0.1.0; } world http-loader { import componentized:http/client@0.1.0; - import componentized:component/types@0.0.0-dev; - export componentized:component/path-loader@0.0.0-dev; + import componentized:component/types@0.1.0; + export componentized:component/path-loader@0.1.0; } world oci-loader { import componentized:oci/client@0.1.0; import componentized:oci/media-types@0.1.0; - import componentized:component/types@0.0.0-dev; - export componentized:component/path-loader@0.0.0-dev; + import componentized:component/types@0.1.0; + export componentized:component/path-loader@0.1.0; } world path-loader { - import filesystem-loader: componentized:component/path-loader@0.0.0-dev; - import http-loader: componentized:component/path-loader@0.0.0-dev; - import oci-loader: componentized:component/path-loader@0.0.0-dev; + import filesystem-loader: componentized:component/path-loader@0.1.0; + import http-loader: componentized:component/path-loader@0.1.0; + import oci-loader: componentized:component/path-loader@0.1.0; - import componentized:component/types@0.0.0-dev; - export componentized:component/path-loader@0.0.0-dev; + import componentized:component/types@0.1.0; + export componentized:component/path-loader@0.1.0; } world wac-loader { - import componentized:component/types@0.0.0-dev; - export componentized:component/wac-loader@0.0.0-dev; + import componentized:component/types@0.1.0; + export componentized:component/wac-loader@0.1.0; } world test-loader-harness { - import componentized:component/path-loader@0.0.0-dev; + import componentized:component/path-loader@0.1.0; import wasi:cli/environment@0.3.0; import wasi:cli/stdout@0.3.0; import wasi:cli/stderr@0.3.0; diff --git a/wit/loaders.wit b/wit/loaders.wit index 283f5ce..634daad 100644 --- a/wit/loaders.wit +++ b/wit/loaders.wit @@ -1,27 +1,27 @@ /// Loads a component from a path. -@since(version = 0.0.0-dev) +@since(version = 0.1.0) interface path-loader { use types.{wasm, error-code}; /// Loads the component at `path`. The forms of path supported depend on the /// implementation, e.g. a filesystem path, an HTTP URL or an OCI reference. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) load: async func(path: string) -> result; } /// Composes components with WAC (WebAssembly Compositions). -@since(version = 0.0.0-dev) +@since(version = 0.1.0) interface wac-loader { use types.{wasm, error-code}; type package-name = string; /// A component, named by the package a WAC composition refers to it as. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) type dependency = tuple; /// How to compose components. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant plan { /// A WAC script. wac(string), @@ -30,9 +30,9 @@ interface wac-loader { /// Plugs the exports of each of `plugs` into the matching imports of `socket`, returning the /// composed component. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) plug: async func(socket: wasm, plugs: list) -> result; /// Composes the `dependencies` as described by `plan`, returning the composed component. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) compose: async func(plan: plan, dependencies: list) -> result; } \ No newline at end of file diff --git a/wit/types.wit b/wit/types.wit index 608533c..ec0ede3 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -1,9 +1,9 @@ /// Types shared by the interfaces in this package. -@since(version = 0.0.0-dev) +@since(version = 0.1.0) interface types { /// An error from a call. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant error-code { /// A value cannot be parsed to its expected type. malformed(malformed), @@ -17,7 +17,7 @@ interface types { } /// A `malformed` input. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record malformed { /// Calls accepting multiple inputs name the one that is malformed. name: option, @@ -26,7 +26,7 @@ interface types { } /// The bytes of a WebAssembly binary, a component unless stated otherwise. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) type wasm = list; } diff --git a/wit/wit.wit b/wit/wit.wit index d9aa466..e3172f9 100644 --- a/wit/wit.wit +++ b/wit/wit.wit @@ -5,16 +5,16 @@ /// the types, interfaces, worlds and packages it references. The model mirrors the `Resolve` from /// the `wit-parser` crate. Items reference each other by id, an opaque string unique within a /// `wit`, e.g. `type:4`. -@since(version = 0.0.0-dev) +@since(version = 0.1.0) interface wit { use types.{wasm, error-code}; /// The id of a `type-def` in `wit.types`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) type type-id = string; /// A wit primitive, or a reference to a `type-def`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant %type { %bool, %s8, @@ -34,7 +34,7 @@ interface wit { } /// The wit type kind of a `type-def`, and its definition. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant type-def-kind { %record(%record), %resource, @@ -55,13 +55,13 @@ interface wit { } /// A wit `record` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %record { fields: list, } /// A field of a wit `record`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record record-field { name: string, %type: %type, @@ -69,7 +69,7 @@ interface wit { } /// A handle to a wit resource. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant handle { /// An owned handle, `own`. %own(type-id), @@ -78,32 +78,32 @@ interface wit { } /// A wit `flags` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %flags { %flags: list, } /// A flag of a wit `flags` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record flag { name: string, docs: docs, } /// A wit `tuple` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %tuple { types: list<%type>, } /// A wit `variant` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %variant { cases: list, } /// A case of a wit `variant`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record variant-case { name: string, /// The type of the cases value. @@ -112,20 +112,20 @@ interface wit { } /// A wit `enum` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %enum { cases: list, } /// A case of a wit `enum`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record enum-case { name: string, docs: docs, } /// A wit `result` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %result { /// The type of an ok result, absent for `result<_, e>` and `result`. ok: option<%type>, @@ -134,7 +134,7 @@ interface wit { } /// A wit `list` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %list { %type: %type, /// The length of a fixed length list, e.g. `list`. @@ -142,14 +142,14 @@ interface wit { } /// A wit `map` type. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %map { key: %type, value: %type, } /// A function, freestanding or part of a resource. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record function { /// The name of the function. For a resource function, e.g. `[method]r.f`. name: string, @@ -166,7 +166,7 @@ interface wit { } /// The kind of a wit `function`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant function-kind { /// A function, e.g. `f: func();`. freestanding, @@ -197,14 +197,14 @@ interface wit { } /// A parameter of a wit `function`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record param { name: string, %type: %type, } /// Where a `type-def` is defined. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant type-owner { /// Defined in a world. %world(world-id), @@ -215,14 +215,14 @@ interface wit { } /// Documentation comments. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record docs { /// The text of the comments, without the `///`, absent when there are none. contents: option, } /// The stability of an item, from its `@since` or `@unstable` annotation. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant stability { /// Neither `@since` nor `@unstable`. unknown, @@ -233,7 +233,7 @@ interface wit { } /// An item annotated `@unstable(feature = ...)`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record unstable { /// The feature that enables the item. feature: string, @@ -242,7 +242,7 @@ interface wit { } /// An item annotated `@since(version = ...)`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record stable { /// The version the item is stable since. since: version, @@ -251,7 +251,7 @@ interface wit { } /// A type definition. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record type-def { /// The name of the type, absent for an anonymous type, e.g. `list`. name: option, @@ -268,7 +268,7 @@ interface wit { } /// A semantic version. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record version { major: u64, minor: u64, @@ -280,7 +280,7 @@ interface wit { } /// A dot separated identifier in the prerelease or build metadata of a `version`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant version-identifier { /// An alphanumeric identifier, e.g. `alpha`. %string(string), @@ -289,11 +289,11 @@ interface wit { } /// The id of an `interface` in `wit.interfaces`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) type interface-id = string; /// A wit `interface`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %interface { /// The name of the interface, absent for an interface defined inline in a world. name: option, @@ -308,11 +308,11 @@ interface wit { } /// The id of a `world` in `wit.worlds`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) type world-id = string; /// A wit `world`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %world { name: string, /// The items (interfaces, functions and types) the world imports. @@ -328,7 +328,7 @@ interface wit { } /// An item imported or exported by a world. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant world-item { /// An interface. %interface(world-item-interface), @@ -339,7 +339,7 @@ interface wit { } /// An interface imported or exported by a world. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record world-item-interface { /// The interface. id: interface-id, @@ -350,7 +350,7 @@ interface wit { } /// An `include` of another world. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record world-include { stability: stability, /// The world included. @@ -360,7 +360,7 @@ interface wit { } /// An item renamed by an `include ... with { name as as }`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record include-name { /// The name of the item in the included world. name: string, @@ -369,7 +369,7 @@ interface wit { } /// The name of an item imported or exported by a world. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant world-key { /// A named item, e.g. `import foo: func();` or an inline interface. name(string), @@ -378,11 +378,11 @@ interface wit { } /// The id of a `package` in `wit.packages`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) type package-id = string; /// A wit package of interfaces and worlds. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record %package { name: package-name, docs: docs, @@ -393,7 +393,7 @@ interface wit { } /// The name of a package, e.g. `wasi:cli@0.3.0`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record package-name { /// The namespace, e.g. `wasi` in `wasi:cli`. namespace: string, @@ -404,7 +404,7 @@ interface wit { } /// The WIT of a component or WIT package. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record wit { /// Every interface, keyed by id. interfaces: map, @@ -423,7 +423,7 @@ interface wit { } /// The WIT to work with. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant wit-source { /// A component, or a WIT package encoded as a WebAssembly binary module. Anything else, /// e.g. a core module, is a `not-component` error. @@ -435,14 +435,14 @@ interface wit { } /// Options for `print`. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record print-options { /// The packages to print. The default package is always printed first. Defaults to `all`. packages: option, } /// Which packages, other than the default package, `print` includes. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) variant printed-packages { /// Every package. all, @@ -455,7 +455,7 @@ interface wit { } /// The names of the imports and exports of a component's world. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) record summary { /// Each import, e.g. `wasi:cli/stdout@0.3.0` for an interface, otherwise its name. imports: list, @@ -464,7 +464,7 @@ interface wit { } /// Parses a source into a `wit`, a `parsed` source is returned as is. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) parse: func(source: wit-source) -> result; /// Prints a source as WIT text. @@ -473,12 +473,12 @@ interface wit { /// `package namespace:name { ... }` blocks, sorted by name. Without options every package is /// printed. A `parsed` source may be modified before printing, a reference to an id that /// does not exist is an error. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) print: func(source: wit-source, options: option) -> result; /// Summarizes the imports and exports of a component's world. /// /// The source must have a component world, a WIT package (encoded or text) is an error. - @since(version = 0.0.0-dev) + @since(version = 0.1.0) summarize: func(source: wit-source) -> result; } diff --git a/wit/worlds.wit b/wit/worlds.wit index 442d755..ebf83df 100644 --- a/wit/worlds.wit +++ b/wit/worlds.wit @@ -1,7 +1,7 @@ -package componentized:component@0.0.0-dev; +package componentized:component@0.1.0; /// Imports every interface in the package, for consumers of the package. -@since(version = 0.0.0-dev) +@since(version = 0.1.0) world imports { import types; import path-loader;