Skip to content

Commit

Permalink
chore: update release version (#101)
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Kohli <[email protected]>
Co-authored-by: Sidhant Kohli <[email protected]>
  • Loading branch information
kohlisid and Sidhant Kohli authored Nov 8, 2024
1 parent b59dc12 commit 30f4d70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "numaflow"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
rust-version = "1.80"
description = "Rust SDK for Numaflow"
Expand Down
20 changes: 10 additions & 10 deletions src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ pub(crate) enum ContainerType {
//
// Updating this value:
// 1. For release candidate (RC) versions, use the RC version string directly.
// Example: For version 1.3.1-rc1, enter "1.3.1-rc1"
// Example: For version 1.4.1-rc1, enter "1.4.1-rc1"
// 2. For stable versions, append "-z" to the stable version string.
// Example: For version 1.3.1, enter "1.3.1-z"
// Example: For version 1.4.1, enter "1.4.0-z"
//
// Why use "-z"?
// The "-z" suffix allows validation of pre-release versions (e.g., rc1, rc2) against the minimum version.
Expand All @@ -47,13 +47,13 @@ pub(crate) enum ContainerType {
pub(crate) static MINIMUM_NUMAFLOW_VERSION: LazyLock<HashMap<ContainerType, &'static str>> =
LazyLock::new(|| {
let mut m = HashMap::new();
m.insert(ContainerType::Source, "1.3.1-z");
m.insert(ContainerType::Map, "1.3.1-z");
m.insert(ContainerType::BatchMap, "1.3.1-z");
m.insert(ContainerType::Reduce, "1.3.1-z");
m.insert(ContainerType::Sink, "1.3.1-z");
m.insert(ContainerType::SourceTransformer, "1.3.1-z");
m.insert(ContainerType::SideInput, "1.3.1-z");
m.insert(ContainerType::Source, "1.4.0-z");
m.insert(ContainerType::Map, "1.4.0-z");
m.insert(ContainerType::BatchMap, "1.4.0-z");
m.insert(ContainerType::Reduce, "1.4.0-z");
m.insert(ContainerType::Sink, "1.4.0-z");
m.insert(ContainerType::SourceTransformer, "1.4.0-z");
m.insert(ContainerType::SideInput, "1.4.0-z");
m
});

Expand Down Expand Up @@ -247,7 +247,7 @@ mod tests {
// Check if the contents of the file are as expected
assert!(contents.contains(r#""protocol":"uds""#));
assert!(contents.contains(r#""language":"rust""#));
assert!(contents.contains(r#""minimum_numaflow_version":"1.3.1-z""#));
assert!(contents.contains(r#""minimum_numaflow_version":"1.4.0-z""#));
assert!(contents.contains(r#""metadata":{"MAP_MODE":"batch-map"}"#));

Ok(())
Expand Down

0 comments on commit 30f4d70

Please sign in to comment.