prettier-plugin-gherkin
Advanced tools
Comparing version 2.0.0 to 2.1.0
# 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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
18805475
760
149258
153
37
1
+ Added@cucumber/gherkin@27.0.0(transitive)
+ Added@cucumber/messages@22.0.023.0.0(transitive)
+ Added@types/uuid@9.0.19.0.6(transitive)
+ Addeduuid@9.0.1(transitive)
- Removed@cucumber/gherkin@24.1.0(transitive)
- Removed@cucumber/messages@19.1.4(transitive)
- Removed@types/uuid@8.3.4(transitive)
Updated@cucumber/gherkin@^27.0.0
Updated@cucumber/messages@^23.0.0