Skip to content

Commit e1200e9

Browse files
committed
made removed in x.x.x general too
1 parent e9640a5 commit e1200e9

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/util/deprecationMessages.kt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,33 @@ package org.jetbrains.kotlinx.dataframe.util
99

1010
// region WARNING in 0.10.0, ERROR in 0.11.0
1111

12-
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation. Removed in 0.11.0."
12+
private const val message_0_11_0 = "Was removed in 0.11.0."
13+
14+
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation. $message_0_11_0"
1315
internal const val DF_READ_REPLACE_MESSAGE = "this.unfold(*columns)"
1416

15-
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation. Removed in 0.11.0."
17+
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation. $message_0_11_0"
1618

1719
// endregion
1820

1921
// region WARNING in 0.11.0, ERROR in 0.12.0
2022

21-
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload. Will be removed in 0.12.0."
23+
private const val message_0_12_0 = "Will be removed in 0.12.0."
24+
25+
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload. $message_0_12_0"
2226
internal const val DIFF_REPLACE_MESSAGE = "this.diffOrNull(expression)"
2327
internal const val DIFF_OR_NULL_IMPORT = "org.jetbrains.kotlinx.dataframe.api.diffOrNull"
2428

25-
internal const val UPDATE_AS_NULLABLE_MESSAGE = "This function is useless unless in combination with `withValue(null)`, but then you can just use `with { null }`. Will be removed in 0.12.0."
29+
internal const val UPDATE_AS_NULLABLE_MESSAGE = "This function is useless unless in combination with `withValue(null)`, but then you can just use `with { null }`. $message_0_12_0"
2630
internal const val UPDATE_AS_NULLABLE_REPLACE = "this as Update<T, C?>"
2731

28-
internal const val UPDATE_WITH_VALUE = "Replaced in favor of `with { value }`. Will be removed in 0.12.0."
32+
internal const val UPDATE_WITH_VALUE = "Replaced in favor of `with { value }`. $message_0_12_0"
2933
internal const val UPDATE_WITH_VALUE_REPLACE = "this.with { value }"
3034

3135
// endregion
3236

3337
// region WARNING in 0.12.0, ERROR in 0.13.0
3438

39+
private const val message_0_13_0 = "Will be removed in 0.13.0."
40+
3541
// endregion

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/util/deprecationMessages.kt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,33 @@ package org.jetbrains.kotlinx.dataframe.util
99

1010
// region WARNING in 0.10.0, ERROR in 0.11.0
1111

12-
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation. Removed in 0.11.0."
12+
private const val message_0_11_0 = "Was removed in 0.11.0."
13+
14+
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation. $message_0_11_0"
1315
internal const val DF_READ_REPLACE_MESSAGE = "this.unfold(*columns)"
1416

15-
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation. Removed in 0.11.0."
17+
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation. $message_0_11_0"
1618

1719
// endregion
1820

1921
// region WARNING in 0.11.0, ERROR in 0.12.0
2022

21-
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload. Will be removed in 0.12.0."
23+
private const val message_0_12_0 = "Will be removed in 0.12.0."
24+
25+
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload. $message_0_12_0"
2226
internal const val DIFF_REPLACE_MESSAGE = "this.diffOrNull(expression)"
2327
internal const val DIFF_OR_NULL_IMPORT = "org.jetbrains.kotlinx.dataframe.api.diffOrNull"
2428

25-
internal const val UPDATE_AS_NULLABLE_MESSAGE = "This function is useless unless in combination with `withValue(null)`, but then you can just use `with { null }`. Will be removed in 0.12.0."
29+
internal const val UPDATE_AS_NULLABLE_MESSAGE = "This function is useless unless in combination with `withValue(null)`, but then you can just use `with { null }`. $message_0_12_0"
2630
internal const val UPDATE_AS_NULLABLE_REPLACE = "this as Update<T, C?>"
2731

28-
internal const val UPDATE_WITH_VALUE = "Replaced in favor of `with { value }`. Will be removed in 0.12.0."
32+
internal const val UPDATE_WITH_VALUE = "Replaced in favor of `with { value }`. $message_0_12_0"
2933
internal const val UPDATE_WITH_VALUE_REPLACE = "this.with { value }"
3034

3135
// endregion
3236

3337
// region WARNING in 0.12.0, ERROR in 0.13.0
3438

39+
private const val message_0_13_0 = "Will be removed in 0.13.0."
40+
3541
// endregion

0 commit comments

Comments
 (0)