Skip to content

Commit 7306121

Browse files
fix(browserstack-service): declare webdriverio as a dependency, not a peer
The extraction moved webdriverio from dependencies (as in the WebdriverIO monorepo / the published @wdio/browserstack-service@9.29.1) into peerDependencies (^9.0.0). That forces the consumer's webdriverio to ^9 and npm ERESOLVEs against any dep peering webdriverio@^7||^8 (e.g. wdio-chromedriver-service@^8) — an install failure the monorepo package never had. Move it back to dependencies to restore install parity. Verified: official npm 9.29.1 and monorepo source both keep webdriverio in dependencies and peer only @wdio/cli; the standalone was the sole divergence. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bf66b27 commit 7306121

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wdio/browserstack-service": patch
3+
---
4+
5+
Declare `webdriverio` as a dependency instead of a peerDependency, matching the package published from the WebdriverIO monorepo. The extraction had moved `webdriverio` into `peerDependencies` (`^9.0.0`); npm then forced the consumer's `webdriverio` to `^9`, which conflicts with any project that also depends on a package peering `webdriverio@"^7 || ^8"` (e.g. `wdio-chromedriver-service@^8`) and surfaced as an `npm ERESOLVE` on install — a failure the monorepo-published package never had. Restores install parity with the upstream package; no user-facing API change.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/browserstack-service/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
"yauzl": "^3.4.0",
7373
"@wdio/logger": "^9.0.0",
7474
"@wdio/reporter": "^9.0.0",
75-
"@wdio/types": "^9.0.0"
75+
"@wdio/types": "^9.0.0",
76+
"webdriverio": "^9.0.0"
7677
},
7778
"peerDependencies": {
78-
"@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
79-
"webdriverio": "^9.0.0"
79+
"@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
8080
},
8181
"devDependencies": {
8282
"@bufbuild/buf": "^1.55.1",

0 commit comments

Comments
 (0)