Skip to content

Releases: cucumber/cucumber-js

v8.3.0

11 Jun 14:04
v8.3.0
0f5dab7

Choose a tag to compare

Added

  • Add willBeRetried to the parameter passed to After hook functions (#2045)

Changed

  • defineStep is now deprecated and will eventually be removed; use the appropriate Given/When/Then keyword to define your step (#2044)

Fixed

  • Prevent outputting ANSI escapes to stderr if it can't display them (#2035)

v8.2.2

27 May 11:52
v8.2.2
72eabd2

Choose a tag to compare

Changed

  • Use latest HTML formatter with better handling for scenario outlines

v8.2.1

14 May 11:12

Choose a tag to compare

Fixed

  • Fix return type of step hook function to allow async functions (#2038)

v8.2.0

05 May 08:25

Choose a tag to compare

Changed

  • Fix issues with colored output, support FORCE_COLOR environment variable as an override (#2026)

v8.1.2

22 Apr 08:19

Choose a tag to compare

Added

  • Explicit support for Node.js 18 (#2007)

Fixed

  • Re-add cucumber-js bin file for backwards compatibility (#2008)

v8.1.1

20 Apr 21:06

Choose a tag to compare

Fixed

  • Capture dependency on @cucumber/message-streams to satisfy peer requirement from @cucumber/gherkin-streams (#2006)

v8.1.0

20 Apr 08:31

Choose a tag to compare

Added

Changed

  • Rename the cucumber-js binary's underlying file to be cucumber.js, so it doesn't fall foul of Node.js module conventions and plays nicely with ESM loaders (see documentation) (#1993)

Fixed

  • Correctly escape backslashes in generated expressions for snippets (#1324 #1995)

v8.0.0

06 Apr 13:14

Choose a tag to compare

Changed

  • Emit a warning when using a Node.js version that's untested with Cucumber (#1959)

Fixed

  • Allow file:// URLs to be used as formatter/snippet paths in options (#1963 #1920)
  • Allow custom formatters to rely on --require-module transpilers (#1985)

How to upgrade from 7.x.x: https://github.com/cucumber/cucumber-js/blob/main/UPGRADING.md

Full changelog including release candidates: https://github.com/cucumber/cucumber-js/blob/main/CHANGELOG.md

v8.0.0-rc.3

21 Mar 15:32

Choose a tag to compare

v8.0.0-rc.3 Pre-release
Pre-release

Added

  • Cucumber Expressions now support a wider array of parameter types (see documentation)
  • Improved styling and usability on report from html formatter
  • Support for customising work assignment when running in parallel (#1044 #1588)
  • Add a new option to --format-options: printAttachments (see documentation) (#1136 #1721)
  • Support for configuration to be objects instead of argv strings, and for configuration files in ESM and JSON formats (#1952)
  • New API for running Cucumber programmatically (see documentation) (#1955)

Changed

  • Switch from colors to chalk for terminal coloring (#1895)

Deprecated

  • parseGherkinMessageStream is deprecated in favour of loadSources (#1957)

Fixed

  • Warn users who are on an unsupported node version (#1922)
  • Allow formatters to finish when a Gherkin parse error is encountered (#1404 #1951)

Removed

  • getConfiguration, initializeFormatters and getSupportCodeLibrary methods removed from Cli class in favour of new API

v8.0.0-rc.2

10 Jan 19:06

Choose a tag to compare

v8.0.0-rc.2 Pre-release
Pre-release

Added

  • Export cucumber version number. It is now possible to retrieve the current version
    of cucumber using import { version } from '@cucumber/cucumber'.
    (PR#1866
    Issue#1853)

Changed

  • Switched to new @cucumber/ci-environment library for CI detection (#1868)

Fixed

  • Handles spaces in paths for developers working on cucumbers's own code (#1845)
  • Ensure package.json can be imported by consuming projects
    (PR#1870
    Issue#1869)
  • Allows for parentheses in paths for developers working on cucumber's own code ([#1735])
  • Smoother onboarding for Windows developers (#1863)
  • Pin colors to 1.4.0 to fix security vulnerability (#1884)
  • Pin cli-table3 to 0.6.1 to fix security vulnerability (#251)