You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,32 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
11
11
12
12
### Added
13
13
14
-
* Experimental support for native ES modules via the [`--esm` flag](./docs/cli.md#es-modules-experimental-nodejs-12) ([#1589](https://github.com/cucumber/cucumber-js/pull/1589))
15
-
16
14
### Changed
17
15
16
+
* Clarify that the JSON formatter will not be removed any time soon
* Temporarily remove ESM changes due to impact on formatters
33
+
34
+
## [7.2.0] (2021-04-20)
35
+
36
+
### Added
37
+
38
+
* Experimental support for native ES modules via the [`--esm` flag](./docs/cli.md#es-modules-experimental-nodejs-12) ([#1589](https://github.com/cucumber/cucumber-js/pull/1589))
39
+
24
40
## [7.1.0] (2021-04-06)
25
41
26
42
### Added
@@ -1815,7 +1831,9 @@ be used to get the name / tags of the running scenario. ([#947](https://github.c
Copy file name to clipboardExpand all lines: docs/cli.md
+9-22Lines changed: 9 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ If multiple formats are specified with the same output, only the last is used.
59
59
60
60
***message** - prints each [message](https://github.com/cucumber/cucumber/tree/master/cucumber-messages) in NDJSON form, which can then be consumed by other tools.
61
61
***html** - prints a rich HTML report to a standalone page
62
-
***json** - prints the feature as JSON. *Note: this formatter is deprecated and will be removed in the next major release. Where you need a structured data representation of your test run, it's best to use the `message` formatter. For legacy tools that depend on the deprecated JSON format, a standalone formatter is available (see https://github.com/cucumber/cucumber/tree/master/json-formatter).
62
+
***json** - prints the feature as JSON. *Note: this formatter is in maintenance mode and won't have new features added to it. Where you need a structured data representation of your test run, it's best to use the `message` formatter. Tools that rely on this formatter will continue to work, but are encouraged to migrate to consume the `message` output instead.*
63
63
***progress** - prints one character per scenario (default).
64
64
***progress-bar** - prints a progress bar and outputs errors/warnings along the way.
65
65
***rerun** - prints the paths of any non-passing scenarios ([example](/features/rerun_formatter.feature))
@@ -81,22 +81,6 @@ You can pass in format options with `--format-options <JSON>`. The JSON string m
81
81
82
82
* Suggested use: add with profiles so you can define an object and use `JSON.stringify` instead of writing `JSON` manually.
83
83
84
-
## ES Modules (experimental) (Node.js 12+)
85
-
86
-
You can optionally write your support code (steps, hooks, etc) with native ES modules syntax - i.e. using `import` and `export` statements without transpiling.
87
-
88
-
To enable this, run with the `--esm` flag.
89
-
90
-
This will also expand the default glob for support files to include the `.mjs` file extension.
91
-
92
-
As well as support code, these things can also be in ES modules syntax:
93
-
94
-
- Custom formatters
95
-
- Custom snippets
96
-
- Your `cucumber.js` config file
97
-
98
-
You can use ES modules selectively/incrementally - the module loading strategy that the `--esm` flag activates supports both ES modules and CommonJS.
99
-
100
84
## Colors
101
85
102
86
Colors can be disabled with `--format-options '{"colorsEnabled": false}'`
@@ -109,16 +93,16 @@ By default, cucumber exits when the event loop drains. Use the `--exit` flag in
Your `tsconfig.json` should have the `resolveJsonModule` compiler option switched on. Other than that, a pretty standard TypeScript setup should work as expected.
Copy file name to clipboardExpand all lines: docs/migration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,5 @@ There are a few minor differences to be aware of:
48
48
49
49
- The type for data tables was named `TableDefinition` - it's now named `DataTable`
50
50
-`World` was typed as an interface, but it's actually a class - you should `extend` it when [building a custom formatter](./custom_formatters.md)
51
+
52
+
Also, your `tsconfig.json` should have the `resolveJsonModule` compiler option switched on. Other than that, a pretty standard TypeScript setup should work as expected.
0 commit comments