Skip to content

Latest commit

 

History

History
125 lines (76 loc) · 4.19 KB

File metadata and controls

125 lines (76 loc) · 4.19 KB

CHANGELOG

Unreleased

[4.0.0] - 2026-05-11

  • [BREAKING] Drop support for Node.js 18
  • [Internal] Upgrade to jest 30
  • [Internal] Update workflow files

[3.1.4] - 2026-05-08

  • Stop inserting blank lines between consecutive # comment lines that lead a step requiring a leading hardline (e.g. with forceNewlineBetweenStepBlocks: true). Only the first comment in a contiguous block now prepends the hardline; subsequent comments are joined directly.

[3.1.3] - 2025-10-13

  • Release package with npm trusted publisher only

[3.1.2] - 2025-03-03

[3.1.1] - 2024-12-09

  • Stable formatting for node description #33 by @jdeniau

[3.1.0] - 2024-09-02

  • Escaping multiple pipes should keep pipes escaped #30 by @jdeniau

[3.0.0] - 2024-07-30

Changed

[BREAKING] Set default tabWidth to 2, as documented in Gherkin Reference.

If you want to update to version 3 and use four space, you can override this values in your prettier configuration file:

{
  // …
  "overrides": [
    {
      "files": "*.feature",
      "options": {
        "tabWidth": 4
      }
    }
  ]
}

[2.4.1] - 2024-07-26

[2.4.0] - 2024-07-05

  • Handle printWidth for node description #24 by @jdeniau

[2.3.0] - 2024-06-14

  • feat: docstring now supports all language #21 by @bdo

[2.2.1] - 2023-12-28

  • Fix new lines between two comments line #17 by @jdeniau
  • Fix new line for comments in data tables #18 by @jdeniau

[2.2.0] - 2023-12-28

  • Add forceNewlineBetweenStepBlocks option #16 by @jdeniau

[2.1.1] - 2023-11-21

  • Add repository, homepage and bugs field to package.json #14 by @sonallux

[2.1.0] - 2023-11-14

[2.0.0] - 2023-08-31

Prettier 3

Handle prettier 3. Prettier 2 is not compatible with this version as the plugin API did change totally.

Prettier 3 remove plugin auto-detection, so you now need to active the plugin explicitly:

package.json

-     "prettier": "^2.0.0",
-     "prettier-plugin-gherkin": "^1.0.0",
+     "prettier": "^3.0.0",
+     "prettier-plugin-gherkin": "^2.0.0",

.prettierrc

  {
+     "plugins": ["prettier-plugin-gherkin"]
  }

(maybe) remove support for Node 14

(maybe) drop support for node 14: prettier 3 does still support node 14, but it is unmaintained, and the tests does not pass on node 14 only. If you are willing to spend some time on this, feel free to open a PR, but I suggest you to migrate to a more recent version of node. #9 by @jdeniau

[1.1.1]

Fixes

handle comments before "Given" and "When" #6

[1.1.0]

  • handle "language" comment
  • fix missing mediaType in json / xml embedded docstring
  • fix missing example description

[1.0.0]

Version 1.0.0 is a complete rewrite of the first version by @armandabric.