Skip to content

feat: update LATEST - #1105

Open
alexhancock wants to merge 1 commit into
mainfrom
alexhancock/update-latest-version
Open

feat: update LATEST#1105
alexhancock wants to merge 1 commit into
mainfrom
alexhancock/update-latest-version

Conversation

@alexhancock

Copy link
Copy Markdown
Contributor

Simple update of the LATEST alias to V_2026_07_28

Comment thread crates/rmcp/src/model.rs
pub const V_2025_03_26: Self = Self(Cow::Borrowed("2025-03-26"));
pub const V_2024_11_05: Self = Self(Cow::Borrowed("2024-11-05"));
pub const LATEST: Self = Self::V_2025_11_25;
pub const LATEST: Self = Self::V_2026_07_28;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded version causes the following tests to fail:

#[tokio::test]
async fn server_echoes_client_protocol_version_when_latest() {
let negotiated = negotiate_version(TestServer::new(), "2025-11-25").await;
assert_eq!(negotiated, ProtocolVersion::LATEST);
}

#[tokio::test]
async fn server_pinned_version_does_not_override_known_client_request() {
let negotiated = negotiate_version(PinnedServer, "2025-11-25").await;
assert_eq!(negotiated, ProtocolVersion::LATEST);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants