diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c906b66..286cad1a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] + +## [2.7.0] - 2020-05-13 ### Added - Ability to use custom program exit status codes via `ProgramResult`. - `inputStream` and `outputStream` conversions for options and arguments. ([#157](https://github.com/ajalt/clikt/issues/157) and [#159](https://github.com/ajalt/clikt/issues/159)) @@ -25,10 +27,12 @@ ### Changed - Update Kotlin to 1.3.70 - `convert` can be called more than once on the same option or argument, including after calls to conversion functions like `int` and `file`. -- `wrapValue` is now deprecated, since `convert` can be used in its place instead. - `CliktCommand.toString` now includes the class name - Reverted automatic `~` expansion in `file()` and `path()` introduced in 2.5.0. If you need this behavior, you can implement it with code like `convert { /* expand tidle */ }.file()` +### Deprecated +- `wrapValue` is now deprecated, since `convert` can be used in its place instead. + ## [2.5.0] - 2020-02-22 ### Added - Clikt is now available as a Kotlin Multiplatform Project, supporting JVM, NodeJS, and native Windows, Linux, and macOS. @@ -38,10 +42,12 @@ - `CliktCommand.eagerOption` to simplify creating custom eager options ### Changed -- `NoRunCliktCommand` was renamed to `NoOpCliktCommand`. The existing class is deprecated. ([#130](https://github.com/ajalt/clikt/issues/130)) -- The `CliktCommand.context` property has been deprecated in favor of the new name, `currentContext`, to avoid confusion with the `CliktCommand.context{}` method. - The parameter names of `file()` and `path()` conversions have changed. The existing names are deprecated, and can be converted to the new usages with an IntelliJ inspection. Note that if you are calling these functions with unnamed arguments (e.g. `file(true, false)`), you'll need to add argument names in order to remove the deprecation warning. +### Deprecated +- The `CliktCommand.context` property has been deprecated in favor of the new name, `currentContext`, to avoid confusion with the `CliktCommand.context{}` method. +- `NoRunCliktCommand` was renamed to `NoOpCliktCommand`. The existing class is deprecated. ([#130](https://github.com/ajalt/clikt/issues/130)) + ### Fixed - `file()` and `path()` conversions will now properly expand leading `~` in paths to the home directory for `mustExist`, `canBeFile`, and `canBeDir` checks. The property value is unchanged, and can still begin with a `~`. ([#131](https://github.com/ajalt/clikt/issues/79)) diff --git a/README.md b/README.md index 576547f48..a6a4a2ca8 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Clikt is distributed through [Maven Central](https://search.maven.org/artifact/c ```groovy dependencies { - implementation("com.github.ajalt:clikt:2.6.0") + implementation("com.github.ajalt:clikt:2.7.0") } ``` diff --git a/gradle.properties b/gradle.properties index 05252435b..35c4c109c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=2.6.0 +VERSION_NAME=2.7.0 kotlin.native.ignoreDisabledTargets=true