Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update release version #101

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading