Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-gherkin

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-gherkin - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

prettier.config.js

31

CHANGELOG.md
# CHANGELOG
## [2.1.0] - 2023-11-14
- Upgrade cucumber packages [#13](https://github.com/mapado/prettier-plugin-gherkin/pull/13) by [@jdeniau](https://github.com/jdeniau)
## [2.0.0] - 2023-08-31
### Changed
### Prettier 3
- [Breaking] Handle prettier 3. Prettier 2 is not compatible with this version as the plugin API did change totally.
- [Breaking] (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](https://github.com/mapado/prettier-plugin-gherkin/actions/runs/6030258360/job/16361678638?pr=9). 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](https://github.com/mapado/prettier-plugin-gherkin/pull/9) by [@jdeniau](https://github.com/jdeniau)
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
```diff
- "prettier": "^2.0.0",
- "prettier-plugin-gherkin": "^1.0.0",
+ "prettier": "^3.0.0",
+ "prettier-plugin-gherkin": "^2.0.0",
```
> .prettierrc
```diff
{
+ "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](https://github.com/mapado/prettier-plugin-gherkin/actions/runs/6030258360/job/16361678638?pr=9). 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](https://github.com/mapado/prettier-plugin-gherkin/pull/9) by [@jdeniau](https://github.com/jdeniau)
## [1.1.1]

@@ -11,0 +36,0 @@

6

package.json
{
"name": "prettier-plugin-gherkin",
"version": "2.0.0",
"version": "2.1.0",
"type": "module",

@@ -25,4 +25,4 @@ "description": "This prettier plugin format your gherkin (`.feature` files) documents.",

"dependencies": {
"@cucumber/gherkin": "^24.1.0",
"@cucumber/messages": "^19.1.4",
"@cucumber/gherkin": "^27.0.0",
"@cucumber/messages": "^23.0.0",
"prettier": "^3.0.0"

@@ -29,0 +29,0 @@ },

@@ -82,4 +82,12 @@ # prettier-plugin-gherkin

That's all ! the plugin will be automatically detected by prettier.
Activate the plugin in your prettier configuration file:
> .prettierrc
```diff
{
+ "plugins": ["prettier-plugin-gherkin"]
}
```
You can then configure your git precommit, IDE, etc. to format the `.features` file with prettier.

@@ -86,0 +94,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc