Skip to content

Commit 707dfab

Browse files
committed
Add support for v11, drop support for v7
1 parent 9114576 commit 707dfab

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Unreleased
6+
7+
- Drop support for Cypress v7.
8+
9+
- Add support for Cypress v11.
10+
511
## v13.1.0
612

713
- Better support for worlds in TypeScript, fixes [#864](https://github.com/badeball/cypress-cucumber-preprocessor/issues/864).

features/support/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function writeFile(filePath: string, fileContent: string) {
88
}
99

1010
export function isPost10() {
11-
return cypressVersion.startsWith("10.");
11+
return parseInt(cypressVersion.split(".")[0], 10) >= 10;
1212
}
1313

1414
export function isPre10() {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"@typescript-eslint/eslint-plugin": "^5.38.0",
9090
"@typescript-eslint/parser": "^5.38.0",
9191
"ast-types": "^0.15.2",
92-
"cypress": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
92+
"cypress": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
9393
"eslint": "^8.24.0",
9494
"fs-extra": "^10.1.0",
9595
"jsdom": "^20.0.0",
@@ -108,7 +108,7 @@
108108
},
109109
"peerDependencies": {
110110
"@cypress/browserify-preprocessor": "^3.0.1",
111-
"cypress": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
111+
"cypress": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
112112
},
113113
"peerDependenciesMeta": {
114114
"@cypress/browserify-preprocessor": {

0 commit comments

Comments
 (0)