[chore]: move integration libs into peer deps#2101
Open
seanmcguire12 wants to merge 2 commits intomainfrom
Open
[chore]: move integration libs into peer deps#2101seanmcguire12 wants to merge 2 commits intomainfrom
seanmcguire12 wants to merge 2 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: dc726fc The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
There was a problem hiding this comment.
No issues found across 6 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Consumer as Consumer Project
participant Pkg as @browserbasehq/stagehand
participant Core as packages/core
participant Playwright as playwright-core
participant Puppeteer as puppeteer-core
participant Patchright as patchright-core
participant Evals as packages/evals
participant ServerV3 as packages/server-v3
participant ServerV4 as packages/server-v4
Note over Consumer,Core: Dependency Resolution Flow
Consumer->>Pkg: install @browserbasehq/stagehand
Pkg->>Core: resolve dependencies
alt Consumer uses Playwright
Core->>Playwright: optional peer dep: ^1.55.1
alt Playwright not installed
Core->>Core: skip Playwright-specific features
else Playwright installed
Core->>Playwright: use for browser automation
end
end
alt Consumer uses Puppeteer
Core->>Puppeteer: optional peer dep: ^24.43.0
alt Puppeteer not installed
Core->>Core: skip Puppeteer-specific features
else Puppeteer installed
Core->>Puppeteer: use for browser automation
end
end
alt Consumer uses Patchright
Core->>Patchright: optional peer dep: ^1.55.2
alt Patchright not installed
Core->>Core: skip Patchright-specific features
else Patchright installed
Core->>Patchright: use for browser automation
end
end
Note over Core,ServerV4: Internal Dev Dependencies (not shipped)
Core->>Core: devDependencies for testing
Core->>Playwright: devDep: ^1.55.1
Core->>Puppeteer: devDep: ^24.43.0
Core->>Patchright: devDep: ^1.55.2
Evals->>Playwright: devDep: >=1.55.1 <1.57.0
ServerV3->>Playwright: dep: ^1.55.1
ServerV4->>Playwright: dep: ^1.55.1
miguelg719
approved these changes
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
why
stagehandwould also pull inplaywright-core,patchright-core, &puppeteer-corestagehandwith an existing browser automation framework. they are otherwise not requiredwhat changed
playwright-core,patchright-core, &puppeteer-coreinpackages/corefrom optional deps to optional peer depsSummary by cubic
Moved
playwright-core,patchright-core, andpuppeteer-coreto optional peer dependencies in@browserbasehq/stagehandto stop automatic installs and let consumers opt in only if needed. Also alignedplaywrightversion ranges across packages.Dependencies
packages/core: movedplaywright-core,patchright-core,puppeteer-corefrom optional deps to optional peer deps (all marked optional).playwright,playwright-core,puppeteer-core,patchright-core.playwrightranges:packages/evalsuses>=1.55.1 <1.57.0;packages/server-v3andpackages/server-v4use^1.55.1.Migration
playwright-core@^1.55.1.puppeteer-core@^24.43.0.patchright-core@^1.55.2.Written for commit dc726fc. Summary will update on new commits.