Skip to content

Commit 09b9cc3

Browse files
authored
Remove publishQuiet option (#2587)
1 parent 104db33 commit 09b9cc3

File tree

10 files changed

+9
-27
lines changed

10 files changed

+9
-27
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Please see [CONTRIBUTING.md](./CONTRIBUTING.md) on how to contribute to Cucumber
1515
### Changed
1616
- Redesigned HTML formatter header ([cucumber/react-components#381](https://github.com/cucumber/react-components/pull/381))
1717

18+
### Removed
19+
- BREAKING CHANGE: Remove `publishQuiet` option ([#2587](https://github.com/cucumber/cucumber-js/pull/2587))
20+
1821
## [11.3.0] - 2025-05-14
1922
### Changed
2023
- Improve error handling in publish plugin ([#2526](https://github.com/cucumber/cucumber-js/pull/2526))

UPGRADING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This document describes breaking changes and how to upgrade. For a complete list of changes including minor and patch releases, please refer to the [changelog](./CHANGELOG.md).
44

5+
## 12.0.0
6+
7+
### publishQuiet
8+
9+
The `publishQuiet` option (or `--publish-quiet` on the CLI) was used to hide the banner suggesting to use Cucumber Reports. The banner has since been removed, so the option now does nothing. To adapt, remove the option from your configuration files and CLI commands (especially the latter, since the CLI will fail on unrecognised options).
10+
511
## 11.0.0
612

713
### `parseGherkinMessageStream` and `PickleFilter`

docs/deprecations.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ The `Cli` class is used internally to represent an instance of the command-line
2222

2323
To adapt, pivot to the `runCucumber` function from the [JavaScript API](./javascript_api.md), or raise an issue if you feel your use case isn't catered for.
2424

25-
### publishQuiet
26-
27-
Deprecated in `9.4.0`. Will be removed in `11.0.0` or later.
28-
29-
The `publishQuiet` option (or `--publish-quiet` on the CLI) was used to hide the banner suggesting to use Cucumber Reports. The banner has since been removed, so the option now does nothing.
30-
31-
To adapt, remove the option from your configuration files and CLI commands (especially the latter, since the CLI will fail on unrecognised options).
32-
3325
### Ambiguous colons in formats
3426

3527
Deprecated in `9.6.0`. Will be removed in `11.0.0` or later.

docs/javascript_api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ A simple, flat format. This is how configuration is expressed by users in config
5959
"paths": ["features/**/*.feature"],
6060
"parallel": 3,
6161
"publish": false,
62-
"publishQuiet": false,
6362
"require": [],
6463
"requireModule": [],
6564
"retry": 2,

exports/api/report.api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ export interface IConfiguration {
2424
parallel: number;
2525
paths: string[];
2626
publish: boolean;
27-
// @deprecated (undocumented)
28-
publishQuiet: boolean;
2927
require: string[];
3028
requireModule: string[];
3129
retry: number;

src/configuration/argv_parser.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ const ArgvParser = {
135135
(val) => ArgvParser.validateCountOption(val, '--parallel')
136136
)
137137
.option('--publish', 'Publish a report to https://reports.cucumber.io')
138-
.option(
139-
'--publish-quiet',
140-
"Don't print information banner about publishing reports"
141-
)
142138
.option(
143139
'-r, --require <GLOB|DIR|FILE>',
144140
'require files before executing features (repeatable)',

src/configuration/check_schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const schema = yup.object().shape({
2424
paths: yup.array().of(yup.string()),
2525
parallel: yup.number().integer().min(0),
2626
publish: yup.boolean(),
27-
publishQuiet: yup.boolean(),
2827
require: yup.array().of(yup.string()),
2928
requireModule: yup.array().of(yup.string()),
3029
retry: yup.number().integer().min(0),

src/configuration/default_configuration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const DEFAULT_CONFIGURATION: IConfiguration = {
1515
paths: [],
1616
parallel: 0,
1717
publish: false,
18-
publishQuiet: false,
1918
require: [],
2019
requireModule: [],
2120
retry: 0,

src/configuration/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ export interface IConfiguration {
102102
* @default false
103103
*/
104104
publish: boolean
105-
/**
106-
* @deprecated no longer needed
107-
* @see {@link https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md}
108-
*/
109-
publishQuiet: boolean
110105
/**
111106
* Paths to where your support code is, for CommonJS
112107
* @default []

src/configuration/validate_configuration.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ export function validateConfiguration(
55
configuration: IConfiguration,
66
logger: ILogger
77
): void {
8-
if (configuration.publishQuiet) {
9-
logger.warn(
10-
'`publishQuiet` option is no longer needed, you can remove it from your configuration; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md'
11-
)
12-
}
138
if (configuration.requireModule.length && !configuration.require.length) {
149
logger.warn(
1510
'Use of `require-module` option normally means you should specify your support code paths with `require`; see https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md#finding-your-code'

0 commit comments

Comments
 (0)