Cucumber.js v8.0.0-rc.3 Release Notes

Release Date: 2022-03-21 // 3 months ago
  • โž• Added

    • โž• Add support for Node.js 17
    • ๐Ÿ“š 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 (see [documentation](./docs/parallel.md#custom-work-assignment)) (#1044 #1588)
    • โž• Add a new option to --format-options: printAttachments (see [documentation](./docs/cli.md#printing-attachments-details)) (#1136 #1721)
    • ๐Ÿ‘Œ Support for configuration to be objects instead of argv strings, and for configuration files in ESM and JSON formats (see [documentation](./docs/configuration.md#files)) (#1952)
    • ๐Ÿ†• New API for running Cucumber programmatically (see [documentation](./docs/javascript_api.md)) (#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.js 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](./docs/javascript_api.md)

Previous changes from v8.0.0-rc.2

  • โž• 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)