Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import kotlinx.serialization.json.JsonObject
// Protocol Version Constants
// ============================================================================

public const val LATEST_PROTOCOL_VERSION: String = "2025-03-26"
public const val LATEST_PROTOCOL_VERSION: String = "2025-06-18"

public val SUPPORTED_PROTOCOL_VERSIONS: List<String> = listOf(
LATEST_PROTOCOL_VERSION,
"2025-03-26",
"2024-11-05",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class OldSchemaTypesTest {
@Test
fun `should have correct latest protocol version`() {
assertNotEquals("", LATEST_PROTOCOL_VERSION)
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION)
}

@Test
fun `should have correct supported protocol versions`() {
assertIs<List<String>>(SUPPORTED_PROTOCOL_VERSIONS)
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size)
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ class CommonTypeTest {
@Test
fun `should have correct latest protocol version`() {
assertNotEquals("", LATEST_PROTOCOL_VERSION)
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION)
}

@Test
fun `should have correct supported protocol versions`() {
assertIs<List<String>>(SUPPORTED_PROTOCOL_VERSIONS)
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2025-03-26"))
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size)
}

@Test
Expand Down
Loading