-
Notifications
You must be signed in to change notification settings - Fork 73
Deprecation messages #430
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
Merged
Merged
Deprecation messages #430
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 32 additions & 4 deletions
36
...rated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/util/deprecationMessages.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
package org.jetbrains.kotlinx.dataframe.util | ||
|
||
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation." | ||
/* | ||
* This file contains deprecation messages for the whole core module. | ||
* After each release, all messages should be reviewed and updated. | ||
* Level.WARNING -> Level.ERROR | ||
* Level.ERROR -> Remove | ||
*/ | ||
|
||
// region WARNING in 0.10.0, ERROR in 0.11.0 | ||
|
||
private const val message_0_11_0 = "Was removed in 0.11.0." | ||
|
||
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation. $message_0_11_0" | ||
internal const val DF_READ_REPLACE_MESSAGE = "this.unfold(*columns)" | ||
|
||
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation." | ||
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation. $message_0_11_0" | ||
|
||
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload." | ||
// endregion | ||
|
||
internal const val DIFF_REPLACE_MESSAGE = "this.diffOrNull(expression)" | ||
// region WARNING in 0.11.0, ERROR in 0.12.0 | ||
|
||
private const val message_0_12_0 = "Will be removed in 0.12.0." | ||
|
||
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload. $message_0_12_0" | ||
internal const val DIFF_REPLACE_MESSAGE = "this.diffOrNull(expression)" | ||
internal const val DIFF_OR_NULL_IMPORT = "org.jetbrains.kotlinx.dataframe.api.diffOrNull" | ||
|
||
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" | ||
internal const val UPDATE_AS_NULLABLE_REPLACE = "this as Update<T, C?>" | ||
|
||
internal const val UPDATE_WITH_VALUE = "Replaced in favor of `with { value }`. $message_0_12_0" | ||
internal const val UPDATE_WITH_VALUE_REPLACE = "this.with { value }" | ||
|
||
// endregion | ||
|
||
// region WARNING in 0.12.0, ERROR in 0.13.0 | ||
|
||
private const val message_0_13_0 = "Will be removed in 0.13.0." | ||
|
||
// endregion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 32 additions & 4 deletions
36
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/util/deprecationMessages.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
package org.jetbrains.kotlinx.dataframe.util | ||
|
||
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation." | ||
/* | ||
* This file contains deprecation messages for the whole core module. | ||
* After each release, all messages should be reviewed and updated. | ||
* Level.WARNING -> Level.ERROR | ||
* Level.ERROR -> Remove | ||
*/ | ||
|
||
// region WARNING in 0.10.0, ERROR in 0.11.0 | ||
|
||
private const val message_0_11_0 = "Was removed in 0.11.0." | ||
|
||
internal const val DF_READ_DEPRECATION_MESSAGE = "Replaced with `unfold` operation. $message_0_11_0" | ||
internal const val DF_READ_REPLACE_MESSAGE = "this.unfold(*columns)" | ||
|
||
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation." | ||
internal const val ITERABLE_COLUMNS_DEPRECATION_MESSAGE = "Replaced with `toColumnSet()` operation. $message_0_11_0" | ||
|
||
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload." | ||
// endregion | ||
|
||
internal const val DIFF_REPLACE_MESSAGE = "this.diffOrNull(expression)" | ||
// region WARNING in 0.11.0, ERROR in 0.12.0 | ||
|
||
private const val message_0_12_0 = "Will be removed in 0.12.0." | ||
|
||
internal const val DIFF_DEPRECATION_MESSAGE = "Replaced to explicitly indicate nullable return value; added a new non-null overload. $message_0_12_0" | ||
internal const val DIFF_REPLACE_MESSAGE = "this.diffOrNull(expression)" | ||
internal const val DIFF_OR_NULL_IMPORT = "org.jetbrains.kotlinx.dataframe.api.diffOrNull" | ||
|
||
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" | ||
internal const val UPDATE_AS_NULLABLE_REPLACE = "this as Update<T, C?>" | ||
|
||
internal const val UPDATE_WITH_VALUE = "Replaced in favor of `with { value }`. $message_0_12_0" | ||
internal const val UPDATE_WITH_VALUE_REPLACE = "this.with { value }" | ||
|
||
// endregion | ||
|
||
// region WARNING in 0.12.0, ERROR in 0.13.0 | ||
|
||
private const val message_0_13_0 = "Will be removed in 0.13.0." | ||
|
||
// endregion |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, love this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a post-release section with 19 paragraph