Skip to content

Commit 3b12d29

Browse files
committed
chore: prepare release 0.9.0
1 parent 7f05abc commit 3b12d29

10 files changed

+39
-57
lines changed

.changeset/_generate_can_no_longer_be_used_if_a_knopetoml_file_already_exists.md

-5
This file was deleted.

.changeset/_upgrade_can_no_longer_be_used_if_there_is_no_knopetoml_file.md

-5
This file was deleted.

.changeset/_validate_can_no_longer_be_used_if_there_is_no_knopetoml_file.md

-5
This file was deleted.

.changeset/added_the_override_version_option_to_manually_set_the_next_version.md

-12
This file was deleted.

.changeset/knope_help_now_lists_all_available_workflows.md

-5
This file was deleted.

.changeset/removed_the_deprecated_packages_syntax.md

-7
This file was deleted.

.changeset/the_prerelease_label_flag_can_only_be_provided_after_a_workflow.md

-10
This file was deleted.

.changeset/workflows_can_no_longer_be_selected_interactively.md

-7
This file was deleted.

CHANGELOG.md

+38
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,44 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.9.0 (2023-08-10)
8+
9+
### Breaking Changes
10+
11+
#### Removed the deprecated `[[packages]]` syntax
12+
13+
If you're using the old syntax, run `knope --upgrade` _before_ switching to this version.
14+
15+
#### `--generate` can no longer be used if a `knope.toml` file already exists
16+
17+
#### Workflows can no longer be selected interactively
18+
19+
Previously, it was valid to invoke `knope` with no arguments, and the user would be prompted interactively to select a workflow. Now, a workflow must be provided as a positional argument, for example, `knope release`.
20+
21+
#### The `--prerelease-label` option can only be provided after a workflow
22+
23+
Previously, the `--prerelease-label` CLI option was always available globally and would simply be ignored if it was not useful for the selected workflow. Now, it can only be provided _after_ the name of a workflow which can use the option (right now, only a workflow which contains a [`PrepareRelease`](https://knope-dev.github.io/knope/config/step/PrepareRelease.html) step). For example, with the default workflow, `knope release --prerelease-label="rc"` is valid, but **none of these are valid**:
24+
25+
- `knope --prerelease-label="rc" release`
26+
- `knope document-change --prerelease-label="rc"`
27+
28+
#### `--upgrade` can no longer be used if there is no `knope.toml` file
29+
30+
#### `--validate` can no longer be used if there is no `knope.toml` file
31+
32+
### Features
33+
34+
#### Added the `--override-version` option to manually set the next version
35+
36+
Allows you to manually determine the next version for a [`BumpVersion`] or [`PrepareRelease`] instead of using a semantic versioning rule. This option can only be provided after a workflow which contains a relevant step. This has two formats, depending on whether there is [one package](https://knope-dev.github.io/knope/config/packages.html#a-single-package-with-a-single-versioned-file) or [multiple packages](https://knope-dev.github.io/knope/config/packages.html#multiple-packages):
37+
38+
1. `--override-version 1.0.0` will set the version to `1.0.0` if there is only one package configured (error if multiple packages are configured).
39+
2. `--override-version first-package=1.0.0 --override-version second-package=2.0.0` will set the version of `first-package` to `1.0.0` and `second-package` to `2.0.0` if there are multiple packages configured (error if only one package is configured).
40+
41+
This closes [#497](https://github.com/knope-dev/knope/issues/497).
42+
43+
#### `knope --help` now lists all available workflows
44+
745
## 0.8.0 (2023-06-19)
846

947
### Breaking Changes

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "knope"
33
description = "A command line tool for automating common development tasks"
4-
version = "0.8.0"
4+
version = "0.9.0"
55
authors = ["Dylan Anthony <[email protected]>"]
66
edition = "2021"
77
license = "MIT"

0 commit comments

Comments
 (0)