Skip to content

Commit 3b839a3

Browse files
committed
Removed support for using browserify as a bundler
This has been a pain for too long now.
1 parent 3c12732 commit 3b839a3

File tree

24 files changed

+29
-329
lines changed

24 files changed

+29
-329
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
44

55
## Unreleased
66

7+
Breaking changes:
8+
9+
- Removed support for using browserify as a bundler.
10+
11+
- Browserify is largely unmaintained at this point and is making it impossible to keep dependencies up-to-date as Browserify itself does not do that. Furthermore, the Browserify bundler is deprecated by Cypress. If you'd still like to use Browserify, you can pin your dependency on `@badeball/cypress-cucumber-preprocessor` to `~23.x.y`.
12+
13+
- A branch named `v23.x.y` has been created to continue illustrating how to use Browserify. This is mentioned in the FAQ.
14+
15+
Other changes:
16+
717
- Run hooks (BeforeAll/AfterAll) may now be optionally named. This is in line with how cucumber-js behaves.
818

919
- Allow step hooks to return skipped / pending.

declarations.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
declare module "@cypress/browserify-preprocessor";
2-
31
declare module "find-cypress-specs" {
42
export function getSpecs(
53
config: Cypress.ConfigOptions,

docs/faq.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [I get `Webpack Compilation Error` (shown below)](#i-get-webpack-compilation-error-shown-below)
1616
- [Why is `cypress-tags` missing?](#why-is-cypress-tags-missing)
1717
- [Function members `And(..)` and `But(..)` are missing](#function-members-and-and-but-are-missing)
18+
- [Can I use Browserify as a bundler?](#can-i-use-browserify-as-a-bundler)
1819
- [Which preprocessor version should I choose?](#which-preprocessor-version-should-i-choose)
1920

2021
<!-- Node requirements -->
@@ -150,6 +151,16 @@ These have been [deprecated](https://github.com/badeball/cypress-cucumber-prepro
150151

151152
> `And` is only used in scenarios, not as step definition methods. Semantically it means "same keyword as in previous step"; technically it is just another step. In fact, you can use `Given()`, `When()` and `Then()` interchangeably in your step definitions, Cucumber will not enforce a match between the step keyword and the step definition function.
152153
154+
## Can I use Browserify as a bundler?
155+
156+
Yes. Support for Browserify was removed in v24.0.0, but you can still use v23.x.y. Updates to this library will seldomly be backported to the v23-line of versions, so users are recommended to switch bundler. Moreever, this line is _not_ subject to semver, so pinning to the current minor version is also recommended (IE. `~23.x.y` instead of `^23.x.y` in package.json).
157+
158+
```
159+
$ npm install @badeball/cypress-cucumber-preprocessor@23
160+
```
161+
162+
Examples illustrating use of Browserify can be found [here](https://github.com/badeball/cypress-cucumber-preprocessor/blob/v23.x.y/examples/readme.md).
163+
153164
## Which preprocessor version should I choose?
154165

155166
The observant reader might have noticed that there's a NPM package named `cypress-cucumber-preprocessor` and `@badeball/cypress-cucumber-preprocessor`. This is merely a result of maintainer and ownership transfer. The package `cypress-cucumber-preprocessor` is severely outdated by now and as far as I (the current maintainer) know, there's no reason to be using it.

examples/browserify-cjs/cypress.config.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

examples/browserify-cjs/cypress/e2e/duckduckgo.feature

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/browserify-cjs/cypress/e2e/duckduckgo.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/browserify-cjs/cypress/support/e2e.js

Whitespace-only changes.

examples/browserify-cjs/package.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/browserify-esm/cypress.config.mjs

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/browserify-esm/cypress/e2e/duckduckgo.feature

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)