Skip to content

Commit f5d3149

Browse files
authored
Merge pull request #306 from fd4s/binary-compatibility
Maintain binary compatibility across minor versions
2 parents c8b31ea + 10d2bdc commit f5d3149

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/src/main/mdoc/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Overview
55

66
Functional backpressured streams for consuming and producing Kafka records. Exposes a small interface, while taking care of common functionality: batch consuming and producing records, batched offset commits, offset commit recovery, and topic administration, while also simplifying client configuration.
77

8-
Documentation is kept up-to-date with new releases, currently documenting v@LATEST_VERSION@ on Scala @DOCS_SCALA_MINOR_VERSION@.
8+
Documentation is kept up-to-date, currently documenting v@LATEST_VERSION@ on Scala @DOCS_SCALA_MINOR_VERSION@.
99

1010
## Getting Started
1111

@@ -39,8 +39,8 @@ Stable release artifacts are signed with the [`E97C 64AB 4987 7F74`](https://key
3939

4040
### Compatibility
4141

42-
Backwards binary-compatibility for the library is guaranteed between patch versions.<br>
43-
For example, `@[email protected]` is backwards binary-compatible with `@[email protected]` for any `x > y`.
42+
Backwards binary-compatibility for the library is guaranteed between minor and patch versions.<br>
43+
Version `@[email protected]` is backwards binary-compatible with `@[email protected]` for any `a > c` or `a = c` and `b > d`.
4444

4545
Please note binary-compatibility is not guaranteed between milestone releases.
4646

docs/src/main/scala/fs2/kafka/docs/Main.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ object Main {
1313
s"$major.$minor"
1414
}
1515

16+
def majorVersion(version: String): String = {
17+
val Array(major, _, _) = version.split('.')
18+
major
19+
}
20+
1621
def minorVersionsString(versions: Seq[String]): String = {
1722
val minorVersions = versions.map(minorVersion)
1823
if (minorVersions.size <= 2) minorVersions.mkString(" and ")
@@ -34,7 +39,7 @@ object Main {
3439
"VULCAN_CROSS_SCALA_VERSIONS" -> minorVersionsString(vulcanCrossScalaVersions),
3540
"LATEST_VERSION" -> latestVersion,
3641
"LATEST_SNAPSHOT_VERSION" -> latestSnapshotVersion,
37-
"LATEST_MINOR_VERSION" -> minorVersion(latestVersion),
42+
"LATEST_MAJOR_VERSION" -> majorVersion(latestVersion),
3843
"DOCS_SCALA_MINOR_VERSION" -> scalaMinorVersion,
3944
"FS2_VERSION" -> fs2Version,
4045
"KAFKA_VERSION" -> kafkaVersion,

0 commit comments

Comments
 (0)